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.
- package/LICENSE +16 -16
- package/README.md +167 -166
- package/bin/known-hashes.json +6 -1
- package/bin/sisyo.js +285 -285
- package/package.json +30 -30
- package/templates/.claude/rules/agents-and-tests.md +32 -24
- package/templates/.claude/rules/docs.md +19 -19
- package/templates/.claude/skills/fastapi-best-practices/ASYNC-PATTERNS.md +121 -121
- package/templates/.claude/skills/fastapi-best-practices/DATABASE.md +153 -153
- package/templates/.claude/skills/fastapi-best-practices/DEPENDENCIES.md +140 -140
- package/templates/.claude/skills/fastapi-best-practices/PROJECT-STRUCTURE.md +90 -90
- package/templates/.claude/skills/fastapi-best-practices/PYDANTIC-GUIDE.md +155 -155
- package/templates/.claude/skills/fastapi-best-practices/SKILL.md +123 -123
- package/templates/.claude/skills/g6-style/SKILL.md +125 -125
- package/templates/.claude/skills/g6-style/references/checks.md +58 -58
- package/templates/.claude/skills/g6-style/references/imagery.md +103 -103
- package/templates/.claude/skills/g6-style/references/motion.md +121 -121
- package/templates/.claude/skills/g6-style/references/sections.md +263 -263
- package/templates/.claude/skills/g6-style/references/tokens.md +197 -197
- package/templates/.claude/skills/hindsight/SKILL.md +175 -175
- package/templates/.claude/skills/hoang-auth/SKILL.md +188 -0
- package/templates/.claude/skills/html-docs/SKILL.md +207 -207
- package/templates/.claude/skills/i18n-multilang/SKILL.md +153 -153
- package/templates/.claude/skills/i18n-multilang/assets/languages.json +47 -47
- package/templates/.claude/skills/i18n-multilang/assets/plural-vectors.json +46 -46
- package/templates/.claude/skills/i18n-multilang/assets/project/README.md +17 -17
- package/templates/.claude/skills/i18n-multilang/assets/project/gitattributes.txt +6 -6
- package/templates/.claude/skills/i18n-multilang/assets/project/gitignore.txt +4 -4
- package/templates/.claude/skills/i18n-multilang/assets/project/glossary.json +6 -6
- package/templates/.claude/skills/i18n-multilang/assets/project/i18n.config.json +22 -22
- package/templates/.claude/skills/i18n-multilang/assets/project/locales/__source__/common.json +10 -10
- package/templates/.claude/skills/i18n-multilang/assets/project/notes/common.json +5 -5
- package/templates/.claude/skills/i18n-multilang/assets/project/style.md +20 -20
- package/templates/.claude/skills/i18n-multilang/references/format.md +100 -100
- package/templates/.claude/skills/i18n-multilang/references/languages.md +97 -97
- package/templates/.claude/skills/i18n-multilang/references/layout-and-versioning.md +256 -256
- package/templates/.claude/skills/i18n-multilang/references/numbers.md +161 -161
- package/templates/.claude/skills/i18n-multilang/references/platform-unity.md +142 -142
- package/templates/.claude/skills/i18n-multilang/references/platform-web.md +107 -107
- package/templates/.claude/skills/i18n-multilang/references/translation.md +143 -143
- package/templates/.claude/skills/i18n-multilang/references/voice.md +271 -271
- package/templates/.claude/skills/i18n-multilang/scripts/i18n.py +1041 -1041
- package/templates/.claude/skills/i18n-multilang/scripts/numwords.py +1013 -1013
- package/templates/.claude/skills/i18n-multilang/scripts/voice.py +478 -478
- package/templates/.claude/skills/neon-game-ui-ux-skill/COMPONENTS.md +490 -490
- package/templates/.claude/skills/neon-game-ui-ux-skill/GAMIFICATION.md +246 -246
- package/templates/.claude/skills/neon-game-ui-ux-skill/ICONS.md +249 -249
- package/templates/.claude/skills/neon-game-ui-ux-skill/LAYOUT-NAV.md +362 -362
- package/templates/.claude/skills/neon-game-ui-ux-skill/MOTION-A11Y.md +168 -168
- package/templates/.claude/skills/neon-game-ui-ux-skill/SKILL.md +137 -137
- package/templates/.claude/skills/neon-game-ui-ux-skill/TOKENS.md +323 -323
- package/templates/.claude/skills/react-page-oriented/SKILL.md +407 -407
- package/templates/.claude/skills/react-page-oriented/triggers.md +12 -12
- package/templates/.claude/skills/terraform-best-practices/SKILL.md +341 -341
- package/templates/.claude/skills/typesafe-jev/SKILL.md +148 -148
- package/templates/.claude/skills/vibe-docs/SKILL.md +242 -242
- package/templates/SISYO.md +37 -37
- package/templates/docs/99_progress/features.md +7 -7
- package/templates/docs/99_progress/handoff.md +19 -19
- package/templates/docs/99_progress/todo.md +15 -15
- package/templates/docs/MAP.md +26 -26
|
@@ -1,197 +1,197 @@
|
|
|
1
|
-
# g6-style tokens
|
|
2
|
-
|
|
3
|
-
Every colour, gradient and surface class of the style, light and dark. Type these values into the project's global
|
|
4
|
-
CSS (Tailwind v4: after `@import "tailwindcss";`) or its own token file. Keyframes and easings are in `motion.md`.
|
|
5
|
-
|
|
6
|
-
Names used here (`--c-*`, `surface-*`, `ink-*`, `gold`, `.g6-card`, `.led-line`, …) are the names the other files
|
|
7
|
-
refer to. A project may rename them (or map them onto its existing tone names), but then everywhere.
|
|
8
|
-
|
|
9
|
-
## 1. How the layers fit
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
variables --c-gold-ink: #8a6211 (light) / #f6d58e (dark) one set per theme, under :root
|
|
13
|
-
Tailwind @theme inline { --color-ink-gold: var(--c-gold-ink) } a utility reads the variable where it is used
|
|
14
|
-
markup text-ink-gold bg-gold/12 ring-gold/40 bg-(image:--c-skylight)
|
|
15
|
-
tone scope .tone-gold { --tone: #f2c76e; --tone-ink: var(--c-gold-ink) } → bg-tone/12 ring-tone/40 text-tone-ink
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
- **Light is the default; dark follows the device** unless the page sets `data-theme`. `[data-theme='light']` opts a
|
|
19
|
-
subtree (or the whole page) out of dark, `[data-theme='dark']` forces dark.
|
|
20
|
-
- **`@theme inline`** (not plain `@theme`) for every colour that reads a `--c-*` variable: the utility then
|
|
21
|
-
resolves the variable on the element it is used on, so a `data-theme` subtree re-themes everything inside it.
|
|
22
|
-
- **Tone fills, rings and glows are the same in both themes**; coloured TEXT and thin lines use the `ink-*` stop,
|
|
23
|
-
which is deep gold on ivory (5.2–6.3:1) and the light itself on black.
|
|
24
|
-
|
|
25
|
-
The dark block is a custom variant used once, inside `:root`:
|
|
26
|
-
|
|
27
|
-
```css
|
|
28
|
-
@custom-variant theme-dark {
|
|
29
|
-
@media (prefers-color-scheme: dark) { &:not([data-theme='light']) { @slot; } }
|
|
30
|
-
&[data-theme='dark'], & [data-theme='dark'] { @slot; }
|
|
31
|
-
}
|
|
32
|
-
:root, [data-theme='light'] { color-scheme: light; /* light values of §2–§5 */ }
|
|
33
|
-
:root { @variant theme-dark { color-scheme: dark; /* dark values of §2–§5 */ } }
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Do not use `theme-dark:` as a class on elements: it does not follow a theme picked with a toggle (`data-theme` on
|
|
37
|
-
`<html>`). Put per-theme values in `--c-*` variables instead and read them.
|
|
38
|
-
|
|
39
|
-
## 2. Surfaces and lines
|
|
40
|
-
|
|
41
|
-
| Variable | Tailwind colour | Light | Dark | Use |
|
|
42
|
-
|---|---|---|---|---|
|
|
43
|
-
| `--c-void` | `surface-void` | `#f7f3ec` | `#0b0906` | Page (`body` background) |
|
|
44
|
-
| `--c-base` | `surface-base` | `#fbf8f2` | `#100d09` | Header glass (at 75 % + blur) |
|
|
45
|
-
| `--c-surface` | `surface` | `#fffdf8` | `#17130d` | Cards, chips, bands (`bg-surface/55`) |
|
|
46
|
-
| `--c-raised` | `surface-2` | `#f4eee4` | `#1e1912` | Wells, hover, tile stages (`/70`) |
|
|
47
|
-
| `--c-shade` | `surface-3` | `#ebe3d5` | `#272017` | Tracks, the switch groove |
|
|
48
|
-
| `--c-line` | `line` | `#e6dccb` | `#31291d` | Hairlines |
|
|
49
|
-
| `--c-line-strong` | `line-strong` | `#d2c4a8` | `#463a28` | Outline buttons, hover borders |
|
|
50
|
-
| `--c-field` | `field` | `#fffdf8` | `#1e1912` | Inputs |
|
|
51
|
-
|
|
52
|
-
## 3. Ink (text)
|
|
53
|
-
|
|
54
|
-
| Variable | Tailwind colour | Light | Dark | Use |
|
|
55
|
-
|---|---|---|---|---|
|
|
56
|
-
| `--c-title` | `ink-title` | `#1c1710` | `#fbf3e2` | Headings, values |
|
|
57
|
-
| `--c-body` | `ink-body` | `#3b3327` | `#e3d8c3` | Body text (`body` colour) |
|
|
58
|
-
| `--c-soft` | `ink-soft` | `#5b5142` | `#bfb197` | Leads, notes |
|
|
59
|
-
| `--c-muted` | `muted` | `#6e6352` | `#9c8f76` | Secondary text; the floor for readable text |
|
|
60
|
-
| `--c-faint` | `faint` | `#b6aa95` | `#5a4f3c` | Decoration and disabled only, never text to read |
|
|
61
|
-
| `--c-primary` | `primary` | `#1c1710` | `#f6ecd6` | Strong neutral: selected tab, filled number |
|
|
62
|
-
| `--c-primary-hover` | — | `#3a3125` | `#e3d8c3` | Its hover |
|
|
63
|
-
| `--c-on-primary` | `on-primary` | `#fffaf0` | `#1c1710` | Text on `primary` |
|
|
64
|
-
|
|
65
|
-
## 4. Tones and their inks
|
|
66
|
-
|
|
67
|
-
Fills, rings and glows (the same in both themes, `@theme inline` literals):
|
|
68
|
-
|
|
69
|
-
| Tone | Tailwind colour | Value | Meaning |
|
|
70
|
-
|---|---|---|---|
|
|
71
|
-
| gold | `gold` | `#f2c76e` | Primary action, selected, done (the CTA key, success ticks) |
|
|
72
|
-
| champagne | `champagne` | `#ecd6a6` | Links, sharing, keyboard focus |
|
|
73
|
-
| bronze | `bronze` | `#e2a47c` | Profile / identity |
|
|
74
|
-
| rose | `rose` | `#f2b8a8` | Rare highlight |
|
|
75
|
-
| on-gold | `on-gold` | `#1a1307` | Text on any gold fill (white on gold fails) |
|
|
76
|
-
|
|
77
|
-
Ink stops (coloured text and thin lines; Tailwind `ink-<tone>` = `var(--c-<tone>-ink)`):
|
|
78
|
-
|
|
79
|
-
| Variable | Light (on ivory) | Dark (on black) |
|
|
80
|
-
|---|---|---|
|
|
81
|
-
| `--c-gold-ink` | `#8a6211` | `#f6d58e` |
|
|
82
|
-
| `--c-champagne-ink` | `#6e5526` | `#efdcb2` |
|
|
83
|
-
| `--c-bronze-ink` | `#97502d` | `#f0b994` |
|
|
84
|
-
| `--c-rose-ink` | `#a3413a` | `#f6c2b4` |
|
|
85
|
-
| `--c-amber-ink` | `#965400` | `#ffb23e` |
|
|
86
|
-
| `--c-coral-ink` | `#cc1a40` | `#ff5c7a` |
|
|
87
|
-
| `--c-sheen-ink` | `#b8862c` | `#fff1c9` |
|
|
88
|
-
|
|
89
|
-
`--c-sheen-ink` is the bright band of metallic gold text (large text only, 3.2:1 on ivory); it has no Tailwind
|
|
90
|
-
colour of its own, only `bg-gold-ink` (§6) reads it. Coral and amber exist as inks only; where a fill is needed (the
|
|
91
|
-
three dots of a drawn browser bar) use `#ff5c7a` and `#ffb23e` at 70 %.
|
|
92
|
-
|
|
93
|
-
Tone scopes pass a tone to a component without building class names. Map `--color-tone: var(--tone, #f2c76e)` and
|
|
94
|
-
`--color-tone-ink: var(--tone-ink, var(--c-gold-ink))` in `@theme inline`, then:
|
|
95
|
-
|
|
96
|
-
| Class | `--tone` | `--tone-ink` |
|
|
97
|
-
|---|---|---|
|
|
98
|
-
| `.tone-gold` | `#f2c76e` | `var(--c-gold-ink)` |
|
|
99
|
-
| `.tone-champagne` | `#ecd6a6` | `var(--c-champagne-ink)` |
|
|
100
|
-
| `.tone-bronze` | `#e2a47c` | `var(--c-bronze-ink)` |
|
|
101
|
-
| `.tone-rose` | `#f2b8a8` | `var(--c-rose-ink)` |
|
|
102
|
-
|
|
103
|
-
Inside a scope: icon tile `bg-tone/12 ring-1 ring-tone/40 ring-inset` (chips use `/15`), text `text-tone-ink`.
|
|
104
|
-
|
|
105
|
-
## 5. Depth, scrim and light
|
|
106
|
-
|
|
107
|
-
| Variable | Light | Dark |
|
|
108
|
-
|---|---|---|
|
|
109
|
-
| `--c-shadow-edge` (Tailwind `shadow-edge`) | `inset 0 1px 0 rgb(255 255 255 / .9), 0 1px 2px rgb(60 42 12 / .06), 0 12px 32px rgb(60 42 12 / .08)` | `inset 0 1px 0 rgb(255 240 210 / .06), 0 24px 60px rgb(0 0 0 / .4)` |
|
|
110
|
-
| `--c-shadow-float` (`shadow-float`) | `0 1px 2px rgb(60 42 12 / .06), 0 18px 48px rgb(60 42 12 / .14)` | `inset 0 1px 0 rgb(255 240 210 / .07), 0 24px 60px rgb(0 0 0 / .6)` |
|
|
111
|
-
| `--c-keycap-depth` | `#dccfb5` (a light key sits on a sand base) | `rgb(0 0 0 / .5)` |
|
|
112
|
-
| `--c-scrim` | `rgb(28 23 16 / .45)` | `rgb(11 9 6 / .72)` |
|
|
113
|
-
| `--c-lattice` | `rgb(184 134 44 / .16)` | `rgb(242 199 110 / .13)` |
|
|
114
|
-
| `--c-way-line` | `rgb(184 134 44 / .6)` | `rgb(242 199 110 / .45)` |
|
|
115
|
-
| `--c-way-light` | `#b07a1c` | `#fff3d1` |
|
|
116
|
-
| `--c-way-glow` | `rgb(184 134 44 / .7)` | `rgb(242 199 110 / .9)` |
|
|
117
|
-
|
|
118
|
-
`--c-way-*` are the lines of light that travel (tiles meeting at one card, `motion.md` §4). On ivory the moving light
|
|
119
|
-
must be DEEP gold with a glow: the pale cream that looks like an LED on black disappears on the light page.
|
|
120
|
-
|
|
121
|
-
Page backdrop `--c-backdrop` (three radial gradients, the page's only "lighting"):
|
|
122
|
-
|
|
123
|
-
| Layer | Light | Dark |
|
|
124
|
-
|---|---|---|
|
|
125
|
-
| Top glow | `radial-gradient(ellipse 80% 55% at 50% -8%, rgb(242 199 110 / .2), transparent 70%)` | same shape, `/ .14` |
|
|
126
|
-
| Top right | `radial-gradient(600px 380px at 92% 6%, rgb(236 214 166 / .22), transparent 70%)` | `at 92% 12%`, `/ .08` |
|
|
127
|
-
| Side | `radial-gradient(520px 360px at 4% 30%, rgb(226 164 124 / .08), transparent 70%)` | `at 6% 88%`, `/ .07` |
|
|
128
|
-
|
|
129
|
-
Hero skylight `--c-skylight` (read with `bg-(image:--c-skylight)`):
|
|
130
|
-
light `radial-gradient(55% 60% at 50% 0%, rgb(255 236 190 / .45), rgb(242 199 110 / .12) 45%, transparent 75%)`,
|
|
131
|
-
dark `radial-gradient(55% 60% at 50% 0%, rgb(242 199 110 / .24), rgb(242 199 110 / .06) 45%, transparent 75%)`.
|
|
132
|
-
|
|
133
|
-
## 6. Other theme values and gradient utilities
|
|
134
|
-
|
|
135
|
-
`@theme` (not inline): `--radius-control: 1rem`, `--radius-card: 1.5rem`, `--text-2xs: 0.625rem` with line height
|
|
136
|
-
`0.875rem`, `--shadow-glow-sm: 0 0 10px rgb(242 199 110 / .25)`, `--shadow-glow: 0 0 18px rgb(242 199 110 / .4)`.
|
|
137
|
-
Glow is a signal: the selected, current or primary thing only.
|
|
138
|
-
|
|
139
|
-
Gradients as `@utility` classes:
|
|
140
|
-
|
|
141
|
-
| Utility | Value | Use |
|
|
142
|
-
|---|---|---|
|
|
143
|
-
| `bg-cta` | `linear-gradient(150deg, #fff3d1 0%, #f2c76e 38%, #e2b45c 62%, #fff0c4 80%, #d4a24a 100%)` | The metallic gold key. With `bg-[length:200%_200%] animate-flow` light travels over it; only the one hero CTA of a page gets that. |
|
|
144
|
-
| `bg-foil` | `linear-gradient(120deg, #f6d58e 0%, #fff4d6 28%, #e2b45c 52%, #fff1c9 74%, #e2a47c 100%)` | Gold foil: brand marks, plan name and CTA on the dark plan card, highlight text on dark photos |
|
|
145
|
-
| `bg-gold-ink` | `linear-gradient(120deg, var(--c-gold-ink) 0%, var(--c-sheen-ink) 34%, var(--c-gold-ink) 58%, var(--c-sheen-ink) 80%, var(--c-bronze-ink) 100%)` | Metallic gold TEXT readable in both themes (with `text-gradient`) |
|
|
146
|
-
| `text-gradient` | `-webkit-background-clip: text; background-clip: text; color: transparent` | Turns a gradient background into text colour |
|
|
147
|
-
| `bg-sheen` | `linear-gradient(118deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%)` | A light band over a surface |
|
|
148
|
-
|
|
149
|
-
Base layer: `body { background-color: var(--c-void); color: var(--c-body) }`,
|
|
150
|
-
`:focus-visible { outline: 2px solid var(--c-champagne-ink); outline-offset: 2px }`.
|
|
151
|
-
|
|
152
|
-
## 7. Surface classes
|
|
153
|
-
|
|
154
|
-
**`.g6-backdrop`**: one fixed layer behind the page, rendered once, static. `pointer-events: none; position: fixed;
|
|
155
|
-
inset: 0; z-index: -10; background: var(--c-backdrop)`. Its `::after` draws the triangle lattice of light that fades
|
|
156
|
-
downwards:
|
|
157
|
-
|
|
158
|
-
```css
|
|
159
|
-
.g6-backdrop::after {
|
|
160
|
-
content: ''; position: absolute; inset: 0; opacity: .9;
|
|
161
|
-
background-image:
|
|
162
|
-
repeating-linear-gradient(0deg, var(--c-lattice) 0 1px, transparent 1px 41.57px),
|
|
163
|
-
repeating-linear-gradient(60deg, var(--c-lattice) 0 1px, transparent 1px 41.57px),
|
|
164
|
-
repeating-linear-gradient(120deg, var(--c-lattice) 0 1px, transparent 1px 41.57px);
|
|
165
|
-
mask-image: linear-gradient(#000, transparent 60%); /* + -webkit-mask-image */
|
|
166
|
-
}
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
**`.led-line`**: a strip of gold light, the same in both themes. Section band edges, above and below a marquee,
|
|
170
|
-
eyebrow dashes (`w-8`). `height: 1px; background: linear-gradient(90deg, transparent, rgb(242 199 110 / .85) 18%,
|
|
171
|
-
#fff3d1 50%, rgb(242 199 110 / .85) 82%, transparent); box-shadow: 0 0 10px rgb(242 199 110 / .5), 0 0 2px
|
|
172
|
-
rgb(255 243 209 / .8)`.
|
|
173
|
-
|
|
174
|
-
**`.g6-card`**: `position: relative; border-radius: var(--radius-card); border: 1px solid var(--c-line);
|
|
175
|
-
background-color: var(--c-surface); box-shadow: var(--c-shadow-edge)`.
|
|
176
|
-
|
|
177
|
-
**`.g6-glow`** (needs a `.tone-*` scope): a tinted top-right corner, `background-image: radial-gradient(240px 150px
|
|
178
|
-
at 100% 0%, color-mix(in srgb, var(--tone, #f2c76e) 14%, transparent), transparent 70%)`.
|
|
179
|
-
|
|
180
|
-
**`.g6-sweep`**: a ring of light turning around the one element a section points at; one per screen. The element
|
|
181
|
-
gets `position: relative; isolation: isolate` and the radius of its child; the ring is a masked conic gradient on
|
|
182
|
-
`::before` turned by an animated custom property:
|
|
183
|
-
|
|
184
|
-
```css
|
|
185
|
-
@property --g6-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
|
|
186
|
-
.g6-sweep::before {
|
|
187
|
-
content: ''; position: absolute; inset: -3px; padding: 3px; border-radius: inherit; pointer-events: none;
|
|
188
|
-
background: conic-gradient(from var(--g6-angle), #f2c76e, #ecd6a6, #e2a47c, rgb(242 199 110 / .15) 70%, #f2c76e);
|
|
189
|
-
mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
|
|
190
|
-
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
|
|
191
|
-
animation: g6-spin 6s linear infinite;
|
|
192
|
-
}
|
|
193
|
-
@keyframes g6-spin { to { --g6-angle: 360deg; } }
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
Wrap the card (`<div class="g6-sweep rounded-[1.75rem]"><div class="g6-card …">`), do not put the class on the card
|
|
197
|
-
itself: the card's own `overflow-hidden` would clip the ring.
|
|
1
|
+
# g6-style tokens
|
|
2
|
+
|
|
3
|
+
Every colour, gradient and surface class of the style, light and dark. Type these values into the project's global
|
|
4
|
+
CSS (Tailwind v4: after `@import "tailwindcss";`) or its own token file. Keyframes and easings are in `motion.md`.
|
|
5
|
+
|
|
6
|
+
Names used here (`--c-*`, `surface-*`, `ink-*`, `gold`, `.g6-card`, `.led-line`, …) are the names the other files
|
|
7
|
+
refer to. A project may rename them (or map them onto its existing tone names), but then everywhere.
|
|
8
|
+
|
|
9
|
+
## 1. How the layers fit
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
variables --c-gold-ink: #8a6211 (light) / #f6d58e (dark) one set per theme, under :root
|
|
13
|
+
Tailwind @theme inline { --color-ink-gold: var(--c-gold-ink) } a utility reads the variable where it is used
|
|
14
|
+
markup text-ink-gold bg-gold/12 ring-gold/40 bg-(image:--c-skylight)
|
|
15
|
+
tone scope .tone-gold { --tone: #f2c76e; --tone-ink: var(--c-gold-ink) } → bg-tone/12 ring-tone/40 text-tone-ink
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
- **Light is the default; dark follows the device** unless the page sets `data-theme`. `[data-theme='light']` opts a
|
|
19
|
+
subtree (or the whole page) out of dark, `[data-theme='dark']` forces dark.
|
|
20
|
+
- **`@theme inline`** (not plain `@theme`) for every colour that reads a `--c-*` variable: the utility then
|
|
21
|
+
resolves the variable on the element it is used on, so a `data-theme` subtree re-themes everything inside it.
|
|
22
|
+
- **Tone fills, rings and glows are the same in both themes**; coloured TEXT and thin lines use the `ink-*` stop,
|
|
23
|
+
which is deep gold on ivory (5.2–6.3:1) and the light itself on black.
|
|
24
|
+
|
|
25
|
+
The dark block is a custom variant used once, inside `:root`:
|
|
26
|
+
|
|
27
|
+
```css
|
|
28
|
+
@custom-variant theme-dark {
|
|
29
|
+
@media (prefers-color-scheme: dark) { &:not([data-theme='light']) { @slot; } }
|
|
30
|
+
&[data-theme='dark'], & [data-theme='dark'] { @slot; }
|
|
31
|
+
}
|
|
32
|
+
:root, [data-theme='light'] { color-scheme: light; /* light values of §2–§5 */ }
|
|
33
|
+
:root { @variant theme-dark { color-scheme: dark; /* dark values of §2–§5 */ } }
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Do not use `theme-dark:` as a class on elements: it does not follow a theme picked with a toggle (`data-theme` on
|
|
37
|
+
`<html>`). Put per-theme values in `--c-*` variables instead and read them.
|
|
38
|
+
|
|
39
|
+
## 2. Surfaces and lines
|
|
40
|
+
|
|
41
|
+
| Variable | Tailwind colour | Light | Dark | Use |
|
|
42
|
+
|---|---|---|---|---|
|
|
43
|
+
| `--c-void` | `surface-void` | `#f7f3ec` | `#0b0906` | Page (`body` background) |
|
|
44
|
+
| `--c-base` | `surface-base` | `#fbf8f2` | `#100d09` | Header glass (at 75 % + blur) |
|
|
45
|
+
| `--c-surface` | `surface` | `#fffdf8` | `#17130d` | Cards, chips, bands (`bg-surface/55`) |
|
|
46
|
+
| `--c-raised` | `surface-2` | `#f4eee4` | `#1e1912` | Wells, hover, tile stages (`/70`) |
|
|
47
|
+
| `--c-shade` | `surface-3` | `#ebe3d5` | `#272017` | Tracks, the switch groove |
|
|
48
|
+
| `--c-line` | `line` | `#e6dccb` | `#31291d` | Hairlines |
|
|
49
|
+
| `--c-line-strong` | `line-strong` | `#d2c4a8` | `#463a28` | Outline buttons, hover borders |
|
|
50
|
+
| `--c-field` | `field` | `#fffdf8` | `#1e1912` | Inputs |
|
|
51
|
+
|
|
52
|
+
## 3. Ink (text)
|
|
53
|
+
|
|
54
|
+
| Variable | Tailwind colour | Light | Dark | Use |
|
|
55
|
+
|---|---|---|---|---|
|
|
56
|
+
| `--c-title` | `ink-title` | `#1c1710` | `#fbf3e2` | Headings, values |
|
|
57
|
+
| `--c-body` | `ink-body` | `#3b3327` | `#e3d8c3` | Body text (`body` colour) |
|
|
58
|
+
| `--c-soft` | `ink-soft` | `#5b5142` | `#bfb197` | Leads, notes |
|
|
59
|
+
| `--c-muted` | `muted` | `#6e6352` | `#9c8f76` | Secondary text; the floor for readable text |
|
|
60
|
+
| `--c-faint` | `faint` | `#b6aa95` | `#5a4f3c` | Decoration and disabled only, never text to read |
|
|
61
|
+
| `--c-primary` | `primary` | `#1c1710` | `#f6ecd6` | Strong neutral: selected tab, filled number |
|
|
62
|
+
| `--c-primary-hover` | — | `#3a3125` | `#e3d8c3` | Its hover |
|
|
63
|
+
| `--c-on-primary` | `on-primary` | `#fffaf0` | `#1c1710` | Text on `primary` |
|
|
64
|
+
|
|
65
|
+
## 4. Tones and their inks
|
|
66
|
+
|
|
67
|
+
Fills, rings and glows (the same in both themes, `@theme inline` literals):
|
|
68
|
+
|
|
69
|
+
| Tone | Tailwind colour | Value | Meaning |
|
|
70
|
+
|---|---|---|---|
|
|
71
|
+
| gold | `gold` | `#f2c76e` | Primary action, selected, done (the CTA key, success ticks) |
|
|
72
|
+
| champagne | `champagne` | `#ecd6a6` | Links, sharing, keyboard focus |
|
|
73
|
+
| bronze | `bronze` | `#e2a47c` | Profile / identity |
|
|
74
|
+
| rose | `rose` | `#f2b8a8` | Rare highlight |
|
|
75
|
+
| on-gold | `on-gold` | `#1a1307` | Text on any gold fill (white on gold fails) |
|
|
76
|
+
|
|
77
|
+
Ink stops (coloured text and thin lines; Tailwind `ink-<tone>` = `var(--c-<tone>-ink)`):
|
|
78
|
+
|
|
79
|
+
| Variable | Light (on ivory) | Dark (on black) |
|
|
80
|
+
|---|---|---|
|
|
81
|
+
| `--c-gold-ink` | `#8a6211` | `#f6d58e` |
|
|
82
|
+
| `--c-champagne-ink` | `#6e5526` | `#efdcb2` |
|
|
83
|
+
| `--c-bronze-ink` | `#97502d` | `#f0b994` |
|
|
84
|
+
| `--c-rose-ink` | `#a3413a` | `#f6c2b4` |
|
|
85
|
+
| `--c-amber-ink` | `#965400` | `#ffb23e` |
|
|
86
|
+
| `--c-coral-ink` | `#cc1a40` | `#ff5c7a` |
|
|
87
|
+
| `--c-sheen-ink` | `#b8862c` | `#fff1c9` |
|
|
88
|
+
|
|
89
|
+
`--c-sheen-ink` is the bright band of metallic gold text (large text only, 3.2:1 on ivory); it has no Tailwind
|
|
90
|
+
colour of its own, only `bg-gold-ink` (§6) reads it. Coral and amber exist as inks only; where a fill is needed (the
|
|
91
|
+
three dots of a drawn browser bar) use `#ff5c7a` and `#ffb23e` at 70 %.
|
|
92
|
+
|
|
93
|
+
Tone scopes pass a tone to a component without building class names. Map `--color-tone: var(--tone, #f2c76e)` and
|
|
94
|
+
`--color-tone-ink: var(--tone-ink, var(--c-gold-ink))` in `@theme inline`, then:
|
|
95
|
+
|
|
96
|
+
| Class | `--tone` | `--tone-ink` |
|
|
97
|
+
|---|---|---|
|
|
98
|
+
| `.tone-gold` | `#f2c76e` | `var(--c-gold-ink)` |
|
|
99
|
+
| `.tone-champagne` | `#ecd6a6` | `var(--c-champagne-ink)` |
|
|
100
|
+
| `.tone-bronze` | `#e2a47c` | `var(--c-bronze-ink)` |
|
|
101
|
+
| `.tone-rose` | `#f2b8a8` | `var(--c-rose-ink)` |
|
|
102
|
+
|
|
103
|
+
Inside a scope: icon tile `bg-tone/12 ring-1 ring-tone/40 ring-inset` (chips use `/15`), text `text-tone-ink`.
|
|
104
|
+
|
|
105
|
+
## 5. Depth, scrim and light
|
|
106
|
+
|
|
107
|
+
| Variable | Light | Dark |
|
|
108
|
+
|---|---|---|
|
|
109
|
+
| `--c-shadow-edge` (Tailwind `shadow-edge`) | `inset 0 1px 0 rgb(255 255 255 / .9), 0 1px 2px rgb(60 42 12 / .06), 0 12px 32px rgb(60 42 12 / .08)` | `inset 0 1px 0 rgb(255 240 210 / .06), 0 24px 60px rgb(0 0 0 / .4)` |
|
|
110
|
+
| `--c-shadow-float` (`shadow-float`) | `0 1px 2px rgb(60 42 12 / .06), 0 18px 48px rgb(60 42 12 / .14)` | `inset 0 1px 0 rgb(255 240 210 / .07), 0 24px 60px rgb(0 0 0 / .6)` |
|
|
111
|
+
| `--c-keycap-depth` | `#dccfb5` (a light key sits on a sand base) | `rgb(0 0 0 / .5)` |
|
|
112
|
+
| `--c-scrim` | `rgb(28 23 16 / .45)` | `rgb(11 9 6 / .72)` |
|
|
113
|
+
| `--c-lattice` | `rgb(184 134 44 / .16)` | `rgb(242 199 110 / .13)` |
|
|
114
|
+
| `--c-way-line` | `rgb(184 134 44 / .6)` | `rgb(242 199 110 / .45)` |
|
|
115
|
+
| `--c-way-light` | `#b07a1c` | `#fff3d1` |
|
|
116
|
+
| `--c-way-glow` | `rgb(184 134 44 / .7)` | `rgb(242 199 110 / .9)` |
|
|
117
|
+
|
|
118
|
+
`--c-way-*` are the lines of light that travel (tiles meeting at one card, `motion.md` §4). On ivory the moving light
|
|
119
|
+
must be DEEP gold with a glow: the pale cream that looks like an LED on black disappears on the light page.
|
|
120
|
+
|
|
121
|
+
Page backdrop `--c-backdrop` (three radial gradients, the page's only "lighting"):
|
|
122
|
+
|
|
123
|
+
| Layer | Light | Dark |
|
|
124
|
+
|---|---|---|
|
|
125
|
+
| Top glow | `radial-gradient(ellipse 80% 55% at 50% -8%, rgb(242 199 110 / .2), transparent 70%)` | same shape, `/ .14` |
|
|
126
|
+
| Top right | `radial-gradient(600px 380px at 92% 6%, rgb(236 214 166 / .22), transparent 70%)` | `at 92% 12%`, `/ .08` |
|
|
127
|
+
| Side | `radial-gradient(520px 360px at 4% 30%, rgb(226 164 124 / .08), transparent 70%)` | `at 6% 88%`, `/ .07` |
|
|
128
|
+
|
|
129
|
+
Hero skylight `--c-skylight` (read with `bg-(image:--c-skylight)`):
|
|
130
|
+
light `radial-gradient(55% 60% at 50% 0%, rgb(255 236 190 / .45), rgb(242 199 110 / .12) 45%, transparent 75%)`,
|
|
131
|
+
dark `radial-gradient(55% 60% at 50% 0%, rgb(242 199 110 / .24), rgb(242 199 110 / .06) 45%, transparent 75%)`.
|
|
132
|
+
|
|
133
|
+
## 6. Other theme values and gradient utilities
|
|
134
|
+
|
|
135
|
+
`@theme` (not inline): `--radius-control: 1rem`, `--radius-card: 1.5rem`, `--text-2xs: 0.625rem` with line height
|
|
136
|
+
`0.875rem`, `--shadow-glow-sm: 0 0 10px rgb(242 199 110 / .25)`, `--shadow-glow: 0 0 18px rgb(242 199 110 / .4)`.
|
|
137
|
+
Glow is a signal: the selected, current or primary thing only.
|
|
138
|
+
|
|
139
|
+
Gradients as `@utility` classes:
|
|
140
|
+
|
|
141
|
+
| Utility | Value | Use |
|
|
142
|
+
|---|---|---|
|
|
143
|
+
| `bg-cta` | `linear-gradient(150deg, #fff3d1 0%, #f2c76e 38%, #e2b45c 62%, #fff0c4 80%, #d4a24a 100%)` | The metallic gold key. With `bg-[length:200%_200%] animate-flow` light travels over it; only the one hero CTA of a page gets that. |
|
|
144
|
+
| `bg-foil` | `linear-gradient(120deg, #f6d58e 0%, #fff4d6 28%, #e2b45c 52%, #fff1c9 74%, #e2a47c 100%)` | Gold foil: brand marks, plan name and CTA on the dark plan card, highlight text on dark photos |
|
|
145
|
+
| `bg-gold-ink` | `linear-gradient(120deg, var(--c-gold-ink) 0%, var(--c-sheen-ink) 34%, var(--c-gold-ink) 58%, var(--c-sheen-ink) 80%, var(--c-bronze-ink) 100%)` | Metallic gold TEXT readable in both themes (with `text-gradient`) |
|
|
146
|
+
| `text-gradient` | `-webkit-background-clip: text; background-clip: text; color: transparent` | Turns a gradient background into text colour |
|
|
147
|
+
| `bg-sheen` | `linear-gradient(118deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%)` | A light band over a surface |
|
|
148
|
+
|
|
149
|
+
Base layer: `body { background-color: var(--c-void); color: var(--c-body) }`,
|
|
150
|
+
`:focus-visible { outline: 2px solid var(--c-champagne-ink); outline-offset: 2px }`.
|
|
151
|
+
|
|
152
|
+
## 7. Surface classes
|
|
153
|
+
|
|
154
|
+
**`.g6-backdrop`**: one fixed layer behind the page, rendered once, static. `pointer-events: none; position: fixed;
|
|
155
|
+
inset: 0; z-index: -10; background: var(--c-backdrop)`. Its `::after` draws the triangle lattice of light that fades
|
|
156
|
+
downwards:
|
|
157
|
+
|
|
158
|
+
```css
|
|
159
|
+
.g6-backdrop::after {
|
|
160
|
+
content: ''; position: absolute; inset: 0; opacity: .9;
|
|
161
|
+
background-image:
|
|
162
|
+
repeating-linear-gradient(0deg, var(--c-lattice) 0 1px, transparent 1px 41.57px),
|
|
163
|
+
repeating-linear-gradient(60deg, var(--c-lattice) 0 1px, transparent 1px 41.57px),
|
|
164
|
+
repeating-linear-gradient(120deg, var(--c-lattice) 0 1px, transparent 1px 41.57px);
|
|
165
|
+
mask-image: linear-gradient(#000, transparent 60%); /* + -webkit-mask-image */
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**`.led-line`**: a strip of gold light, the same in both themes. Section band edges, above and below a marquee,
|
|
170
|
+
eyebrow dashes (`w-8`). `height: 1px; background: linear-gradient(90deg, transparent, rgb(242 199 110 / .85) 18%,
|
|
171
|
+
#fff3d1 50%, rgb(242 199 110 / .85) 82%, transparent); box-shadow: 0 0 10px rgb(242 199 110 / .5), 0 0 2px
|
|
172
|
+
rgb(255 243 209 / .8)`.
|
|
173
|
+
|
|
174
|
+
**`.g6-card`**: `position: relative; border-radius: var(--radius-card); border: 1px solid var(--c-line);
|
|
175
|
+
background-color: var(--c-surface); box-shadow: var(--c-shadow-edge)`.
|
|
176
|
+
|
|
177
|
+
**`.g6-glow`** (needs a `.tone-*` scope): a tinted top-right corner, `background-image: radial-gradient(240px 150px
|
|
178
|
+
at 100% 0%, color-mix(in srgb, var(--tone, #f2c76e) 14%, transparent), transparent 70%)`.
|
|
179
|
+
|
|
180
|
+
**`.g6-sweep`**: a ring of light turning around the one element a section points at; one per screen. The element
|
|
181
|
+
gets `position: relative; isolation: isolate` and the radius of its child; the ring is a masked conic gradient on
|
|
182
|
+
`::before` turned by an animated custom property:
|
|
183
|
+
|
|
184
|
+
```css
|
|
185
|
+
@property --g6-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
|
|
186
|
+
.g6-sweep::before {
|
|
187
|
+
content: ''; position: absolute; inset: -3px; padding: 3px; border-radius: inherit; pointer-events: none;
|
|
188
|
+
background: conic-gradient(from var(--g6-angle), #f2c76e, #ecd6a6, #e2a47c, rgb(242 199 110 / .15) 70%, #f2c76e);
|
|
189
|
+
mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
|
|
190
|
+
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
|
|
191
|
+
animation: g6-spin 6s linear infinite;
|
|
192
|
+
}
|
|
193
|
+
@keyframes g6-spin { to { --g6-angle: 360deg; } }
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
Wrap the card (`<div class="g6-sweep rounded-[1.75rem]"><div class="g6-card …">`), do not put the class on the card
|
|
197
|
+
itself: the card's own `overflow-hidden` would clip the ring.
|