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.
Bring Your Own Style
Section titled “Bring Your Own Style”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.
Architecture
Section titled “Architecture”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.
Supported frameworks
Section titled “Supported frameworks”- React 19: Powered by
@zag-js/reactwith full TypeScript typing. - Svelte 5: Powered by
@zag-js/svelteleveraging Svelte 5 runes and snippets. - Solid: Powered by
@zag-js/solidfor fine-grained reactive primitives.
Visual constraints
Section titled “Visual constraints”Glaceon enforces a tight token set so components stay consistent across frameworks:
- Color tokens: Primary Green (
#12925A, darkened to#0F844Ffor 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) androunded-lg(8px). Pill shapes are restricted to status badges. - No glassmorphism:
backdrop-bluris banned across all surfaces. - No gradients: Flat, 1px solid borders provide container definition. Backgrounds use flat color only.