Every component orbits your brand.

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.

Get started
npx glass-orbit init
Change the core

One import. Two paths.

The 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.

Desktop: modal
Delete project?

This removes the project and its 14 deployments.

CancelDelete
Phone: bottom sheet
delete-project.tsx
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>

Set the core. Everything else follows.

Two colours in your theme. Ring, glow, gradient, borders and the light and dark surfaces are derived from them through the --orbit-* variables.

primary#3087ed
accent#3dc3fb
ring= primary
glowprimary 55%
gradientprimary → accent
borderprimary 18% on bg
glass-orbit.theme.jsonTheming docs
{
  "name": "my-brand",
  "colors": {
    "primary": "#3087ed",
    "accent": "#3dc3fb"
  },
  "shape": "pill"
}

Into orbit in three steps.

Works with Vite and Next.js, React 18 and 19, and Tailwind. The full guide is in Installation.

Initialise

npx glass-orbit init

Writes glass-orbit.json and the theme variables.

Add components

npx glass-orbit add dialog button

The source lands in components/glass-orbit.

Pick your core

npx glass-orbit theme create

One primary, one accent. Done.