vnhax

Design system & interface patterns

ui components & interface design

React components built with semantic HTML and plain CSS, with accessibility notes for each one. Complete copy-paste source code, live previews, and installation guides.

Components
11 Patterns
MagicUI & UI-Layouts
Code Formats
TSX · CSS
Plus Tailwind versions
Accessibility
ARIA notes
Keyboard guidance per component
Live Demos
Interactive
Desktop, tablet & mobile views

Component Directory

Select any component to inspect full source code, installation steps, and live interactive sandbox.

Cards & SocialMagicUI Pattern

Tweet Card

Social post card for testimonials, with a verified badge, engagement counts, media embed and light or dark themes.

✓ Zero third-party JavaScript tracking or blocking iframe scripts✓ Optimistic like/bookmark toggles with responsive feedback
Layouts & GridsMagicUI Pattern

Bento Grid

Asymmetric feature showcase grid with ambient radial spotlight, badge headers, and interactive hover states.

✓ Responsive CSS Grid spans (1x1, 2x1, and 2x2 asymmetric modular tiles)✓ Cursor spotlight animated with CSS transforms and custom properties
Animations & FeedsMagicUI Pattern

Animated List

Dynamic notification and activity feed with staggered entrance transitions, auto-flow, and pause controls.

✓ Spring-calibrated staggered entrances with smooth height interpolation✓ Configurable addition interval with pause-on-hover capability
Navigation & ToolbarsMagicUI Pattern

Interactive Dock

macOS-inspired floating navigation bar with proximity-based icon magnification and dark glassmorphism.

✓ Smooth proximity-based Gaussian curve scaling (1.0x to 1.5x magnification)✓ Dark glassmorphic container with backdrop-blur and ambient rim lighting
Typography & EffectsUI-Layouts Pattern

Sparkles Title

Hero headline with shimmering canvas sparkle particles floating across gradient typography.

✓ Iridescent dual-gradient typography with customizable color stops✓ HTML5 Canvas 4-point sparkle star engine with randomized twinkle speeds
Backgrounds & CanvasUI-Layouts Pattern

Sparkles Effect

Interactive HTML5 Canvas particle background with twinkling stars, cursor attraction, and customizable density.

✓ Interactive particle count, speed, and star size parameters✓ Zero external graphics libraries (vanilla HTML5 2D Canvas context)
Interactive MediaUI-Layouts Pattern

Image Accordions

Interactive multi-panel gallery with smooth flex expansion, title overlays, and active card state.

✓ Silky smooth CSS flex-grow transition timing without layout flicker✓ Dynamic metadata overlays (tags, headlines, description text)
Marketing BlocksUI-Layouts Pattern

Modern Pricing Table

SaaS pricing table with annual discount toggle, featured tier spotlight, and feature checklist.

✓ Interactive Monthly / Annual toggle with automatic 20% discount calculation✓ Featured tier with glowing border spotlight and "Most Popular" pill badge
Marketing BlocksUI-Layouts Pattern

Futuristic Hero Section

SaaS landing page hero block with glowing announcement pill, gradient headline, dual CTAs, and interactive preview.

✓ Shimmering announcement badge pill with interactive link✓ Fluid clamp() typography scaling smoothly from 320px mobile to 4K displays
Motion & DisplayMagicUI Pattern

Infinite Marquee

Seamless scrolling strip for logos, tools or testimonials, built with pure CSS, pause on hover and reduced-motion support.

✓ Pure CSS animation: no JavaScript timers, no animation library✓ Seamless loop by rendering the list twice and translating by half the track
Motion & DisplayMagicUI Pattern

Number Ticker

Animated count-up for stats and KPIs that starts when visible, keeps width stable and reads the final value to screen readers.

✓ Starts on scroll into view with IntersectionObserver, runs once✓ Time-based easing with requestAnimationFrame, smooth at any frame rate

UI Design & Canvas Architecture Guides

Explainers on AI image tools and visual design workflows.

View All Guides →
Engineering Architecture

Why Zero-Dependency UI Architecture Wins

Modern web applications frequently suffer from bundle bloat caused by installing monolithic component packages. When you install heavy third-party UI libraries, your bundle imports hundreds of kilobytes of runtime CSS-in-JS compilers, non-treeshakable iconography, and duplicate state listeners.

⚡ Fast First Paint

Styles written as plain CSS and custom properties can be applied as soon as the HTML arrives, without waiting for a styling library to run in JavaScript.

📐 Fluid Clamp Typography

By combining clamp() with viewport units, headings scale smoothly between mobile viewports and 4K displays without cluttered media query breakpoints.

♿ WCAG AA Contrast

The default colours aim for at least the WCAG AA 4.5:1 contrast ratio for body text. Check again with a contrast checker after you change them.

Frequently Asked Questions

Answers regarding design tokens, accessibility compliance, and framework integration.

How do these components compare to MagicUI and UI-Layouts?
These components adopt the visual aesthetics and interaction patterns popularized by MagicUI and UI-Layouts, but are engineered to be zero-dependency. They do not require heavy CSS-in-JS runtimes and can be dropped directly into vanilla React 19, Next.js App Router, Vite, or Astro projects with full TypeScript typing.
Are these components accessible?
Each component page lists the semantic elements, ARIA attributes and keyboard behaviour it uses. They have not been formally audited, so after you add your own content and colours, test them with a tool such as axe or Lighthouse and with a screen reader.
Can I copy and customize these components for commercial client work?
You can use the code examples on VNHAX in your own projects. Components marked as Magic UI or UI-Layouts patterns are adapted from those open-source libraries, so check the original project licence and keep any notice it requires.
How do I use these components with Tailwind CSS vs Vanilla CSS?
Each component detail page includes three production source tabs: React 19 / TypeScript, Vanilla CSS stylesheet tokens, and standard Tailwind CSS utility class equivalents. You can use whichever matches your frontend stack.
Do these components affect Core Web Vitals (INP and CLS)?
They are designed to avoid layout shift and heavy work, for example by animating transform and opacity and giving media fixed sizes. Real results depend on your page, so measure with Lighthouse or PageSpeed Insights after adding them.

Build for the interface around it

A reusable component earns its place by being clear, accessible, and adaptable. Document keyboard behavior, focus states, visual states, and dependencies beside the code so implementation teams do not need to reverse-engineer design decisions.