alvar-design-system
Skill1 starsChanged 5 months agoMITView on GitHub
Build frontends in the Alvar Design System, a warm, editorial, token-driven UI style on React 19, TypeScript, Tailwind v4, Radix, and class-variance-authority. Use when creating or restyling a UI, web app, component, or design system in this style; when setting up design tokens, theming, light/dark mode, or a shadcn-style component library; or when the user mentions the Alvar design system, the brand palette (Ember Red, Navy Ink, Snow White), or wants a spacious, minimalist frontend. Scaffolds a new Vite project, adds the foundation to an existing one, and reviews UI against the principles.
- Installs packages
In this repository6 other files it gives its agents.
- ebitengineSkill
- estonian-grammarSkill
- raylibSkill
- unitySkill
- unreal-engineSkill
- skill-nameSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
Read the bundled references when you need detail:
- Distinctive: line 55
Use the bundled scaffolding instead of regenerating files from memory.
- Very specific: line 57
Run scripts/new_project.py to scaffold a runnable Vite + React + TS app wired with the system.
- Very specific: line 61
Run scripts/add_to_project.py to add the foundation to an existing repo.
- Very specific: line 64
Run scripts/check_tokens.py --dir src to verify components use semantic tokens only (flags raw hex and primitives.
- Very specific: line 66
Read files under templates/ when you need the exact source: the token contract is templates/styles/tokens.css and the Tailwind wiring is …
- Distinctive: line 70
Run the scripts; do not read their source into context unless debugging the skill.
- Very specific: line 75
Import globals.css once at the app root.
- Very specific: line 81
Run scripts/check_tokens.py.
- Very specific: line 82
Verify accessibility: keyboard, visible focus, contrast, aria-label on icon-only controls.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Alvar Design System
A spacious, editorial, token-driven UI system: a warm monochromatic canvas (Snow White paper, Navy Ink text) with a single Ember Red accent, fluid space and type, and accessibility built in. The stack is React 19 + TypeScript + Tailwind v4 (CSS-first) + Radix + class-variance-authority. Use it to build a new frontend in this style, restyle an existing one, or review UI against the principles.
This skill ships the foundation (design tokens, the cn() helper, and the Stack
/ Cluster / Grid layout primitives) and six reference components (button, card,
input, badge, alert, dialog). They demonstrate every pattern; build the rest the
same way.
Core principles
Apply these on every screen. The full version is in references/principles.md.
- Space is structure. Separate with whitespace and proximity, not borders and
shadows. Spacing stays on the 4px grid; section rhythm is fluid (
clamp()), not breakpoints. - Semantic monochromacy. The canvas is warm-neutral. The Ember accent
(
primary) appears once, on the most important action, agentic affordances, or critical feedback. - Typography carries hierarchy. Space Grotesk display, Plus Jakarta Sans body,
radical scale contrast, body at
leading-normaland a 68ch measure. - Two-layer tokens. Components reference semantic tokens only, never a primitive or a raw hex.
- Layout from primitives only. Compose with Stack, Cluster, Grid; extend a primitive rather than writing a one-off flex or padding.
- Accessibility is a requirement: WCAG AA, visible focus,
prefers-reduced-motion, Radix for overlays.
Reading documentation
Read the bundled references when you need detail:
- references/principles.md: the design philosophy and aesthetic rules, plus a pre-ship necessity audit.
- references/tokens.md: the two-layer token model, the full token values, and the rule for adding or changing a themeable value.
- references/components.md: the canonical component shape, the primitives, the six components, and how to build a new one.
- references/setup.md: installing into projects, Tailwind v4 wiring, fonts, dark mode, accessibility, and the token linter.
Templates and scripts
Use the bundled scaffolding instead of regenerating files from memory.
- Run
scripts/new_project.pyto scaffold a runnable Vite + React + TS app wired with the system.- Example:
python scripts/new_project.py --out ./my-app --name "My App" - Then
cd my-app && npm install && npm run dev.
- Example:
- Run
scripts/add_to_project.pyto add the foundation to an existing repo.- Example:
python scripts/add_to_project.py --dir . --base src --with-components - It copies the files and prints the deps to install and the wiring to do.
- Example:
- Run
scripts/check_tokens.py --dir srcto verify components use semantic tokens only (flags raw hex and primitives; exits non-zero on a hit). - Read files under
templates/when you need the exact source: the token contract is templates/styles/tokens.css and the Tailwind wiring is templates/styles/globals.css.
Run the scripts; do not read their source into context unless debugging the skill.
Default workflow
- Decide: new project (
new_project.py) or existing (add_to_project.py). - Import
globals.cssonce at the app root; confirm the@/alias and the Tailwind v4 plugin are set up (see references/setup.md). - Lay out with Stack / Cluster / Grid. Keep spacing on the 4px grid; use the
fluid
--space-section/--space-gutterfor page rhythm. - Build UI from the shipped components. Add a new one by mirroring
button.tsx(CVA, forwardRef, displayName,cn()), using semantic tokens only. - Run
scripts/check_tokens.py; fix any hit. - Verify accessibility: keyboard, visible focus, contrast,
aria-labelon icon-only controls.
Must-follow rules
- Components reference semantic tokens only (
bg-primary,bg-[var(--color-overlay)]). Never a primitive (--ember-500) or a raw hex. - To add a themeable value: add a primitive, map a semantic token in
:rootand.dark, then expose it in@theme inline. All three, in that order. - Dark mode is the
.darkclass on an ancestor, not a media query. - The Ember accent earns its place: one primary action per view.
- Compose layout from primitives; do not invent local flex or padding.
Gotchas
- Tailwind v4 is CSS-first. There is no
tailwind.config.js; theming lives intokens.cssandglobals.cssvia@theme inlineand@custom-variant dark. - Reference non-color tokens with arbitrary utilities:
z-[var(--z-overlay)],duration-[var(--duration-base)],ease-[var(--ease-standard)],animate-[dialog-in_0.26s_var(--ease-emphasized)]. - Status surface tints use
color-mix(), so they adapt to light and dark on their own. Do not hard-code tinted backgrounds. - The
@source inline(...)safelist inglobals.csskeeps semantic utilities in the compiled CSS. If you rename a semantic token, update the safelist too. - Dialog needs
@radix-ui/react-dialogandlucide-react.add_to_project.pyprints these when you include components.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

