Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Introduction

Glaceon UI is a headless, multi-framework design system distributed through a CLI generator. Component logic, keyboard interactions, focus trapping, and ARIA attributes are powered by Zag.js state machines, guaranteeing identical accessibility and behaviour across React, Svelte, and Solid.

Components are not published as compiled npm styling dependencies. The Glaceon CLI fetches framework-specific source code from the registry and writes it directly into your codebase. You own and can customize every line of markup, styling, and logic.

State machine core. Zag.js handles 100% of interaction mechanics. Dropdown open/close transitions, focus traps, roving tab indices, and accessibility live inside pure state machines rather than ad-hoc framework state.

No custom state. Components never invent useState hooks, Svelte stores/runes, or Solid signals for UI interactions. All UI state reflects the official Zag.js machine.

Tailwind CSS v4 tokens. Visual styling attaches directly to Zag’s data-* attributes (such as data-[state=open] and data-[disabled]). Styling references strict design tokens rather than arbitrary ad-hoc utility classes.

Source distribution. Running npx @glaceon/cli add <component> copies the raw component wrapper into your src/components/ui/ directory, resolving utility imports like ./cn locally without extra package dependencies.

  • React 19: Powered by @zag-js/react with full TypeScript typing.
  • Svelte 5: Powered by @zag-js/svelte leveraging Svelte 5 runes and snippets.
  • Solid: Powered by @zag-js/solid for fine-grained reactive primitives.

Glaceon enforces a tight token set so components stay consistent across frameworks:

  • Color tokens: Primary Green (#12925A, darkened to #0F844F for 4.74:1 contrast) for active states, Surface (#F5FAF7) for quiet backgrounds, INAgov Blue (#0052CC) for focus rings.
  • Capped radii: Control and container radii stay between rounded-md (6px) and rounded-lg (8px). Pill shapes are restricted to status badges.
  • No glassmorphism: backdrop-blur is banned across all surfaces.
  • No gradients: Flat, 1px solid borders provide container definition. Backgrounds use flat color only.