Glass UI Logo

Theming

Glass UI reads its colours from CSS custom properties, so a theme swap is a variable swap.

Tokens

Every component uses semantic tokens (--background, --foreground, --card, --primary, --border) declared in app/globals.css and exposed to Tailwind v4 through @theme inline.

The glass treatment

Glass is a utility recipe, not a hard-coded skin. Apply it to any container:

bg-white/10 backdrop-blur-xl border border-white/20 shadow-[0_8px_32px_0_rgba(0,0,0,0.37)]

Preview

This panel is the recipe above, rendered live.

Dark mode

Tokens are redefined under the .dark class. Add class="dark" on the <html> element to flip the whole library.