Generator Glass
A product team tunes a frosted navigation bar over a hero image and ships it as one CSS class with a solid fallback.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this feature
What it's for
- A product team tunes a frosted navigation bar over a hero image and ships it as one CSS class with a solid fallback..
- A designer checks that body copy on a tinted glass card passes AA in light and dark themes before handing it off..
- An app adds glass cards over a gradient mesh that turn solid on low-end devices and under reduced transparency..
Includes
- Glass surface editor
- Static backdrop blur capped
- Backdrop saturation
- Theme token tint
- Border and highlight
- Static noise texture
- Wcag contrast report
- Reduced transparency fallback preview
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
agentic-ui add generator-glassnpx shadcn@4.17.0 add @agentic-ui/generator-glassUsed in
A standalone component: drop it into any screen.
- Type
- Feature
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Motion
- Animated, with a reduced-motion fallback
- npm packages
- None beyond your project's React and Next.js
- Registry dependencies
fx-foundationlib-generator-foundation- Files
8 files
- components/agentic-ui/generator-glass/glass-generator.css
- components/agentic-ui/generator-glass/glass-generator.tsx
- components/agentic-ui/generator-glass/glass-model.ts
- components/agentic-ui/generator-glass/glass-core.ts
- components/agentic-ui/generator-glass/contrast.ts
- components/agentic-ui/generator-glass/glass-surface.tsx
- components/agentic-ui/generator-glass/generate.ts
- components/agentic-ui/generator-glass/index.ts
Related components
Generator Easing Spring Editor
A design-system team tunes the brand ease and spring and exports them as a tokens.json override for the Stripe personality.
Details and live previewGenerator Foundation Shell
A background pattern generator that exports CSS, Tailwind classes, a React component and a shadcn registry item.
Details and live previewGenerator Gradient Mesh
A marketing team builds a hero backdrop from the brand's chart colours and ships it as one CSS class.
Details and live previewGenerator Noise Grain
A marketing team adds fine film grain over a gradient hero to hide banding and pastes the Tailwind class into the section.
Details and live preview