
Installs all 8 components. Without our CLI, run instead.
Glass UI publishes a shadcn registry at glass-ui.crenspire.com, with 8 components installable through the shadcn CLI.
Each one installs on its own. Names link to the docs that ship them.
A modern, glassmorphic component library inspired by Apple's design language, built with Next.js 16, React 19, and shadcn-ui registry.
Install components using the shadcn CLI with your preferred package manager:
pnpm:
pnpm dlx shadcn@latest add @glass-ui/button
yarn:
yarn dlx shadcn@latest add @glass-ui/button
npm:
npx shadcn@latest add @glass-ui/button
bun:
bunx shadcn@latest add @glass-ui/button
After installation, import and use components in your project:
import { Button } from "@/components/ui/button"
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
export function Example() {
return (
Click me
Beautiful Card
Your content here
)
}
Note: The import path depends on your project's component directory configuration. By default, shadcn CLI installs components to
@/components/ui/.
Visit the full documentation for:
Explore and test components interactively with Storybook:
# Start Storybook
pnpm storybook
# Build Storybook (static)
pnpm build-storybook
Storybook provides:
Visit http://localhost:6006 after starting Storybook.
Glass UI follows a two-layer component architecture:
registry/ui/)Foundation components with glassy variants providing:
registry/ui/glass/)Enhanced components built on top of base components with:
Customize glass effects globally using CSS variables:
:root {
--glass-bg: rgba(255, 255, 255, 0.25);
--glass-border: rgba(255, 255, 255, 0.18);
--blur: 30px;
--glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.dark {
--glass-bg: rgba(255, 255, 255, 0.1);
--glass-border: rgba(255, 255, 255, 0.2);
}
Content
And more! See the full component list.
# Clone the repository
git clone https://github.com/crenspire/glass-ui.git
cd glass-ui
# Install dependencies
pnpm install
# Start development server
pnpm dev
# Start Storybook (interactive playground)
pnpm storybook
# Build the project
pnpm build
# Build the registry
pnpm registry:build
glass-ui/
├── app/ # Next.js app directory
├── components/ # Shared components
├── lib/ # Utilities and helpers
├── public/ # Static assets
├── registry/
│ ├── ui/ # Base components
│ └── ui/glass/ # Glass UI components
├── stories/ # Storybook stories
└── registry.json # Component registry
Deploy both the documentation site and Storybook to Vercel:
Quick Start:
pnpm build-storybookstorybook-staticNEXT_PUBLIC_STORYBOOK_URL in main siteDetailed Instructions:
# Build main site
pnpm build
# Build Storybook
pnpm build-storybook
# Test builds locally
pnpm start # Serves main site on http://localhost:3000
npx http-server storybook-static # Serves Storybook on http://localhost:8080
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License.
Made with ❤️ by Crenspire Technologies