Glass Orbit is a mobile-first, glassmorphic React library. Set one primary and one accent at the core. Buttons, dialogs, cards and tabs follow, on desktop and on phones.
npx glass-orbit initThe same Dialog takes a different trajectory on each screen: a centred modal on desktop, a bottom sheet with a drag handle on phones. You write it once.
This removes the project and its 14 deployments.
This removes the project and its 14 deployments.
import { Dialog, DialogTrigger, DialogContent, DialogTitle } from "@/components/glass-orbit/dialog"
<Dialog>
<DialogTrigger asChild>
<Button variant="destructive">Delete</Button>
</DialogTrigger>
<DialogContent>
<DialogTitle>Delete project?</DialogTitle>
</DialogContent>
</Dialog>Each one has its own page in the docs, with live previews, props and the phone behaviour. Add only what you use: the CLI copies the source into your project.
Six variants, pill or rounded, 44px touch targets.
/docs/components/buttonModal on desktop, bottom sheet on phones. One import.
/docs/components/dialogGlass, solid or outline surfaces for any content.
/docs/components/cardSegmented or underline, full width on phones.
/docs/components/tabsStatus, counts and live dots that glow in your accent.
/docs/components/badge48px on phones with 16px text, so iOS never zooms.
/docs/components/inputA menu on desktop, an action sheet on phones.
/docs/components/dropdown-menu/docs Two colours in your theme. Ring, glow, gradient, borders and the light and dark surfaces are derived from them through the --orbit-* variables.
{
"name": "my-brand",
"colors": {
"primary": "#3087ed",
"accent": "#3dc3fb"
},
"shape": "pill"
}Works with Vite and Next.js, React 18 and 19, and Tailwind. The full guide is in Installation.
npx glass-orbit init
Writes glass-orbit.json and the theme variables.
npx glass-orbit add dialog button
The source lands in components/glass-orbit.
npx glass-orbit theme create
One primary, one accent. Done.