Generator Shadow Elevation
A design system team tunes one elevation scale for cards, menus and dialogs and ships it as CSS variables.
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 design system team tunes one elevation scale for cards, menus and dialogs and ships it as CSS variables..
- A product with tinted brand backgrounds gets shadows that pick up the canvas hue instead of flat grey..
- A dark-first dashboard replaces invisible drop shadows with hairline edges or lighter raised surfaces..
Includes
- Elevation scale
- Layered shadows
- Colour matched shadows
- Light angle control
- Dark mode strategies
- Light dark side by side preview
- Css custom properties export
- Tailwind theme tokens export
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-shadow-elevationnpx shadcn@4.17.0 add @agentic-ui/generator-shadow-elevationUsed 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
lib-generator-foundation- Files
5 files
- components/agentic-ui/generator-shadow-elevation/shadow-elevation.css
- components/agentic-ui/generator-shadow-elevation/shadow-elevation-generator.tsx
- components/agentic-ui/generator-shadow-elevation/shadow-model.ts
- components/agentic-ui/generator-shadow-elevation/generate.ts
- components/agentic-ui/generator-shadow-elevation/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 Glass
A product team tunes a frosted navigation bar over a hero image and ships it as one CSS class with a solid fallback.
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 preview