sisyo 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/LICENSE +16 -16
  2. package/README.md +167 -166
  3. package/bin/known-hashes.json +6 -1
  4. package/bin/sisyo.js +285 -285
  5. package/package.json +30 -30
  6. package/templates/.claude/rules/agents-and-tests.md +32 -24
  7. package/templates/.claude/rules/docs.md +19 -19
  8. package/templates/.claude/skills/fastapi-best-practices/ASYNC-PATTERNS.md +121 -121
  9. package/templates/.claude/skills/fastapi-best-practices/DATABASE.md +153 -153
  10. package/templates/.claude/skills/fastapi-best-practices/DEPENDENCIES.md +140 -140
  11. package/templates/.claude/skills/fastapi-best-practices/PROJECT-STRUCTURE.md +90 -90
  12. package/templates/.claude/skills/fastapi-best-practices/PYDANTIC-GUIDE.md +155 -155
  13. package/templates/.claude/skills/fastapi-best-practices/SKILL.md +123 -123
  14. package/templates/.claude/skills/g6-style/SKILL.md +125 -125
  15. package/templates/.claude/skills/g6-style/references/checks.md +58 -58
  16. package/templates/.claude/skills/g6-style/references/imagery.md +103 -103
  17. package/templates/.claude/skills/g6-style/references/motion.md +121 -121
  18. package/templates/.claude/skills/g6-style/references/sections.md +263 -263
  19. package/templates/.claude/skills/g6-style/references/tokens.md +197 -197
  20. package/templates/.claude/skills/hindsight/SKILL.md +175 -175
  21. package/templates/.claude/skills/hoang-auth/SKILL.md +188 -0
  22. package/templates/.claude/skills/html-docs/SKILL.md +207 -207
  23. package/templates/.claude/skills/i18n-multilang/SKILL.md +153 -153
  24. package/templates/.claude/skills/i18n-multilang/assets/languages.json +47 -47
  25. package/templates/.claude/skills/i18n-multilang/assets/plural-vectors.json +46 -46
  26. package/templates/.claude/skills/i18n-multilang/assets/project/README.md +17 -17
  27. package/templates/.claude/skills/i18n-multilang/assets/project/gitattributes.txt +6 -6
  28. package/templates/.claude/skills/i18n-multilang/assets/project/gitignore.txt +4 -4
  29. package/templates/.claude/skills/i18n-multilang/assets/project/glossary.json +6 -6
  30. package/templates/.claude/skills/i18n-multilang/assets/project/i18n.config.json +22 -22
  31. package/templates/.claude/skills/i18n-multilang/assets/project/locales/__source__/common.json +10 -10
  32. package/templates/.claude/skills/i18n-multilang/assets/project/notes/common.json +5 -5
  33. package/templates/.claude/skills/i18n-multilang/assets/project/style.md +20 -20
  34. package/templates/.claude/skills/i18n-multilang/references/format.md +100 -100
  35. package/templates/.claude/skills/i18n-multilang/references/languages.md +97 -97
  36. package/templates/.claude/skills/i18n-multilang/references/layout-and-versioning.md +256 -256
  37. package/templates/.claude/skills/i18n-multilang/references/numbers.md +161 -161
  38. package/templates/.claude/skills/i18n-multilang/references/platform-unity.md +142 -142
  39. package/templates/.claude/skills/i18n-multilang/references/platform-web.md +107 -107
  40. package/templates/.claude/skills/i18n-multilang/references/translation.md +143 -143
  41. package/templates/.claude/skills/i18n-multilang/references/voice.md +271 -271
  42. package/templates/.claude/skills/i18n-multilang/scripts/i18n.py +1041 -1041
  43. package/templates/.claude/skills/i18n-multilang/scripts/numwords.py +1013 -1013
  44. package/templates/.claude/skills/i18n-multilang/scripts/voice.py +478 -478
  45. package/templates/.claude/skills/neon-game-ui-ux-skill/COMPONENTS.md +490 -490
  46. package/templates/.claude/skills/neon-game-ui-ux-skill/GAMIFICATION.md +246 -246
  47. package/templates/.claude/skills/neon-game-ui-ux-skill/ICONS.md +249 -249
  48. package/templates/.claude/skills/neon-game-ui-ux-skill/LAYOUT-NAV.md +362 -362
  49. package/templates/.claude/skills/neon-game-ui-ux-skill/MOTION-A11Y.md +168 -168
  50. package/templates/.claude/skills/neon-game-ui-ux-skill/SKILL.md +137 -137
  51. package/templates/.claude/skills/neon-game-ui-ux-skill/TOKENS.md +323 -323
  52. package/templates/.claude/skills/react-page-oriented/SKILL.md +407 -407
  53. package/templates/.claude/skills/react-page-oriented/triggers.md +12 -12
  54. package/templates/.claude/skills/terraform-best-practices/SKILL.md +341 -341
  55. package/templates/.claude/skills/typesafe-jev/SKILL.md +148 -148
  56. package/templates/.claude/skills/vibe-docs/SKILL.md +242 -242
  57. package/templates/SISYO.md +37 -37
  58. package/templates/docs/99_progress/features.md +7 -7
  59. package/templates/docs/99_progress/handoff.md +19 -19
  60. package/templates/docs/99_progress/todo.md +15 -15
  61. package/templates/docs/MAP.md +26 -26
@@ -1,137 +1,137 @@
1
- ---
2
- name: neon-game-ui-ux-skill
3
- description: "Neon, game-like UI/UX design system for web apps (React 18 + TypeScript + Tailwind 3 + motion): dark blue-black canvas, a few neon tones with one meaning each, glow as a signal, hexagon badges, round keycap buttons, duotone gradient icons, a HUD top bar (level, XP bar, streak, daily-goal ring), desktop side rail, mobile bottom bar with a raised centre progress dial that opens the activity modes as a radial menu, and a gamification layer (XP, levels, streak, daily path with a chest, quests, achievements, XP burst flying to the HUD, level-up modal). Guidance only, no source files: exact token values, per-component anatomy and implementation techniques, shell and dial geometry, the gamification data contract, and the icon method (Lucide base shapes, layer recipes, a generated registry). Triggers on: neon / cyber / game-like / gamified UI, 'like LenS', 'Aperture Neon', meshy-like dark UI, HUD, XP, level, streak, quests, achievements, daily goal, round buttons, radial menu, practice dial, duotone icons, or restyling a frontend in this style."
4
- license: MIT
5
- metadata:
6
- author: HoangThang
7
- version: '1.0.0'
8
- ---
9
-
10
- # Neon Game UI/UX
11
-
12
- A complete design system for a neon, game-like web interface, taken from a production app (LenS, "Aperture Neon";
13
- visual direction studied from meshy.ai and given its own identity). Use it to build the same look and feel in another
14
- project.
15
-
16
- This skill is **guidance only**. It contains no source files: the project writes its own tokens, components, shell and
17
- icon pipeline from the values, anatomy and techniques in the detail files. The numbers in those files are the system;
18
- use them as written, do not approximate them. The reference stack is React 18 + TypeScript + Tailwind 3.4 +
19
- `motion/react`; the rules themselves do not depend on it.
20
-
21
- ## When to trigger
22
-
23
- - Building or restyling a frontend that should look neon / game-like / gamified, or "like LenS".
24
- - Adding a HUD, XP, levels, streaks, a daily goal, quests, achievements or reward animations to an app.
25
- - Building the app shell: top bar HUD, side rail, bottom bar with a centre dial / radial menu.
26
- - Creating or replacing the icon set, or asked how the icons are made.
27
- - Reviewing a screen in this style for contrast, motion or accessibility.
28
-
29
- ## Detail files: load only what the task needs
30
-
31
- | File | Load when |
32
- |---|---|
33
- | `TOKENS.md` | Any styling work: every colour (dark + light, RGB channels), ink-safe variants, the Tailwind mapping, tone scopes, type, radii, shadows, gradients, animations, base element rules, theme switch |
34
- | `COMPONENTS.md` | Building or using a shared component (icon, buttons, cards, rings, bars, badges, path, quests, achievements, controls, toasts, reward system), the root providers or the gallery page |
35
- | `LAYOUT-NAV.md` | App shell, HUD top bar, side rail, bottom bar, the centre dial and its radial menu (sizes, arc formula, states, when not to use one), responsive rules, safe areas, sheets, dialogs, skeletons |
36
- | `GAMIFICATION.md` | XP, levels, streak, daily path, quests, achievements, reward moments, honesty rules, the HUD / Reward data contract and the client wiring |
37
- | `ICONS.md` | The icon method: Lucide base shapes, the layer model, recipes, customisation rules, the generator and the preview sheet, the licence obligation, alternative routes, the icon checklist |
38
- | `MOTION-A11Y.md` | Easing and durations, what may animate, loop budget, reduced motion, contrast targets, focus, screen readers, the review checklist |
39
-
40
- ## Design DNA: twelve rules
41
-
42
- 1. **Dark blue-black canvas.** Surfaces step from `#05060A` to `#1E2334` in small increments; never neutral grey,
43
- never pure black cards. Depth = a 1 px top highlight + a soft drop shadow, not big lightness jumps.
44
- 2. **Few neon tones, one job each.** lime = primary / XP / correct, aqua = links / focus, iris = level, flare = new /
45
- rare, amber = quests / in progress, ember = streak, gold = trophies / claimable, coral = wrong / danger. A tone
46
- means the same thing on every screen.
47
- 3. **Glow is a signal, not decoration.** Only active, current, claimable or just-rewarded things glow. A screen at
48
- rest has a handful of glows; if everything glows, nothing does.
49
- 4. **Hexagons for identity** (level badge, medals, quest and empty-state tiles), **circles for actions** (round
50
- keycap buttons, path nodes, progress rings), **rounded rectangles (24 px) for containers**.
51
- 5. **Keycap buttons.** Buttons have a visible 4 px depth and travel 3 px into it when pressed. Primary = lime face
52
- with dark text; neutral = dark disc with a neon ring.
53
- 6. **Duotone icons.** 24 px grid, 1.75 stroke, tone gradient stroke + the same gradient at 18 % as fill, at most one
54
- accent (a pip or a white glint). Base shapes from one open icon family. Inactive / disabled / on-neon icons are mono.
55
- 7. **Three fonts with fixed roles.** Display (Chakra Petch) for headings, numbers and uppercase labels; text
56
- (Be Vietnam Pro) for UI; reading (Lexend) for long passages. Numbers always `tabular-nums`.
57
- 8. **Numbers are alive.** Values count up, bars slide, rings draw in: once, in 600-700 ms, with the glide easing.
58
- 9. **Rewards land on the HUD.** An XP gain bursts from the control the user pressed and flies to the XP bar, which
59
- then updates. Intensity matches rarity: chip < toast < claim glow < level-up modal.
60
- 10. **One primary action per view.** A single flowing-gradient CTA; everything else is secondary or ghost.
61
- 11. **The HUD is always there and always true.** Level, XP, streak and daily goal in the top bar on every page; all
62
- values come from the server.
63
- 12. **Mobile first, thumb first.** A bottom bar with the core activity as a raised centre dial that doubles as
64
- today's progress ring; desktop gets a side rail instead.
65
-
66
- ## Bring it to a new project: build order
67
-
68
- Work in this order; each step has a check that must pass before the next one starts.
69
-
70
- | # | Create | From | Check |
71
- |---|---|---|---|
72
- | 1 | **Document head**: `data-theme="dark"` + `dark` class on `<html>`, viewport with `viewport-fit=cover`, `theme-color`, `color-scheme`, the font stylesheet, the inline theme script | TOKENS.md §6, §12 | Reload with a saved light theme: no dark frame flashes |
73
- | 2 | **Token stylesheet**: the dark block and the light override. Adjust tone *jobs* to the product; keep one job per hue | TOKENS.md §2-§4, §8, §9, §11 | Every variable holds RGB channels, not hex |
74
- | 3 | **Tailwind theme**: colours, fonts, sizes, radius, shadows, gradients, keyframes, animations, easings | TOKENS.md §1, §6-§11 | `bg-neon-lime/10` and `text-neon-ink-lime` produce CSS |
75
- | 4 | **Base stylesheet**: base element rules, shell variables, component classes, tone scopes outside any layer, the reduced-motion block | TOKENS.md §5, §10, §12; MOTION-A11Y.md §5 | `body` is `#05060A`, headings use the display font, focus rings are aqua; a **production build** still contains `.tone-gold` |
76
- | 5 | **Theme hook** | COMPONENTS.md, hooks | Toggling updates every consumer and survives a reload |
77
- | 6 | **Icon system**: pin Lucide, name list, recipes, generator, preview sheet, licence file, the `Icon` component | ICONS.md; COMPONENTS.md, Icon | The generator fails on a wrong node index; the preview sheet reads at 24 px in dark, light and mono |
78
- | 7 | **Core components and root providers** | COMPONENTS.md | Type-check passes; each component matches its entry |
79
- | 8 | **Gallery page** (development only) showing every component, state and icon | COMPONENTS.md, last section | Reviewed in both themes, at 320 px, with the keyboard, with reduced motion. Do this before any product page |
80
- | 9 | **Shell**: top bar HUD, side rail, bottom bar, dial and radial menu, modal focus | LAYOUT-NAV.md | Unit tests of the arc geometry pass for 3-6 items at 320 / 360 / 390 / 768 px; the open menu fits at 320 px; Tab stays inside it |
81
- | 10 | **Gamification wiring**: agree the HUD read model and the Reward object with the backend, then "play a reward" on every action that grants XP | GAMIFICATION.md §10 | A grant makes the chip land on the XP bar and the bar fill at that moment; a repeated request celebrates nothing |
82
- | 11 | **Pages**: home first (path hero card, stat tiles, quests, achievements), then the rest. Every page gets a skeleton with the same boxes, an empty state and an inline error state | LAYOUT-NAV.md §5, §7 | No layout shift when data arrives |
83
- | 12 | **Verify** | MOTION-A11Y.md §10 | Type-check, production build, and the review checklist on every screen |
84
-
85
- When restyling an existing app, the namespaced colour names (`surface-*`, `ink-*`, `neon-*`) do not collide with
86
- Tailwind's default palette, so pages can be migrated one at a time.
87
-
88
- ## Hard rules
89
-
90
- | Rule | What goes wrong when it is broken |
91
- |---|---|
92
- | Colour tokens are **RGB channels** (`--c-lime: 184 255 61`), mapped as `rgb(var(--c-x) / <alpha-value>)` | `bg-neon-lime/10` and every tint, ring and glow stop working; tints get hard-coded and the light theme cannot override them |
93
- | Coloured **text and thin lines** use `neon-ink-*` / `--tone-ink`; fills and glows use `neon-*` / `--tone` | Light theme: neon text on white is about 1.2:1, unreadable |
94
- | Text on a neon fill is `text-on-neon` (`#05060A`), never white | White on lime / gold / aqua is 1.2-3.3:1 |
95
- | `ink-muted` is the floor for readable text; `ink-faint` is decoration / disabled only | Meta text drops under 4.5:1 |
96
- | **Tone = meaning**, never decoration; one job per hue | Colour stops being a signal; the UI reads as a rainbow |
97
- | A tone is passed with a `.tone-*` scope; never interpolate Tailwind class names (`` `bg-neon-${t}` ``) | The class is not in the source text, Tailwind purges it, production renders colourless |
98
- | `.tone-*` rules stay outside `@layer` | Same purge problem for the scopes themselves |
99
- | No glow on body text; glow only on active / current / claimable / rewarded | Blurred glyphs; visual noise; no hierarchy |
100
- | Every state has a non-colour cue (icon, tag, text, shape) | Colour-blind and screen-reader users lose correct / wrong / new / locked |
101
- | Hit areas >= **44x44 px** (extend small visuals with a pseudo-element) | Mis-taps on phones, especially in the bottom bar and chips |
102
- | Visible **focus ring** everywhere: 2 px aqua, offset 2 px; drawn on the visible part of composite controls | Keyboard users are lost; glow is not a focus indicator |
103
- | **Reduced motion** respected at three levels: CSS block, `MotionConfig reducedMotion="user"`, component branches | Vestibular discomfort; loops that cannot be stopped |
104
- | Animate only `transform`, `opacity`, `background-position`; at most two ambient loops on screen | Jank on phones, battery drain, a restless screen |
105
- | `ease-pop` (overshoot) only for rewards | Ordinary UI feels toy-like |
106
- | Dialogs and overlays portal to `<body>` and use the modal-focus behaviour (LAYOUT-NAV.md §6) | They become inert with `#root`, or focus escapes behind the scrim |
107
- | Game numbers come from the server; rewards are idempotent; the HUD is patched optimistically then refetched | Double payouts, a HUD that disagrees with the server, celebrations for nothing |
108
- | No fake scarcity or loss-framing; rewards are shown before they are earned and paid exactly | The game layer becomes a dark pattern and users stop trusting it |
109
- | Both themes are checked for every new screen | Dark-only review ships unreadable light pages |
110
-
111
- ## Minimal example
112
-
113
- ```tsx
114
- <GlowCard tone="lime" padding="lg" as="section">
115
- <p className="font-display text-2xs font-semibold uppercase tracking-[.16em] text-ink-muted">Today</p>
116
- <h2 className="mt-1.5 text-xl font-bold">2 of 4 steps done</h2>
117
- <div className="mt-4 flex items-center gap-4">
118
- <ProgressRing value={0.5} size={64} label="Daily goal">
119
- <span className="font-display text-sm font-bold tabular-nums text-neon-ink-lime">50%</span>
120
- </ProgressRing>
121
- <NeonButton size="lg" iconRight="next" to="/play">Continue</NeonButton>
122
- <RoundButton icon="mic" tone="flare" aria-label="Voice mode" to="/voice" />
123
- </div>
124
- </GlowCard>
125
- ```
126
-
127
- What makes it "this style": the card's corner tint and edge highlight, an uppercase display-font label in muted ink,
128
- a ring with ink-safe coloured text, one flowing CTA, one toned round button with a real accessible name.
129
-
130
- ## Notes
131
-
132
- - The components in the example are names from `COMPONENTS.md`; each project implements them itself. Class and token
133
- names (`.neon-card`, `ease-glide`, `tone-*`) are the ones the guides use; rename them consistently or not at all.
134
- - Product-specific pieces are described as patterns, not as components: the logo / app mark, the account menu, state
135
- chips and the split control.
136
- - The icon registry is generated from recipes over Lucide shapes. Path data derived from Lucide carries its ISC
137
- licence text with it (`ICONS.md` §7).
1
+ ---
2
+ name: neon-game-ui-ux-skill
3
+ description: "Neon, game-like UI/UX design system for web apps (React 18 + TypeScript + Tailwind 3 + motion): dark blue-black canvas, a few neon tones with one meaning each, glow as a signal, hexagon badges, round keycap buttons, duotone gradient icons, a HUD top bar (level, XP bar, streak, daily-goal ring), desktop side rail, mobile bottom bar with a raised centre progress dial that opens the activity modes as a radial menu, and a gamification layer (XP, levels, streak, daily path with a chest, quests, achievements, XP burst flying to the HUD, level-up modal). Guidance only, no source files: exact token values, per-component anatomy and implementation techniques, shell and dial geometry, the gamification data contract, and the icon method (Lucide base shapes, layer recipes, a generated registry). Triggers on: neon / cyber / game-like / gamified UI, 'like LenS', 'Aperture Neon', meshy-like dark UI, HUD, XP, level, streak, quests, achievements, daily goal, round buttons, radial menu, practice dial, duotone icons, or restyling a frontend in this style."
4
+ license: MIT
5
+ metadata:
6
+ author: HoangThang
7
+ version: '1.0.0'
8
+ ---
9
+
10
+ # Neon Game UI/UX
11
+
12
+ A complete design system for a neon, game-like web interface, taken from a production app (LenS, "Aperture Neon";
13
+ visual direction studied from meshy.ai and given its own identity). Use it to build the same look and feel in another
14
+ project.
15
+
16
+ This skill is **guidance only**. It contains no source files: the project writes its own tokens, components, shell and
17
+ icon pipeline from the values, anatomy and techniques in the detail files. The numbers in those files are the system;
18
+ use them as written, do not approximate them. The reference stack is React 18 + TypeScript + Tailwind 3.4 +
19
+ `motion/react`; the rules themselves do not depend on it.
20
+
21
+ ## When to trigger
22
+
23
+ - Building or restyling a frontend that should look neon / game-like / gamified, or "like LenS".
24
+ - Adding a HUD, XP, levels, streaks, a daily goal, quests, achievements or reward animations to an app.
25
+ - Building the app shell: top bar HUD, side rail, bottom bar with a centre dial / radial menu.
26
+ - Creating or replacing the icon set, or asked how the icons are made.
27
+ - Reviewing a screen in this style for contrast, motion or accessibility.
28
+
29
+ ## Detail files: load only what the task needs
30
+
31
+ | File | Load when |
32
+ |---|---|
33
+ | `TOKENS.md` | Any styling work: every colour (dark + light, RGB channels), ink-safe variants, the Tailwind mapping, tone scopes, type, radii, shadows, gradients, animations, base element rules, theme switch |
34
+ | `COMPONENTS.md` | Building or using a shared component (icon, buttons, cards, rings, bars, badges, path, quests, achievements, controls, toasts, reward system), the root providers or the gallery page |
35
+ | `LAYOUT-NAV.md` | App shell, HUD top bar, side rail, bottom bar, the centre dial and its radial menu (sizes, arc formula, states, when not to use one), responsive rules, safe areas, sheets, dialogs, skeletons |
36
+ | `GAMIFICATION.md` | XP, levels, streak, daily path, quests, achievements, reward moments, honesty rules, the HUD / Reward data contract and the client wiring |
37
+ | `ICONS.md` | The icon method: Lucide base shapes, the layer model, recipes, customisation rules, the generator and the preview sheet, the licence obligation, alternative routes, the icon checklist |
38
+ | `MOTION-A11Y.md` | Easing and durations, what may animate, loop budget, reduced motion, contrast targets, focus, screen readers, the review checklist |
39
+
40
+ ## Design DNA: twelve rules
41
+
42
+ 1. **Dark blue-black canvas.** Surfaces step from `#05060A` to `#1E2334` in small increments; never neutral grey,
43
+ never pure black cards. Depth = a 1 px top highlight + a soft drop shadow, not big lightness jumps.
44
+ 2. **Few neon tones, one job each.** lime = primary / XP / correct, aqua = links / focus, iris = level, flare = new /
45
+ rare, amber = quests / in progress, ember = streak, gold = trophies / claimable, coral = wrong / danger. A tone
46
+ means the same thing on every screen.
47
+ 3. **Glow is a signal, not decoration.** Only active, current, claimable or just-rewarded things glow. A screen at
48
+ rest has a handful of glows; if everything glows, nothing does.
49
+ 4. **Hexagons for identity** (level badge, medals, quest and empty-state tiles), **circles for actions** (round
50
+ keycap buttons, path nodes, progress rings), **rounded rectangles (24 px) for containers**.
51
+ 5. **Keycap buttons.** Buttons have a visible 4 px depth and travel 3 px into it when pressed. Primary = lime face
52
+ with dark text; neutral = dark disc with a neon ring.
53
+ 6. **Duotone icons.** 24 px grid, 1.75 stroke, tone gradient stroke + the same gradient at 18 % as fill, at most one
54
+ accent (a pip or a white glint). Base shapes from one open icon family. Inactive / disabled / on-neon icons are mono.
55
+ 7. **Three fonts with fixed roles.** Display (Chakra Petch) for headings, numbers and uppercase labels; text
56
+ (Be Vietnam Pro) for UI; reading (Lexend) for long passages. Numbers always `tabular-nums`.
57
+ 8. **Numbers are alive.** Values count up, bars slide, rings draw in: once, in 600-700 ms, with the glide easing.
58
+ 9. **Rewards land on the HUD.** An XP gain bursts from the control the user pressed and flies to the XP bar, which
59
+ then updates. Intensity matches rarity: chip < toast < claim glow < level-up modal.
60
+ 10. **One primary action per view.** A single flowing-gradient CTA; everything else is secondary or ghost.
61
+ 11. **The HUD is always there and always true.** Level, XP, streak and daily goal in the top bar on every page; all
62
+ values come from the server.
63
+ 12. **Mobile first, thumb first.** A bottom bar with the core activity as a raised centre dial that doubles as
64
+ today's progress ring; desktop gets a side rail instead.
65
+
66
+ ## Bring it to a new project: build order
67
+
68
+ Work in this order; each step has a check that must pass before the next one starts.
69
+
70
+ | # | Create | From | Check |
71
+ |---|---|---|---|
72
+ | 1 | **Document head**: `data-theme="dark"` + `dark` class on `<html>`, viewport with `viewport-fit=cover`, `theme-color`, `color-scheme`, the font stylesheet, the inline theme script | TOKENS.md §6, §12 | Reload with a saved light theme: no dark frame flashes |
73
+ | 2 | **Token stylesheet**: the dark block and the light override. Adjust tone *jobs* to the product; keep one job per hue | TOKENS.md §2-§4, §8, §9, §11 | Every variable holds RGB channels, not hex |
74
+ | 3 | **Tailwind theme**: colours, fonts, sizes, radius, shadows, gradients, keyframes, animations, easings | TOKENS.md §1, §6-§11 | `bg-neon-lime/10` and `text-neon-ink-lime` produce CSS |
75
+ | 4 | **Base stylesheet**: base element rules, shell variables, component classes, tone scopes outside any layer, the reduced-motion block | TOKENS.md §5, §10, §12; MOTION-A11Y.md §5 | `body` is `#05060A`, headings use the display font, focus rings are aqua; a **production build** still contains `.tone-gold` |
76
+ | 5 | **Theme hook** | COMPONENTS.md, hooks | Toggling updates every consumer and survives a reload |
77
+ | 6 | **Icon system**: pin Lucide, name list, recipes, generator, preview sheet, licence file, the `Icon` component | ICONS.md; COMPONENTS.md, Icon | The generator fails on a wrong node index; the preview sheet reads at 24 px in dark, light and mono |
78
+ | 7 | **Core components and root providers** | COMPONENTS.md | Type-check passes; each component matches its entry |
79
+ | 8 | **Gallery page** (development only) showing every component, state and icon | COMPONENTS.md, last section | Reviewed in both themes, at 320 px, with the keyboard, with reduced motion. Do this before any product page |
80
+ | 9 | **Shell**: top bar HUD, side rail, bottom bar, dial and radial menu, modal focus | LAYOUT-NAV.md | Unit tests of the arc geometry pass for 3-6 items at 320 / 360 / 390 / 768 px; the open menu fits at 320 px; Tab stays inside it |
81
+ | 10 | **Gamification wiring**: agree the HUD read model and the Reward object with the backend, then "play a reward" on every action that grants XP | GAMIFICATION.md §10 | A grant makes the chip land on the XP bar and the bar fill at that moment; a repeated request celebrates nothing |
82
+ | 11 | **Pages**: home first (path hero card, stat tiles, quests, achievements), then the rest. Every page gets a skeleton with the same boxes, an empty state and an inline error state | LAYOUT-NAV.md §5, §7 | No layout shift when data arrives |
83
+ | 12 | **Verify** | MOTION-A11Y.md §10 | Type-check, production build, and the review checklist on every screen |
84
+
85
+ When restyling an existing app, the namespaced colour names (`surface-*`, `ink-*`, `neon-*`) do not collide with
86
+ Tailwind's default palette, so pages can be migrated one at a time.
87
+
88
+ ## Hard rules
89
+
90
+ | Rule | What goes wrong when it is broken |
91
+ |---|---|
92
+ | Colour tokens are **RGB channels** (`--c-lime: 184 255 61`), mapped as `rgb(var(--c-x) / <alpha-value>)` | `bg-neon-lime/10` and every tint, ring and glow stop working; tints get hard-coded and the light theme cannot override them |
93
+ | Coloured **text and thin lines** use `neon-ink-*` / `--tone-ink`; fills and glows use `neon-*` / `--tone` | Light theme: neon text on white is about 1.2:1, unreadable |
94
+ | Text on a neon fill is `text-on-neon` (`#05060A`), never white | White on lime / gold / aqua is 1.2-3.3:1 |
95
+ | `ink-muted` is the floor for readable text; `ink-faint` is decoration / disabled only | Meta text drops under 4.5:1 |
96
+ | **Tone = meaning**, never decoration; one job per hue | Colour stops being a signal; the UI reads as a rainbow |
97
+ | A tone is passed with a `.tone-*` scope; never interpolate Tailwind class names (`` `bg-neon-${t}` ``) | The class is not in the source text, Tailwind purges it, production renders colourless |
98
+ | `.tone-*` rules stay outside `@layer` | Same purge problem for the scopes themselves |
99
+ | No glow on body text; glow only on active / current / claimable / rewarded | Blurred glyphs; visual noise; no hierarchy |
100
+ | Every state has a non-colour cue (icon, tag, text, shape) | Colour-blind and screen-reader users lose correct / wrong / new / locked |
101
+ | Hit areas >= **44x44 px** (extend small visuals with a pseudo-element) | Mis-taps on phones, especially in the bottom bar and chips |
102
+ | Visible **focus ring** everywhere: 2 px aqua, offset 2 px; drawn on the visible part of composite controls | Keyboard users are lost; glow is not a focus indicator |
103
+ | **Reduced motion** respected at three levels: CSS block, `MotionConfig reducedMotion="user"`, component branches | Vestibular discomfort; loops that cannot be stopped |
104
+ | Animate only `transform`, `opacity`, `background-position`; at most two ambient loops on screen | Jank on phones, battery drain, a restless screen |
105
+ | `ease-pop` (overshoot) only for rewards | Ordinary UI feels toy-like |
106
+ | Dialogs and overlays portal to `<body>` and use the modal-focus behaviour (LAYOUT-NAV.md §6) | They become inert with `#root`, or focus escapes behind the scrim |
107
+ | Game numbers come from the server; rewards are idempotent; the HUD is patched optimistically then refetched | Double payouts, a HUD that disagrees with the server, celebrations for nothing |
108
+ | No fake scarcity or loss-framing; rewards are shown before they are earned and paid exactly | The game layer becomes a dark pattern and users stop trusting it |
109
+ | Both themes are checked for every new screen | Dark-only review ships unreadable light pages |
110
+
111
+ ## Minimal example
112
+
113
+ ```tsx
114
+ <GlowCard tone="lime" padding="lg" as="section">
115
+ <p className="font-display text-2xs font-semibold uppercase tracking-[.16em] text-ink-muted">Today</p>
116
+ <h2 className="mt-1.5 text-xl font-bold">2 of 4 steps done</h2>
117
+ <div className="mt-4 flex items-center gap-4">
118
+ <ProgressRing value={0.5} size={64} label="Daily goal">
119
+ <span className="font-display text-sm font-bold tabular-nums text-neon-ink-lime">50%</span>
120
+ </ProgressRing>
121
+ <NeonButton size="lg" iconRight="next" to="/play">Continue</NeonButton>
122
+ <RoundButton icon="mic" tone="flare" aria-label="Voice mode" to="/voice" />
123
+ </div>
124
+ </GlowCard>
125
+ ```
126
+
127
+ What makes it "this style": the card's corner tint and edge highlight, an uppercase display-font label in muted ink,
128
+ a ring with ink-safe coloured text, one flowing CTA, one toned round button with a real accessible name.
129
+
130
+ ## Notes
131
+
132
+ - The components in the example are names from `COMPONENTS.md`; each project implements them itself. Class and token
133
+ names (`.neon-card`, `ease-glide`, `tone-*`) are the ones the guides use; rename them consistently or not at all.
134
+ - Product-specific pieces are described as patterns, not as components: the logo / app mark, the account menu, state
135
+ chips and the split control.
136
+ - The icon registry is generated from recipes over Lucide shapes. Path data derived from Lucide carries its ISC
137
+ licence text with it (`ICONS.md` §7).