@hewnui/themes 0.0.0-stage → 0.1.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 +21 -0
- package/README.md +33 -2
- package/dist/authoring/css-vars.d.ts +10 -0
- package/dist/authoring/css-vars.js +83 -0
- package/dist/authoring/derive.d.ts +9 -0
- package/dist/authoring/derive.js +79 -0
- package/dist/authoring/export-css.d.ts +8 -0
- package/dist/authoring/export-css.js +60 -0
- package/dist/authoring/export-design-md.d.ts +5 -0
- package/dist/authoring/export-design-md.js +113 -0
- package/dist/authoring/export-dtcg.d.ts +6 -0
- package/dist/authoring/export-dtcg.js +85 -0
- package/dist/authoring/export-figma.d.ts +27 -0
- package/dist/authoring/export-figma.js +76 -0
- package/dist/authoring/export-formats.d.ts +27 -0
- package/dist/authoring/export-formats.js +62 -0
- package/dist/authoring/export-skill.d.ts +5 -0
- package/dist/authoring/export-skill.js +75 -0
- package/dist/authoring/export-sticker.d.ts +6 -0
- package/dist/authoring/export-sticker.js +54 -0
- package/dist/authoring/export-style-dictionary.d.ts +3 -0
- package/dist/authoring/export-style-dictionary.js +52 -0
- package/dist/authoring/figma-kit.d.ts +16 -0
- package/dist/authoring/figma-kit.js +41 -0
- package/dist/authoring/index.d.ts +21 -0
- package/dist/authoring/index.js +18 -0
- package/dist/authoring/oklch.d.ts +11 -0
- package/dist/authoring/oklch.js +116 -0
- package/dist/authoring/override-map.d.ts +9 -0
- package/dist/authoring/override-map.js +150 -0
- package/dist/authoring/pack-def.d.ts +7 -0
- package/dist/authoring/pack-def.js +3 -0
- package/dist/authoring/pack-meta.d.ts +10 -0
- package/dist/authoring/pack-meta.js +58 -0
- package/dist/authoring/packs-dual.d.ts +129 -0
- package/dist/authoring/packs-dual.js +130 -0
- package/dist/authoring/packs-single.d.ts +87 -0
- package/dist/authoring/packs-single.js +88 -0
- package/dist/authoring/packs.d.ts +8 -0
- package/dist/authoring/packs.js +26 -0
- package/dist/authoring/pro-apply.d.ts +8 -0
- package/dist/authoring/pro-apply.js +107 -0
- package/dist/authoring/propose.d.ts +21 -0
- package/dist/authoring/propose.js +162 -0
- package/dist/authoring/ramps.d.ts +13 -0
- package/dist/authoring/ramps.js +40 -0
- package/dist/authoring/status-ramps.d.ts +13 -0
- package/dist/authoring/status-ramps.js +76 -0
- package/dist/authoring/token-entries.d.ts +10 -0
- package/dist/authoring/token-entries.js +52 -0
- package/dist/authoring/types.d.ts +110 -0
- package/dist/authoring/types.js +11 -0
- package/exports/clay/DESIGN.md +138 -0
- package/exports/clay/SKILL.md +94 -0
- package/exports/clay/theme.css +37 -0
- package/exports/clay/tokens.dtcg.json +200 -0
- package/exports/dune/DESIGN.md +138 -0
- package/exports/dune/SKILL.md +94 -0
- package/exports/dune/theme.css +37 -0
- package/exports/dune/tokens.dtcg.json +200 -0
- package/exports/ember/DESIGN.md +138 -0
- package/exports/ember/SKILL.md +94 -0
- package/exports/ember/theme.css +37 -0
- package/exports/ember/tokens.dtcg.json +200 -0
- package/exports/forest/DESIGN.md +138 -0
- package/exports/forest/SKILL.md +94 -0
- package/exports/forest/theme.css +67 -0
- package/exports/forest/tokens.dtcg.json +348 -0
- package/exports/graphite/DESIGN.md +138 -0
- package/exports/graphite/SKILL.md +94 -0
- package/exports/graphite/theme.css +67 -0
- package/exports/graphite/tokens.dtcg.json +348 -0
- package/exports/index.json +45 -0
- package/exports/tide/DESIGN.md +138 -0
- package/exports/tide/SKILL.md +94 -0
- package/exports/tide/theme.css +67 -0
- package/exports/tide/tokens.dtcg.json +348 -0
- package/figma/README.md +16 -0
- package/figma/hewn.tokens.json +1308 -0
- package/figma/sticker-sheet.svg +93 -0
- package/package.json +98 -4
- package/src/authoring/css-vars.ts +92 -0
- package/src/authoring/derive.ts +106 -0
- package/src/authoring/export-css.ts +86 -0
- package/src/authoring/export-design-md.ts +134 -0
- package/src/authoring/export-dtcg.ts +116 -0
- package/src/authoring/export-figma.ts +109 -0
- package/src/authoring/export-formats.ts +101 -0
- package/src/authoring/export-skill.ts +93 -0
- package/src/authoring/export-sticker.ts +60 -0
- package/src/authoring/export-style-dictionary.ts +67 -0
- package/src/authoring/figma-kit.ts +60 -0
- package/src/authoring/index.ts +61 -0
- package/src/authoring/oklch.ts +137 -0
- package/src/authoring/override-map.ts +191 -0
- package/src/authoring/pack-def.ts +11 -0
- package/src/authoring/pack-meta.ts +66 -0
- package/src/authoring/packs-dual.ts +131 -0
- package/src/authoring/packs-single.ts +89 -0
- package/src/authoring/packs.ts +43 -0
- package/src/authoring/pro-apply.ts +156 -0
- package/src/authoring/propose.ts +181 -0
- package/src/authoring/ramps.ts +62 -0
- package/src/authoring/status-ramps.ts +98 -0
- package/src/authoring/token-entries.ts +59 -0
- package/src/authoring/types.ts +133 -0
- package/src/glass-buttons.css +46 -0
- package/src/glass.css +266 -0
- package/src/motion.css +60 -0
- package/src/packs/clay.css +45 -0
- package/src/packs/dune.css +45 -0
- package/src/packs/ember.css +45 -0
- package/src/packs/forest.css +80 -0
- package/src/packs/graphite.css +79 -0
- package/src/packs/tide.css +79 -0
- package/src/radius.css +25 -0
- package/src/tokens.css +104 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Hewn dune theme — DTCG design tokens (light).",
|
|
3
|
+
"meta": {
|
|
4
|
+
"packId": {
|
|
5
|
+
"$type": "string",
|
|
6
|
+
"$value": "dune"
|
|
7
|
+
},
|
|
8
|
+
"basePackId": {
|
|
9
|
+
"$type": "string",
|
|
10
|
+
"$value": "dune"
|
|
11
|
+
},
|
|
12
|
+
"supportedModes": {
|
|
13
|
+
"$type": "string",
|
|
14
|
+
"$value": "light"
|
|
15
|
+
},
|
|
16
|
+
"colorScheme": {
|
|
17
|
+
"$type": "string",
|
|
18
|
+
"$value": "light"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"typography": {
|
|
22
|
+
"fontFamily": {
|
|
23
|
+
"sans": {
|
|
24
|
+
"$type": "fontFamily",
|
|
25
|
+
"$value": [
|
|
26
|
+
"IBM Plex Sans",
|
|
27
|
+
"ui-sans-serif",
|
|
28
|
+
"system-ui",
|
|
29
|
+
"sans-serif"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"mono": {
|
|
33
|
+
"$type": "fontFamily",
|
|
34
|
+
"$value": [
|
|
35
|
+
"IBM Plex Mono",
|
|
36
|
+
"ui-monospace",
|
|
37
|
+
"monospace"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"display": {
|
|
41
|
+
"$type": "fontFamily",
|
|
42
|
+
"$value": [
|
|
43
|
+
"Space Grotesk",
|
|
44
|
+
"IBM Plex Sans",
|
|
45
|
+
"sans-serif"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"modes": {
|
|
51
|
+
"light": {
|
|
52
|
+
"color": {
|
|
53
|
+
"background": {
|
|
54
|
+
"$type": "color",
|
|
55
|
+
"$value": "oklch(0.96 0.02 85)"
|
|
56
|
+
},
|
|
57
|
+
"foreground": {
|
|
58
|
+
"$type": "color",
|
|
59
|
+
"$value": "oklch(0.28 0.04 65)"
|
|
60
|
+
},
|
|
61
|
+
"surface": {
|
|
62
|
+
"$type": "color",
|
|
63
|
+
"$value": "oklch(0.985 0.012 90)"
|
|
64
|
+
},
|
|
65
|
+
"surface-raised": {
|
|
66
|
+
"$type": "color",
|
|
67
|
+
"$value": "oklch(0.995 0.006 95)"
|
|
68
|
+
},
|
|
69
|
+
"muted": {
|
|
70
|
+
"$type": "color",
|
|
71
|
+
"$value": "oklch(0.92 0.025 85)"
|
|
72
|
+
},
|
|
73
|
+
"muted-foreground": {
|
|
74
|
+
"$type": "color",
|
|
75
|
+
"$value": "oklch(0.5 0.04 70)"
|
|
76
|
+
},
|
|
77
|
+
"accent": {
|
|
78
|
+
"$type": "color",
|
|
79
|
+
"$value": "oklch(0.58 0.11 70)"
|
|
80
|
+
},
|
|
81
|
+
"accent-foreground": {
|
|
82
|
+
"$type": "color",
|
|
83
|
+
"$value": "oklch(0.98 0.01 90)"
|
|
84
|
+
},
|
|
85
|
+
"border": {
|
|
86
|
+
"$type": "color",
|
|
87
|
+
"$value": "oklch(0.4 0.04 70 / 16%)"
|
|
88
|
+
},
|
|
89
|
+
"ring": {
|
|
90
|
+
"$type": "color",
|
|
91
|
+
"$value": "oklch(0.62 0.12 70)"
|
|
92
|
+
},
|
|
93
|
+
"danger": {
|
|
94
|
+
"$type": "color",
|
|
95
|
+
"$value": "oklch(0.55 0.16 30)"
|
|
96
|
+
},
|
|
97
|
+
"danger-foreground": {
|
|
98
|
+
"$type": "color",
|
|
99
|
+
"$value": "oklch(0.985 0.01 30)"
|
|
100
|
+
},
|
|
101
|
+
"danger-subtle": {
|
|
102
|
+
"$type": "color",
|
|
103
|
+
"$value": "oklch(0.94 0.035 30)"
|
|
104
|
+
},
|
|
105
|
+
"danger-border": {
|
|
106
|
+
"$type": "color",
|
|
107
|
+
"$value": "oklch(0.56 0.12 30 / 40%)"
|
|
108
|
+
},
|
|
109
|
+
"success": {
|
|
110
|
+
"$type": "color",
|
|
111
|
+
"$value": "oklch(0.55 0.15 140)"
|
|
112
|
+
},
|
|
113
|
+
"success-foreground": {
|
|
114
|
+
"$type": "color",
|
|
115
|
+
"$value": "oklch(0.985 0.01 140)"
|
|
116
|
+
},
|
|
117
|
+
"success-subtle": {
|
|
118
|
+
"$type": "color",
|
|
119
|
+
"$value": "oklch(0.94 0.035 140)"
|
|
120
|
+
},
|
|
121
|
+
"success-border": {
|
|
122
|
+
"$type": "color",
|
|
123
|
+
"$value": "oklch(0.55 0.12 140 / 40%)"
|
|
124
|
+
},
|
|
125
|
+
"warning": {
|
|
126
|
+
"$type": "color",
|
|
127
|
+
"$value": "oklch(0.75 0.14 70)"
|
|
128
|
+
},
|
|
129
|
+
"warning-foreground": {
|
|
130
|
+
"$type": "color",
|
|
131
|
+
"$value": "oklch(0.25 0.05 70)"
|
|
132
|
+
},
|
|
133
|
+
"warning-subtle": {
|
|
134
|
+
"$type": "color",
|
|
135
|
+
"$value": "oklch(0.94 0.04 70)"
|
|
136
|
+
},
|
|
137
|
+
"warning-border": {
|
|
138
|
+
"$type": "color",
|
|
139
|
+
"$value": "oklch(0.72 0.12 70 / 40%)"
|
|
140
|
+
},
|
|
141
|
+
"info": {
|
|
142
|
+
"$type": "color",
|
|
143
|
+
"$value": "oklch(0.52 0.11 230)"
|
|
144
|
+
},
|
|
145
|
+
"info-foreground": {
|
|
146
|
+
"$type": "color",
|
|
147
|
+
"$value": "oklch(0.985 0.01 230)"
|
|
148
|
+
},
|
|
149
|
+
"info-subtle": {
|
|
150
|
+
"$type": "color",
|
|
151
|
+
"$value": "oklch(0.94 0.03 230)"
|
|
152
|
+
},
|
|
153
|
+
"info-border": {
|
|
154
|
+
"$type": "color",
|
|
155
|
+
"$value": "oklch(0.52 0.09 230 / 40%)"
|
|
156
|
+
},
|
|
157
|
+
"glass-tint": {
|
|
158
|
+
"$type": "color",
|
|
159
|
+
"$value": "oklch(0.78 0.09 80 / 30%)"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"radius": {
|
|
163
|
+
"sm": {
|
|
164
|
+
"$type": "dimension",
|
|
165
|
+
"$value": "0.55rem"
|
|
166
|
+
},
|
|
167
|
+
"md": {
|
|
168
|
+
"$type": "dimension",
|
|
169
|
+
"$value": "0.85rem"
|
|
170
|
+
},
|
|
171
|
+
"lg": {
|
|
172
|
+
"$type": "dimension",
|
|
173
|
+
"$value": "1.15rem"
|
|
174
|
+
},
|
|
175
|
+
"panel": {
|
|
176
|
+
"$type": "dimension",
|
|
177
|
+
"$value": "1.15rem"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"motion": {
|
|
181
|
+
"duration": {
|
|
182
|
+
"$type": "duration",
|
|
183
|
+
"$value": "280ms"
|
|
184
|
+
},
|
|
185
|
+
"stiffness": {
|
|
186
|
+
"$type": "number",
|
|
187
|
+
"$value": 300
|
|
188
|
+
},
|
|
189
|
+
"damping": {
|
|
190
|
+
"$type": "number",
|
|
191
|
+
"$value": 26
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"density": {
|
|
195
|
+
"$type": "number",
|
|
196
|
+
"$value": 0.95
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# Ember — Design brief
|
|
2
|
+
|
|
3
|
+
> Generated from Hewn curated theme packs. Semantic OKLCH tokens; do not edit by hand.
|
|
4
|
+
|
|
5
|
+
## Identity
|
|
6
|
+
|
|
7
|
+
Charcoal and burnt orange.
|
|
8
|
+
|
|
9
|
+
- **Pack id:** `ember`
|
|
10
|
+
- **Base pack:** `ember`
|
|
11
|
+
- **Supported modes:** dark
|
|
12
|
+
- **Color scheme (primary):** dark
|
|
13
|
+
|
|
14
|
+
## Palette
|
|
15
|
+
|
|
16
|
+
| Token | Role | dark |
|
|
17
|
+
|---|---|---|
|
|
18
|
+
| `background` | Page and app canvas | `oklch(0.17 0.02 40)` |
|
|
19
|
+
| `foreground` | Primary text and icons | `oklch(0.93 0.02 70)` |
|
|
20
|
+
| `surface` | Cards, panels, and elevated chrome | `oklch(0.21 0.025 40)` |
|
|
21
|
+
| `surface-raised` | Overlays and nested elevation | `oklch(0.255 0.03 42)` |
|
|
22
|
+
| `muted` | Subtle fills and disabled wells | `oklch(0.275 0.028 40)` |
|
|
23
|
+
| `muted-foreground` | Secondary text and captions | `oklch(0.72 0.03 60)` |
|
|
24
|
+
| `accent` | Primary actions and focus accents | `oklch(0.7 0.15 50)` |
|
|
25
|
+
| `accent-foreground` | Text/icons on accent | `oklch(0.985 0.015 50)` |
|
|
26
|
+
| `border` | Separators and control outlines | `oklch(0.84 0.03 60 / 14%)` |
|
|
27
|
+
| `ring` | Focus ring | `oklch(0.7 0.15 50)` |
|
|
28
|
+
| `danger` | Destructive and error states | `oklch(0.66 0.17 28)` |
|
|
29
|
+
| `danger-foreground` | danger-foreground | `oklch(0.985 0.01 28)` |
|
|
30
|
+
| `danger-subtle` | danger-subtle | `oklch(0.32 0.05 28)` |
|
|
31
|
+
| `danger-border` | danger-border | `oklch(0.72 0.1 28 / 40%)` |
|
|
32
|
+
| `success` | success | `oklch(0.72 0.14 145)` |
|
|
33
|
+
| `success-foreground` | success-foreground | `oklch(0.985 0.01 145)` |
|
|
34
|
+
| `success-subtle` | success-subtle | `oklch(0.32 0.045 145)` |
|
|
35
|
+
| `success-border` | success-border | `oklch(0.72 0.1 145 / 40%)` |
|
|
36
|
+
| `warning` | warning | `oklch(0.78 0.12 70)` |
|
|
37
|
+
| `warning-foreground` | warning-foreground | `oklch(0.22 0.04 70)` |
|
|
38
|
+
| `warning-subtle` | warning-subtle | `oklch(0.34 0.04 70)` |
|
|
39
|
+
| `warning-border` | warning-border | `oklch(0.78 0.1 70 / 40%)` |
|
|
40
|
+
| `info` | info | `oklch(0.72 0.1 230)` |
|
|
41
|
+
| `info-foreground` | info-foreground | `oklch(0.985 0.01 230)` |
|
|
42
|
+
| `info-subtle` | info-subtle | `oklch(0.32 0.035 230)` |
|
|
43
|
+
| `info-border` | info-border | `oklch(0.72 0.08 230 / 40%)` |
|
|
44
|
+
| `glass-tint` | Tinted frosted glass material | `oklch(0.58 0.15 50 / 28%)` |
|
|
45
|
+
|
|
46
|
+
## Typography
|
|
47
|
+
|
|
48
|
+
| Role | Stack | Usage |
|
|
49
|
+
|---|---|---|
|
|
50
|
+
| Sans | IBM Plex Sans, ui-sans-serif, system-ui | UI chrome, body, headings |
|
|
51
|
+
| Mono | IBM Plex Mono, ui-monospace | Labels, code, tabular metrics |
|
|
52
|
+
| Display | Space Grotesk → sans | Marketing hero H1 and brand wordmark ≥18px only |
|
|
53
|
+
|
|
54
|
+
Body text uses pretty wrapping; headings use balanced wrapping; dynamic numbers use `tabular-nums`.
|
|
55
|
+
|
|
56
|
+
## Radius & density
|
|
57
|
+
|
|
58
|
+
- `radius-sm`: `0.45rem`
|
|
59
|
+
- `radius-md`: `0.7rem`
|
|
60
|
+
- `radius-lg`: `0.95rem`
|
|
61
|
+
- `radius-panel`: `0.95rem`
|
|
62
|
+
- `density`: `1.05`
|
|
63
|
+
- `motion-duration`: `230ms`
|
|
64
|
+
- `motion-stiffness`: `400`
|
|
65
|
+
- `motion-damping`: `28`
|
|
66
|
+
|
|
67
|
+
Density scales control spacing rhythm. Panel radius (`radius-panel`) caps menus and dialogs so they never go full-pill.
|
|
68
|
+
|
|
69
|
+
## Motion
|
|
70
|
+
|
|
71
|
+
- Duration: `230ms`
|
|
72
|
+
- Spring stiffness: `400`
|
|
73
|
+
- Spring damping: `28`
|
|
74
|
+
- Reduced motion always wins over global motion toggles.
|
|
75
|
+
- Prefer transform / opacity / filter; never animate layout properties continuously.
|
|
76
|
+
|
|
77
|
+
## Material
|
|
78
|
+
|
|
79
|
+
- `solid` — structured product surfaces and separators
|
|
80
|
+
- `glass` — accent-tinted frosted surfaces (blur, saturation, refraction, opaque fallback)
|
|
81
|
+
|
|
82
|
+
## Do
|
|
83
|
+
|
|
84
|
+
- Use semantic OKLCH tokens (`--kp-*` / `--color-*`); never hard-code theme hues.
|
|
85
|
+
- Typography: IBM Plex Sans (UI), IBM Plex Mono (code/labels), Space Grotesk only for marketing hero H1 and brand wordmark ≥18px.
|
|
86
|
+
- Icons: Phosphor. Interactive hit targets ≥40×40px; press feedback `scale(0.96)`.
|
|
87
|
+
- Motion: animate transform, opacity, and filter; reduced motion always wins.
|
|
88
|
+
- Radius: concentric scale; panels use `--kp-radius-panel` (never full-pill menus/dialogs).
|
|
89
|
+
- Glass is a global material — tint, blur, saturation, refraction edge, opaque fallback.
|
|
90
|
+
|
|
91
|
+
## Don't
|
|
92
|
+
|
|
93
|
+
- No purple/lila defaults, neon glow, pure black, Inter, emoji, or generic centered heroes.
|
|
94
|
+
- Never `transition: all` — list exact properties.
|
|
95
|
+
- Never `h-screen` for full-height sections — use `min-h-[100dvh]`.
|
|
96
|
+
- No per-component `glass` prop; material is global.
|
|
97
|
+
- Do not invent unsupported light/dark combinations for a pack.
|
|
98
|
+
- Do not put Space Grotesk in UI chrome, forms, or dense product copy.
|
|
99
|
+
|
|
100
|
+
## Token reference (primary mode)
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
--kp-background: oklch(0.17 0.02 40);
|
|
104
|
+
--kp-foreground: oklch(0.93 0.02 70);
|
|
105
|
+
--kp-surface: oklch(0.21 0.025 40);
|
|
106
|
+
--kp-surface-raised: oklch(0.255 0.03 42);
|
|
107
|
+
--kp-muted: oklch(0.275 0.028 40);
|
|
108
|
+
--kp-muted-foreground: oklch(0.72 0.03 60);
|
|
109
|
+
--kp-accent: oklch(0.7 0.15 50);
|
|
110
|
+
--kp-accent-foreground: oklch(0.985 0.015 50);
|
|
111
|
+
--kp-border: oklch(0.84 0.03 60 / 14%);
|
|
112
|
+
--kp-ring: oklch(0.7 0.15 50);
|
|
113
|
+
--kp-danger: oklch(0.66 0.17 28);
|
|
114
|
+
--kp-danger-foreground: oklch(0.985 0.01 28);
|
|
115
|
+
--kp-danger-subtle: oklch(0.32 0.05 28);
|
|
116
|
+
--kp-danger-border: oklch(0.72 0.1 28 / 40%);
|
|
117
|
+
--kp-success: oklch(0.72 0.14 145);
|
|
118
|
+
--kp-success-foreground: oklch(0.985 0.01 145);
|
|
119
|
+
--kp-success-subtle: oklch(0.32 0.045 145);
|
|
120
|
+
--kp-success-border: oklch(0.72 0.1 145 / 40%);
|
|
121
|
+
--kp-warning: oklch(0.78 0.12 70);
|
|
122
|
+
--kp-warning-foreground: oklch(0.22 0.04 70);
|
|
123
|
+
--kp-warning-subtle: oklch(0.34 0.04 70);
|
|
124
|
+
--kp-warning-border: oklch(0.78 0.1 70 / 40%);
|
|
125
|
+
--kp-info: oklch(0.72 0.1 230);
|
|
126
|
+
--kp-info-foreground: oklch(0.985 0.01 230);
|
|
127
|
+
--kp-info-subtle: oklch(0.32 0.035 230);
|
|
128
|
+
--kp-info-border: oklch(0.72 0.08 230 / 40%);
|
|
129
|
+
--kp-glass-tint: oklch(0.58 0.15 50 / 28%);
|
|
130
|
+
--kp-radius-sm: 0.45rem;
|
|
131
|
+
--kp-radius-md: 0.7rem;
|
|
132
|
+
--kp-radius-lg: 0.95rem;
|
|
133
|
+
--kp-radius-panel: 0.95rem;
|
|
134
|
+
--kp-density: 1.05;
|
|
135
|
+
--kp-motion-duration: 230ms;
|
|
136
|
+
--kp-motion-stiffness: 400;
|
|
137
|
+
--kp-motion-damping: 28;
|
|
138
|
+
```
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hewn-ember-theme
|
|
3
|
+
description: Apply the Hewn Ember theme tokens, typography, motion, and design rules when building or restyling UI.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Ember theme (Hewn)
|
|
7
|
+
|
|
8
|
+
Charcoal and burnt orange.
|
|
9
|
+
|
|
10
|
+
Use this skill whenever generating UI that should match the **Ember** pack
|
|
11
|
+
(`ember`). Supported modes: **dark**.
|
|
12
|
+
|
|
13
|
+
## Quick rules
|
|
14
|
+
|
|
15
|
+
- Use semantic OKLCH tokens (`--kp-*` / `--color-*`); never hard-code theme hues.
|
|
16
|
+
- Typography: IBM Plex Sans (UI), IBM Plex Mono (code/labels), Space Grotesk only for marketing hero H1 and brand wordmark ≥18px.
|
|
17
|
+
- Icons: Phosphor. Interactive hit targets ≥40×40px; press feedback `scale(0.96)`.
|
|
18
|
+
- Motion: animate transform, opacity, and filter; reduced motion always wins.
|
|
19
|
+
- Radius: concentric scale; panels use `--kp-radius-panel` (never full-pill menus/dialogs).
|
|
20
|
+
- Glass is a global material — tint, blur, saturation, refraction edge, opaque fallback.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
|
|
24
|
+
- No purple/lila defaults, neon glow, pure black, Inter, emoji, or generic centered heroes.
|
|
25
|
+
- Never `transition: all` — list exact properties.
|
|
26
|
+
- Never `h-screen` for full-height sections — use `min-h-[100dvh]`.
|
|
27
|
+
- No per-component `glass` prop; material is global.
|
|
28
|
+
- Do not invent unsupported light/dark combinations for a pack.
|
|
29
|
+
- Do not put Space Grotesk in UI chrome, forms, or dense product copy.
|
|
30
|
+
|
|
31
|
+
## How to apply
|
|
32
|
+
|
|
33
|
+
1. Set `data-theme="ember"` and `data-mode="{dark}"` on a root element (or import the generated `@theme` CSS).
|
|
34
|
+
2. Prefer semantic utilities / CSS variables (`bg-background`, `text-foreground`, `bg-accent`, `border-border`, `--kp-*`).
|
|
35
|
+
3. Respect reduced motion — disable springs/shimmers when `prefers-reduced-motion: reduce`.
|
|
36
|
+
4. Keep glass as a global material toggle; do not add per-component glass props.
|
|
37
|
+
|
|
38
|
+
## Color tokens (primary mode: dark)
|
|
39
|
+
|
|
40
|
+
| Token | Role | Value |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| `--kp-background` / `--color-background` | Page and app canvas | `oklch(0.17 0.02 40)` |
|
|
43
|
+
| `--kp-foreground` / `--color-foreground` | Primary text and icons | `oklch(0.93 0.02 70)` |
|
|
44
|
+
| `--kp-surface` / `--color-surface` | Cards, panels, and elevated chrome | `oklch(0.21 0.025 40)` |
|
|
45
|
+
| `--kp-surface-raised` / `--color-surface-raised` | Overlays and nested elevation | `oklch(0.255 0.03 42)` |
|
|
46
|
+
| `--kp-muted` / `--color-muted` | Subtle fills and disabled wells | `oklch(0.275 0.028 40)` |
|
|
47
|
+
| `--kp-muted-foreground` / `--color-muted-foreground` | Secondary text and captions | `oklch(0.72 0.03 60)` |
|
|
48
|
+
| `--kp-accent` / `--color-accent` | Primary actions and focus accents | `oklch(0.7 0.15 50)` |
|
|
49
|
+
| `--kp-accent-foreground` / `--color-accent-foreground` | Text/icons on accent | `oklch(0.985 0.015 50)` |
|
|
50
|
+
| `--kp-border` / `--color-border` | Separators and control outlines | `oklch(0.84 0.03 60 / 14%)` |
|
|
51
|
+
| `--kp-ring` / `--color-ring` | Focus ring | `oklch(0.7 0.15 50)` |
|
|
52
|
+
| `--kp-danger` / `--color-danger` | Destructive and error states | `oklch(0.66 0.17 28)` |
|
|
53
|
+
| `--kp-danger-foreground` / `--color-danger-foreground` | danger-foreground | `oklch(0.985 0.01 28)` |
|
|
54
|
+
| `--kp-danger-subtle` / `--color-danger-subtle` | danger-subtle | `oklch(0.32 0.05 28)` |
|
|
55
|
+
| `--kp-danger-border` / `--color-danger-border` | danger-border | `oklch(0.72 0.1 28 / 40%)` |
|
|
56
|
+
| `--kp-success` / `--color-success` | success | `oklch(0.72 0.14 145)` |
|
|
57
|
+
| `--kp-success-foreground` / `--color-success-foreground` | success-foreground | `oklch(0.985 0.01 145)` |
|
|
58
|
+
| `--kp-success-subtle` / `--color-success-subtle` | success-subtle | `oklch(0.32 0.045 145)` |
|
|
59
|
+
| `--kp-success-border` / `--color-success-border` | success-border | `oklch(0.72 0.1 145 / 40%)` |
|
|
60
|
+
| `--kp-warning` / `--color-warning` | warning | `oklch(0.78 0.12 70)` |
|
|
61
|
+
| `--kp-warning-foreground` / `--color-warning-foreground` | warning-foreground | `oklch(0.22 0.04 70)` |
|
|
62
|
+
| `--kp-warning-subtle` / `--color-warning-subtle` | warning-subtle | `oklch(0.34 0.04 70)` |
|
|
63
|
+
| `--kp-warning-border` / `--color-warning-border` | warning-border | `oklch(0.78 0.1 70 / 40%)` |
|
|
64
|
+
| `--kp-info` / `--color-info` | info | `oklch(0.72 0.1 230)` |
|
|
65
|
+
| `--kp-info-foreground` / `--color-info-foreground` | info-foreground | `oklch(0.985 0.01 230)` |
|
|
66
|
+
| `--kp-info-subtle` / `--color-info-subtle` | info-subtle | `oklch(0.32 0.035 230)` |
|
|
67
|
+
| `--kp-info-border` / `--color-info-border` | info-border | `oklch(0.72 0.08 230 / 40%)` |
|
|
68
|
+
| `--kp-glass-tint` / `--color-glass-tint` | Tinted frosted glass material | `oklch(0.58 0.15 50 / 28%)` |
|
|
69
|
+
|
|
70
|
+
## Structure
|
|
71
|
+
|
|
72
|
+
- `--kp-radius-sm`: `0.45rem`
|
|
73
|
+
- `--kp-radius-md`: `0.7rem`
|
|
74
|
+
- `--kp-radius-lg`: `0.95rem`
|
|
75
|
+
- `--kp-radius-panel`: `0.95rem`
|
|
76
|
+
- `--kp-density`: `1.05`
|
|
77
|
+
- `--kp-motion-duration`: `230ms`
|
|
78
|
+
- `--kp-motion-stiffness`: `400`
|
|
79
|
+
- `--kp-motion-damping`: `28`
|
|
80
|
+
|
|
81
|
+
## Typography
|
|
82
|
+
|
|
83
|
+
- **Sans:** IBM Plex Sans — UI and body
|
|
84
|
+
- **Mono:** IBM Plex Mono — labels, code, metrics (`tabular-nums`)
|
|
85
|
+
- **Display:** Space Grotesk — hero H1 / brand wordmark ≥18px only
|
|
86
|
+
|
|
87
|
+
## Export companions
|
|
88
|
+
|
|
89
|
+
- `DESIGN.md` — full design brief
|
|
90
|
+
- `tokens.dtcg.json` — DTCG (`$value` / `$type`) with light/dark modes
|
|
91
|
+
- `theme.css` — Tailwind v4 `@theme` block
|
|
92
|
+
|
|
93
|
+
When unsure, re-read `DESIGN.md` for this pack and keep accents within the
|
|
94
|
+
curated ramp — do not invent a new hue family.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* ember — Tailwind v4 @theme */
|
|
2
|
+
@theme {
|
|
3
|
+
--color-background: oklch(0.17 0.02 40);
|
|
4
|
+
--color-foreground: oklch(0.93 0.02 70);
|
|
5
|
+
--color-surface: oklch(0.21 0.025 40);
|
|
6
|
+
--color-surface-raised: oklch(0.255 0.03 42);
|
|
7
|
+
--color-muted: oklch(0.275 0.028 40);
|
|
8
|
+
--color-muted-foreground: oklch(0.72 0.03 60);
|
|
9
|
+
--color-accent: oklch(0.7 0.15 50);
|
|
10
|
+
--color-accent-foreground: oklch(0.985 0.015 50);
|
|
11
|
+
--color-border: oklch(0.84 0.03 60 / 14%);
|
|
12
|
+
--color-ring: oklch(0.7 0.15 50);
|
|
13
|
+
--color-danger: oklch(0.66 0.17 28);
|
|
14
|
+
--color-danger-foreground: oklch(0.985 0.01 28);
|
|
15
|
+
--color-danger-subtle: oklch(0.32 0.05 28);
|
|
16
|
+
--color-danger-border: oklch(0.72 0.1 28 / 40%);
|
|
17
|
+
--color-success: oklch(0.72 0.14 145);
|
|
18
|
+
--color-success-foreground: oklch(0.985 0.01 145);
|
|
19
|
+
--color-success-subtle: oklch(0.32 0.045 145);
|
|
20
|
+
--color-success-border: oklch(0.72 0.1 145 / 40%);
|
|
21
|
+
--color-warning: oklch(0.78 0.12 70);
|
|
22
|
+
--color-warning-foreground: oklch(0.22 0.04 70);
|
|
23
|
+
--color-warning-subtle: oklch(0.34 0.04 70);
|
|
24
|
+
--color-warning-border: oklch(0.78 0.1 70 / 40%);
|
|
25
|
+
--color-info: oklch(0.72 0.1 230);
|
|
26
|
+
--color-info-foreground: oklch(0.985 0.01 230);
|
|
27
|
+
--color-info-subtle: oklch(0.32 0.035 230);
|
|
28
|
+
--color-info-border: oklch(0.72 0.08 230 / 40%);
|
|
29
|
+
--color-glass-tint: oklch(0.58 0.15 50 / 28%);
|
|
30
|
+
--radius-sm: 0.45rem;
|
|
31
|
+
--radius-md: 0.7rem;
|
|
32
|
+
--radius-lg: 0.95rem;
|
|
33
|
+
--radius-panel: 0.95rem;
|
|
34
|
+
--font-sans: var(--font-plex-sans, "IBM Plex Sans"), ui-sans-serif, system-ui, sans-serif;
|
|
35
|
+
--font-mono: var(--font-plex-mono, "IBM Plex Mono"), ui-monospace, monospace;
|
|
36
|
+
--font-display: var(--font-space-grotesk, "Space Grotesk"), var(--font-sans);
|
|
37
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Hewn ember theme — DTCG design tokens (dark).",
|
|
3
|
+
"meta": {
|
|
4
|
+
"packId": {
|
|
5
|
+
"$type": "string",
|
|
6
|
+
"$value": "ember"
|
|
7
|
+
},
|
|
8
|
+
"basePackId": {
|
|
9
|
+
"$type": "string",
|
|
10
|
+
"$value": "ember"
|
|
11
|
+
},
|
|
12
|
+
"supportedModes": {
|
|
13
|
+
"$type": "string",
|
|
14
|
+
"$value": "dark"
|
|
15
|
+
},
|
|
16
|
+
"colorScheme": {
|
|
17
|
+
"$type": "string",
|
|
18
|
+
"$value": "dark"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"typography": {
|
|
22
|
+
"fontFamily": {
|
|
23
|
+
"sans": {
|
|
24
|
+
"$type": "fontFamily",
|
|
25
|
+
"$value": [
|
|
26
|
+
"IBM Plex Sans",
|
|
27
|
+
"ui-sans-serif",
|
|
28
|
+
"system-ui",
|
|
29
|
+
"sans-serif"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"mono": {
|
|
33
|
+
"$type": "fontFamily",
|
|
34
|
+
"$value": [
|
|
35
|
+
"IBM Plex Mono",
|
|
36
|
+
"ui-monospace",
|
|
37
|
+
"monospace"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"display": {
|
|
41
|
+
"$type": "fontFamily",
|
|
42
|
+
"$value": [
|
|
43
|
+
"Space Grotesk",
|
|
44
|
+
"IBM Plex Sans",
|
|
45
|
+
"sans-serif"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"modes": {
|
|
51
|
+
"dark": {
|
|
52
|
+
"color": {
|
|
53
|
+
"background": {
|
|
54
|
+
"$type": "color",
|
|
55
|
+
"$value": "oklch(0.17 0.02 40)"
|
|
56
|
+
},
|
|
57
|
+
"foreground": {
|
|
58
|
+
"$type": "color",
|
|
59
|
+
"$value": "oklch(0.93 0.02 70)"
|
|
60
|
+
},
|
|
61
|
+
"surface": {
|
|
62
|
+
"$type": "color",
|
|
63
|
+
"$value": "oklch(0.21 0.025 40)"
|
|
64
|
+
},
|
|
65
|
+
"surface-raised": {
|
|
66
|
+
"$type": "color",
|
|
67
|
+
"$value": "oklch(0.255 0.03 42)"
|
|
68
|
+
},
|
|
69
|
+
"muted": {
|
|
70
|
+
"$type": "color",
|
|
71
|
+
"$value": "oklch(0.275 0.028 40)"
|
|
72
|
+
},
|
|
73
|
+
"muted-foreground": {
|
|
74
|
+
"$type": "color",
|
|
75
|
+
"$value": "oklch(0.72 0.03 60)"
|
|
76
|
+
},
|
|
77
|
+
"accent": {
|
|
78
|
+
"$type": "color",
|
|
79
|
+
"$value": "oklch(0.7 0.15 50)"
|
|
80
|
+
},
|
|
81
|
+
"accent-foreground": {
|
|
82
|
+
"$type": "color",
|
|
83
|
+
"$value": "oklch(0.985 0.015 50)"
|
|
84
|
+
},
|
|
85
|
+
"border": {
|
|
86
|
+
"$type": "color",
|
|
87
|
+
"$value": "oklch(0.84 0.03 60 / 14%)"
|
|
88
|
+
},
|
|
89
|
+
"ring": {
|
|
90
|
+
"$type": "color",
|
|
91
|
+
"$value": "oklch(0.7 0.15 50)"
|
|
92
|
+
},
|
|
93
|
+
"danger": {
|
|
94
|
+
"$type": "color",
|
|
95
|
+
"$value": "oklch(0.66 0.17 28)"
|
|
96
|
+
},
|
|
97
|
+
"danger-foreground": {
|
|
98
|
+
"$type": "color",
|
|
99
|
+
"$value": "oklch(0.985 0.01 28)"
|
|
100
|
+
},
|
|
101
|
+
"danger-subtle": {
|
|
102
|
+
"$type": "color",
|
|
103
|
+
"$value": "oklch(0.32 0.05 28)"
|
|
104
|
+
},
|
|
105
|
+
"danger-border": {
|
|
106
|
+
"$type": "color",
|
|
107
|
+
"$value": "oklch(0.72 0.1 28 / 40%)"
|
|
108
|
+
},
|
|
109
|
+
"success": {
|
|
110
|
+
"$type": "color",
|
|
111
|
+
"$value": "oklch(0.72 0.14 145)"
|
|
112
|
+
},
|
|
113
|
+
"success-foreground": {
|
|
114
|
+
"$type": "color",
|
|
115
|
+
"$value": "oklch(0.985 0.01 145)"
|
|
116
|
+
},
|
|
117
|
+
"success-subtle": {
|
|
118
|
+
"$type": "color",
|
|
119
|
+
"$value": "oklch(0.32 0.045 145)"
|
|
120
|
+
},
|
|
121
|
+
"success-border": {
|
|
122
|
+
"$type": "color",
|
|
123
|
+
"$value": "oklch(0.72 0.1 145 / 40%)"
|
|
124
|
+
},
|
|
125
|
+
"warning": {
|
|
126
|
+
"$type": "color",
|
|
127
|
+
"$value": "oklch(0.78 0.12 70)"
|
|
128
|
+
},
|
|
129
|
+
"warning-foreground": {
|
|
130
|
+
"$type": "color",
|
|
131
|
+
"$value": "oklch(0.22 0.04 70)"
|
|
132
|
+
},
|
|
133
|
+
"warning-subtle": {
|
|
134
|
+
"$type": "color",
|
|
135
|
+
"$value": "oklch(0.34 0.04 70)"
|
|
136
|
+
},
|
|
137
|
+
"warning-border": {
|
|
138
|
+
"$type": "color",
|
|
139
|
+
"$value": "oklch(0.78 0.1 70 / 40%)"
|
|
140
|
+
},
|
|
141
|
+
"info": {
|
|
142
|
+
"$type": "color",
|
|
143
|
+
"$value": "oklch(0.72 0.1 230)"
|
|
144
|
+
},
|
|
145
|
+
"info-foreground": {
|
|
146
|
+
"$type": "color",
|
|
147
|
+
"$value": "oklch(0.985 0.01 230)"
|
|
148
|
+
},
|
|
149
|
+
"info-subtle": {
|
|
150
|
+
"$type": "color",
|
|
151
|
+
"$value": "oklch(0.32 0.035 230)"
|
|
152
|
+
},
|
|
153
|
+
"info-border": {
|
|
154
|
+
"$type": "color",
|
|
155
|
+
"$value": "oklch(0.72 0.08 230 / 40%)"
|
|
156
|
+
},
|
|
157
|
+
"glass-tint": {
|
|
158
|
+
"$type": "color",
|
|
159
|
+
"$value": "oklch(0.58 0.15 50 / 28%)"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"radius": {
|
|
163
|
+
"sm": {
|
|
164
|
+
"$type": "dimension",
|
|
165
|
+
"$value": "0.45rem"
|
|
166
|
+
},
|
|
167
|
+
"md": {
|
|
168
|
+
"$type": "dimension",
|
|
169
|
+
"$value": "0.7rem"
|
|
170
|
+
},
|
|
171
|
+
"lg": {
|
|
172
|
+
"$type": "dimension",
|
|
173
|
+
"$value": "0.95rem"
|
|
174
|
+
},
|
|
175
|
+
"panel": {
|
|
176
|
+
"$type": "dimension",
|
|
177
|
+
"$value": "0.95rem"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"motion": {
|
|
181
|
+
"duration": {
|
|
182
|
+
"$type": "duration",
|
|
183
|
+
"$value": "230ms"
|
|
184
|
+
},
|
|
185
|
+
"stiffness": {
|
|
186
|
+
"$type": "number",
|
|
187
|
+
"$value": 400
|
|
188
|
+
},
|
|
189
|
+
"damping": {
|
|
190
|
+
"$type": "number",
|
|
191
|
+
"$value": 28
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"density": {
|
|
195
|
+
"$type": "number",
|
|
196
|
+
"$value": 1.05
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|