Glass UI
A modern, glassmorphic component library inspired by Apple's design language, built with Next.js 16, React 19, and shadcn-ui registry.
⨠Features
- 40+ Glass Components - Comprehensive collection of beautiful, glassy UI components
- Apple-Inspired Design - Glassmorphism effects following Apple's design standards
- Theme Support - Built-in light/dark mode with automatic theme switching
- Enhanced Effects - Glow, shimmer, ripple, and gradient animations
- Fully Customizable - Per-component glass effect customization
- Package Manager Support - Install with pnpm, yarn, npm, or bun
- TypeScript - Fully typed components for better developer experience
- Accessible - Built on Radix UI primitives for accessibility
- Tailwind CSS - Utility-first styling with CSS variables
š Quick Start
Installation
Install components using the shadcn CLI with your preferred package manager:
pnpm:
yarn:
npm:
bun:
Usage
After installation, import and use components in your project:
Note: The import path depends on your project's component directory configuration. By default, shadcn CLI installs components to
@/components/ui/.
š Documentation
Visit the for:
- Complete component reference
- Installation guides
- Customization examples
- Theme configuration
- Glass effect customization
šØ Interactive Playground
Explore and test components interactively with Storybook:
Storybook provides:
- ⨠Live component previews
- šļø Interactive controls for all props
- š Auto-generated documentation
- āæ Accessibility testing
- š Theme switching
- š± Responsive viewport testing
Visit http://localhost:6006 after starting Storybook.
šļø Architecture
Glass UI follows a two-layer component architecture:
Base Components (registry/ui/)
Foundation components with glassy variants providing:
- Core functionality
- Glassy effect variants
- Accessibility features (Radix UI)
- TypeScript support
Glass UI Components (registry/ui/glass/)
Enhanced components built on top of base components with:
- Enhanced visual effects (glow, shimmer, ripple)
- Advanced styling options
- Gradient and animation support
- Custom design patterns
šØ Customization
Global CSS Variables
Customize glass effects globally using CSS variables:
Per-Component Customization
š¦ Available Components
Form Components
- Button, Input, Textarea, Label
- Checkbox, Switch, Radio Group
- Select, Input OTP
Display Components
- Card, Badge, Avatar, Alert
- Skeleton, Separator, Table
Overlay Components
- Dialog, Alert Dialog, Popover
- Tooltip, Hover Card, Sheet
- Drawer, Sidebar
Navigation Components
- Tabs, Accordion, Breadcrumb
- Dropdown Menu, Navigation Menu
- Pagination, Scroll Area
Data Display
- Calendar, Chart, Command
- Slider, Toggle, Toggle Group
And more! See the .
š ļø Development
Prerequisites
- Node.js 18+
- pnpm, yarn, npm, or bun
Setup
Project Structure
š Deployment
Deploy to Vercel
Deploy both the documentation site and Storybook to Vercel:
Quick Start:
- Deploy main site: Import your repo at
- Deploy Storybook: Import the same repo again with these settings:
- Build Command:
pnpm build-storybook - Output Directory:
storybook-static
- Build Command:
- Set environment variable
NEXT_PUBLIC_STORYBOOK_URLin main site - Redeploy main site
Detailed Instructions:
- See for full deployment guide
- See for quick reference
Build Commands
š¤ Contributing
We welcome contributions! Please see for guidelines.
š License
This project is licensed under the MIT License.
š Links
š Acknowledgments
- Built with
- Powered by
- Inspired by Apple's design language
Made with ā¤ļø by