Vitra CSS Interactive Demo

Experience the complete Vitra CSS framework with live theme switching, configurable particles, glassmorphism effects, and interactive components.

Design Tokens

Vitra CSS uses CSS custom properties (variables) with the --vitra- prefix for all design tokens.

Color Tokens

Colors update instantly when switching themes

Spacing Scale

Border Radius

Shadow Tokens

Glassmorphism

Beautiful frosted glass effects with automatic fallbacks for browsers without backdrop-filter support.

Standard Glass

Default glass effect with backdrop blur.

Strong Glass

Enhanced blur for more prominence.

Subtle Glass

Light glass effect for gentle overlays.

Colored Border

Glass with accent-colored border.

Glass Cards with Hover

Glass Card 1

Hover to see the lift effect with glow.

Glass Card 2

Cards use glassmorphism effectively.

Glass Card 3

Responsive and accessible design.

Configurable Particles

Add beautiful floating particles with glow effects. Configurable via JavaScript API or data attributes.

Particle Controls

Device limit: 40 (15 on mobile)
Active: 0 | Available: 40 | Max: 40

Particles will appear here when spawned

Data-Attribute Particles

Particles can also be configured via HTML data attributes:

<div data-vitra-particles="5" data-vitra-particle-color="#ff6b6b">
  <!-- 5 red particles appear here -->
</div>

Motion & Animations

Smooth reveal animations, hover interactions, and full prefers-reduced-motion support.

Reveal on Scroll

This section uses the vitra-reveal class and appears with animation when scrolled into view.

Staggered Reveal

Multiple items can reveal with stagger delays for elegant cascading effects.

Smooth Transitions

All animations respect user's motion preferences via prefers-reduced-motion.

Hover Interactions

Hover Lift

Lifts on hover with shadow

Hover Glow

Glows on hover

Hover Scale

Scales up on hover

Accessibility: prefers-reduced-motion

Vitra CSS automatically disables animations when users prefer reduced motion.

Test: Enable "Reduce motion" in your OS settings, then refresh the page. All animations should be disabled.

Layout Utilities

Fluid containers, responsive grids, flex utilities, and clamp()-based spacing.

Fluid Container

Containers use clamp() for fluid responsive sizing.

This content is inside a vitra-container

Responsive Grid

Grid Item 1
Grid Item 2
Grid Item 3
Grid Item 4
Grid Item 5
Grid Item 6

Flex Utilities

Flex Item
Flex Item
Flex Item

Component Showcase

All Vitra CSS components with token-only styling, glass variants, and accessibility built-in.

Buttons

Cards

Standard Card

Basic card with surface background and border.

Glass Card

Card with glassmorphism effect.

Hover Card

Hover to see lift effect.

Form Elements

Navigation

Use vitra-navbar-mobile for mobile drawer navigation

Modals

Modals support focus trapping, ESC close, and overlay click close

Tooltips

Sliders (Range Inputs)

Tabs

Panel 1

Content for the first tab.

Progress Bars

Badges

Default Primary Success Warning Error Info
Small Default Enable feature

Navigation

Use vitra-navbar-mobile for mobile drawer navigation

Modals

Modals support focus trapping, ESC close, and overlay click close

Tooltips

Sliders (Range Inputs)

Tabs

Panel 1

Content for the first tab.

Progress Bars

Badges

Default Primary Success Warning Error Info
Small Default Large

Avatars

JD
AB
CD

Avatars use initials with colored backgrounds