@bwui/tokens 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/dist/figma-variables.json +2440 -0
- package/dist/tailwind-preset.mjs +182 -0
- package/dist/tailwind-theme.css +125 -0
- package/dist/token-manifest.json +356 -0
- package/dist/tokens.css +724 -0
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.dtcg.json +1861 -0
- package/dist/tokens.js +377 -0
- package/package.json +33 -4
- package/src/dtcg/breakpoint.tokens.json +20 -0
- package/src/dtcg/component.tokens.json +480 -0
- package/src/dtcg/density.comfortable.tokens.json +47 -0
- package/src/dtcg/density.compact.tokens.json +45 -0
- package/src/dtcg/density.spacious.tokens.json +45 -0
- package/src/dtcg/motion.tokens.json +39 -0
- package/src/dtcg/primitive.tokens.json +347 -0
- package/src/dtcg/semantic.dark.tokens.json +648 -0
- package/src/dtcg/semantic.light.tokens.json +677 -0
- package/src/dtcg/typography.tokens.json +99 -0
- package/README.md +0 -3
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
{
|
|
2
|
+
"icon": {
|
|
3
|
+
"$description": "Component tier: tokens named per-component, for the cases a component needs a value distinct from its semantic default (BR-BW-TOK-001, tier 3). Theme-agnostic (they reference semantic colour tokens, which already resolve per theme, or fixed sizes). Most components consume semantic tokens directly and need nothing here; this set is deliberately small.",
|
|
4
|
+
"size": {
|
|
5
|
+
"$type": "dimension",
|
|
6
|
+
"sm": {
|
|
7
|
+
"$value": "{size.icon.sm}"
|
|
8
|
+
},
|
|
9
|
+
"md": {
|
|
10
|
+
"$value": "{size.icon.md}"
|
|
11
|
+
},
|
|
12
|
+
"lg": {
|
|
13
|
+
"$value": "{size.icon.lg}"
|
|
14
|
+
},
|
|
15
|
+
"xl": {
|
|
16
|
+
"$value": "{size.icon.xl}"
|
|
17
|
+
},
|
|
18
|
+
"2xl": {
|
|
19
|
+
"$value": "{size.icon.2xl}"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"stroke-width": {
|
|
23
|
+
"$type": "dimension",
|
|
24
|
+
"$value": "2"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"button": {
|
|
28
|
+
"radius": {
|
|
29
|
+
"$type": "dimension",
|
|
30
|
+
"$value": "{size.radius.md}",
|
|
31
|
+
"$extensions": {
|
|
32
|
+
"bw": {
|
|
33
|
+
"derived": "var(--bw-size-radius-md)"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"elevation": {
|
|
38
|
+
"$type": "other",
|
|
39
|
+
"$value": "0 1px 2px 0 oklch(0 0 0 / 0.05)",
|
|
40
|
+
"$description": "Button resting elevation (icvoss/django-brickwork#649). Defaults to the shared elevation-1 step so package defaults stay byte-identical; override independently of cards and panels.",
|
|
41
|
+
"$extensions": {
|
|
42
|
+
"bw": {
|
|
43
|
+
"derived": "var(--bw-elevation-1)"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"elevation-hover": {
|
|
48
|
+
"$type": "other",
|
|
49
|
+
"$value": "0 1px 2px 0 oklch(0 0 0 / 0.05)",
|
|
50
|
+
"$description": "Button hover elevation (#649). Defaults to the resting button elevation so hover is a no-op until a brand authors a lift.",
|
|
51
|
+
"$extensions": {
|
|
52
|
+
"bw": {
|
|
53
|
+
"derived": "var(--bw-component-button-elevation)"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"hover-translate": {
|
|
58
|
+
"$type": "dimension",
|
|
59
|
+
"$value": "0",
|
|
60
|
+
"$description": "Vertical translate on button hover (#649), consumed as translateY(). Default 0 keeps package defaults byte-identical; a brand sets e.g. -2px for a lift. Honoured only when prefers-reduced-motion allows transform."
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"menu": {
|
|
64
|
+
"min-width": {
|
|
65
|
+
"$type": "dimension",
|
|
66
|
+
"$value": "12rem",
|
|
67
|
+
"$description": "Minimum width for dropdown-shaped panels (the account-menu panel is the first consumer)."
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"select": {
|
|
71
|
+
"indicator": {
|
|
72
|
+
"$type": "other",
|
|
73
|
+
"$value": "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='oklch(0.55 0.01 265)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='m4 6 4 4 4-4'/%3E%3C/svg%3E\")",
|
|
74
|
+
"$description": "The select's embedded chevron (0.7.0 craft round). A data URI cannot reference a custom property, so the stroke is baked: oklch(0.55 0.01 265), a mid-grey chosen to read as decorative chrome on BOTH themes (measured 4.85:1 on the light surface, 3.88:1 on the dark surface; the accessible affordance is the native select semantics, not this glyph). A brand whose surfaces sit far from the defaults overrides this token with a re-inked URI."
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"checkbox": {
|
|
78
|
+
"glyph": {
|
|
79
|
+
"$type": "other",
|
|
80
|
+
"$value": "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m2.5 6.5 2.5 2.5 4.5-5.5'/%3E%3C/svg%3E\")",
|
|
81
|
+
"$description": "The checkbox tick SHAPE (0.7.0 craft round), consumed as a CSS mask-image and painted with background-color: var(--bw-color-fg-on-accent), so the glyph ink stays theme-correct without a theme-variant image (dark fg-on-accent is near-black ink on the lighter dark accent; a baked white tick would measure 2.63:1 there and fail 1.4.11, whereas fg-on-accent measures 5.11:1 light and 7.52:1 dark against the accent fill). The 'black' stroke is only the mask's alpha carrier, not a colour choice."
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"toggle": {
|
|
85
|
+
"$description": "Toggle switch track/thumb geometry (BR-BW-INPUT-001, 0.13.0, brickwork#57): no primitive scale step fits a switch track, so these are genuinely component-specific.",
|
|
86
|
+
"track-width": {
|
|
87
|
+
"$type": "dimension",
|
|
88
|
+
"$value": "2.25rem"
|
|
89
|
+
},
|
|
90
|
+
"track-height": {
|
|
91
|
+
"$type": "dimension",
|
|
92
|
+
"$value": "1.25rem"
|
|
93
|
+
},
|
|
94
|
+
"thumb-size": {
|
|
95
|
+
"$type": "dimension",
|
|
96
|
+
"$value": "0.875rem",
|
|
97
|
+
"$description": "Leaves a visible track margin on every edge at rest (track-height 1.25rem minus thumb 0.875rem minus two 0.125rem-ish insets from the border)."
|
|
98
|
+
},
|
|
99
|
+
"thumb-inset": {
|
|
100
|
+
"$type": "dimension",
|
|
101
|
+
"$value": "{size.space.1}"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"stat-tile": {
|
|
105
|
+
"value-size": {
|
|
106
|
+
"$type": "dimension",
|
|
107
|
+
"$value": "var(--bw-font-size-3xl)",
|
|
108
|
+
"$description": "Stat tile numeral size (VIZ-001, AC-BW-075); a live var() reference so the font scale cascades, and the size modifiers re-point it per tile."
|
|
109
|
+
},
|
|
110
|
+
"sparkline-height": {
|
|
111
|
+
"$type": "dimension",
|
|
112
|
+
"$value": "{size.space.8}",
|
|
113
|
+
"$description": "Consumer sparkline slot height (#60, 0.12.0): tall enough to read a trend line, short enough that the tile stays a compact KPI card."
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"progress": {
|
|
117
|
+
"track-height": {
|
|
118
|
+
"$type": "dimension",
|
|
119
|
+
"$value": "{size.space.2}",
|
|
120
|
+
"$description": "Progress bar track thickness (STA-007, 0.12.0)."
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"ranked-list": {
|
|
124
|
+
"bar-thickness": {
|
|
125
|
+
"$type": "dimension",
|
|
126
|
+
"$value": "{size.space.1-5}",
|
|
127
|
+
"$description": "Ranked-list decorative bar thickness (icvoss/django-brickwork#183): slimmer than the standalone progress bar's track-height, since a ranked list's bars sit one per row alongside visible label/value text rather than carrying the sole meaning on their own."
|
|
128
|
+
},
|
|
129
|
+
"row-gap": {
|
|
130
|
+
"$type": "dimension",
|
|
131
|
+
"$value": "{size.space.3}",
|
|
132
|
+
"$description": "Vertical rhythm between ranked-list rows (icvoss/django-brickwork#183)."
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"sparkline": {
|
|
136
|
+
"stroke-width": {
|
|
137
|
+
"$type": "dimension",
|
|
138
|
+
"$value": "2",
|
|
139
|
+
"$description": "Sparkline line thickness (VIZ-003/004): a unitless SVG user-unit value, not a CSS length, matching icon.stroke-width's own convention above for the same reason (both are stroke-width on an SVG element inside a scaling viewBox, where a rem/px length would not track the viewBox's own coordinate space)."
|
|
140
|
+
},
|
|
141
|
+
"marker-radius": {
|
|
142
|
+
"$type": "dimension",
|
|
143
|
+
"$value": "2.5",
|
|
144
|
+
"$description": "Highlighted-point marker radius (VIZ-005): a unitless SVG user-unit value in the same viewBox coordinate space as the line's own points, slightly larger than half the stroke width so the marker reads as a distinct dot rather than a thickened patch of the line it sits on."
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"tooltip": {
|
|
148
|
+
"max-width": {
|
|
149
|
+
"$type": "dimension",
|
|
150
|
+
"$value": "16rem",
|
|
151
|
+
"$description": "Tooltip bubble max width (0.12.0, #56): wide enough for a short sentence, capped so a long text does not stretch across the viewport."
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"disabled": {
|
|
155
|
+
"opacity": {
|
|
156
|
+
"$type": "number",
|
|
157
|
+
"$value": "0.5"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"content": {
|
|
161
|
+
"max-width": {
|
|
162
|
+
"$type": "dimension",
|
|
163
|
+
"$value": "72rem",
|
|
164
|
+
"$description": "0.4.0 polish: was `none`. A default measure cap so content bands stop degrading into full-bleed wires on wide monitors; invisible at 1280px. A consumer overrides it (including back to `none`) to change the cap."
|
|
165
|
+
},
|
|
166
|
+
"max-width-marketing": {
|
|
167
|
+
"$type": "dimension",
|
|
168
|
+
"$value": "80rem",
|
|
169
|
+
"$description": "1.2.0 marketing token (BR-BW-MKT marketing tokens): a wider content cap than the app shell's content.max-width (72rem), since a marketing canvas wants a wider column than a console. Used by shell/marketing.html's content wrapper."
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"docs": {
|
|
173
|
+
"nav-inline-size": {
|
|
174
|
+
"$type": "dimension",
|
|
175
|
+
"$value": "16rem",
|
|
176
|
+
"$description": "Docs shell rail column width at the lg breakpoint (icvoss/django-brickwork#671). Consumed by .bw-docs-layout's grid-template-columns; override when document titles need a wider rail than the 16rem default."
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"section-gap-marketing": {
|
|
180
|
+
"$type": "dimension",
|
|
181
|
+
"$value": "6rem",
|
|
182
|
+
"$description": "1.2.0 marketing token (BR-BW-MKT marketing tokens), raised from 4rem in the Phase 3 visual-bar craft wave (icvoss/django-brickwork#510): the vertical rhythm between stacked marketing sections (hero, feature grid, pricing, CTA and so on), larger than the app's --bw-density-section-gap (2rem comfortable) since marketing pages read as fewer, more generous blocks rather than a dense workspace. Named distinctly from the density-scoped section-gap (not itself density-varying: marketing pages are not scoped by the density axis)."
|
|
183
|
+
},
|
|
184
|
+
"hero": {
|
|
185
|
+
"$description": "Hero component tokens. Copy-column measures (#640), decoration watermark (#645), eyebrow marker (#659), and circle media size (#672). Measure defaults keep package-default layout byte-identical; decoration tokens apply only when the decoration region has content; marker tokens apply only when eyebrow_marker=\"rule\"; circle size applies only when media_shape=\"circle\".",
|
|
186
|
+
"copy-max-width": {
|
|
187
|
+
"$type": "dimension",
|
|
188
|
+
"$value": "{size.max-width.prose}",
|
|
189
|
+
"$extensions": {
|
|
190
|
+
"bw": {
|
|
191
|
+
"derived": "var(--bw-size-max-width-prose)"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"$description": "Max inline size of .bw-hero__copy (and the media-behind copy rule). Defaults to the prose measure so layout matches the pre-token binding."
|
|
195
|
+
},
|
|
196
|
+
"heading-max-width": {
|
|
197
|
+
"$type": "dimension",
|
|
198
|
+
"$value": "100%",
|
|
199
|
+
"$description": "Max inline size of .bw-hero__heading. Defaults to 100% so the heading fills the copy column at package default; override after widening the copy column when the heading should be wider than the lede."
|
|
200
|
+
},
|
|
201
|
+
"lede-max-width": {
|
|
202
|
+
"$type": "dimension",
|
|
203
|
+
"$value": "100%",
|
|
204
|
+
"$description": "Max inline size of .bw-hero__lede. Defaults to 100% (fills the copy column). When the copy column is widened for a display heading, set this to var(--bw-size-max-width-prose) or 62ch to keep the lede at a readable measure."
|
|
205
|
+
},
|
|
206
|
+
"decoration": {
|
|
207
|
+
"opacity": {
|
|
208
|
+
"$type": "number",
|
|
209
|
+
"$value": "0.16",
|
|
210
|
+
"$description": "Default fade for a brand stamp behind hero copy (icvoss.com evidence: 16% opacity). Decorative only; never relied on for contrast."
|
|
211
|
+
},
|
|
212
|
+
"inset": {
|
|
213
|
+
"$type": "dimension",
|
|
214
|
+
"$value": "{size.space.8}",
|
|
215
|
+
"$description": "Block-start offset for the decoration; the CSS flips the sign for inset-inline-end so the mark hangs slightly past the trailing edge by the same magnitude."
|
|
216
|
+
},
|
|
217
|
+
"size": {
|
|
218
|
+
"$type": "dimension",
|
|
219
|
+
"$value": "14rem",
|
|
220
|
+
"$description": "Default inline size of the decoration mark, capped further at 50% of the hero in CSS so a large SVG cannot dominate the band."
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"eyebrow-marker": {
|
|
224
|
+
"inline-size": {
|
|
225
|
+
"$type": "dimension",
|
|
226
|
+
"$value": "2.4rem",
|
|
227
|
+
"$description": "Inline size of the leading accent rule on .bw-hero__eyebrow--rule (::before). Evidence: icvoss.com 2.4rem mark (#659)."
|
|
228
|
+
},
|
|
229
|
+
"block-size": {
|
|
230
|
+
"$type": "dimension",
|
|
231
|
+
"$value": "2px",
|
|
232
|
+
"$description": "Block size of the leading accent rule on .bw-hero__eyebrow--rule (::before)."
|
|
233
|
+
},
|
|
234
|
+
"color": {
|
|
235
|
+
"$type": "other",
|
|
236
|
+
"$value": "var(--bw-color-accent)",
|
|
237
|
+
"$extensions": {
|
|
238
|
+
"bw": {
|
|
239
|
+
"derived": "var(--bw-color-accent)"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"$description": "Paint colour for the eyebrow marker rule. Own token so a brand can colour the mark differently from the eyebrow text (which reads --bw-color-accent); must not use currentColor. Default matches accent so package-default rule heroes stay coherent; override when the mark needs a distinct emphasis colour (#659)."
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"media-circle-size": {
|
|
246
|
+
"$type": "dimension",
|
|
247
|
+
"$value": "14rem",
|
|
248
|
+
"$description": "Max inline size of .bw-hero__media when media_shape=\"circle\" (#672). Caps a circular portrait so it cannot stretch to the full media column under media_placement=\"beside\". Override to enlarge or shrink the portrait."
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"logo": {
|
|
252
|
+
"height": {
|
|
253
|
+
"$type": "dimension",
|
|
254
|
+
"$value": "{size.space.8}",
|
|
255
|
+
"$description": "Marketing brand-slot logo height (#83, ADR-054 beautiful-by-default): the default cap the marketing shell applies to an img/svg dropped into brand_logo or brand_wordmark, so an unconstrained mark/lockup renders at a sensible header size (2rem, the 32px end of the conventional 28-32px header-logo range) with width following the intrinsic ratio, out of the box. A consumer overrides the token to resize, or targets the zero-specificity shell rule directly."
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"topbar": {
|
|
259
|
+
"position": {
|
|
260
|
+
"$type": "other",
|
|
261
|
+
"$value": "sticky"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"drawer": {
|
|
265
|
+
"width": {
|
|
266
|
+
"$type": "dimension",
|
|
267
|
+
"$value": "min(20rem, 80vw)"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"toast": {
|
|
271
|
+
"max-width": {
|
|
272
|
+
"$type": "dimension",
|
|
273
|
+
"$value": "24rem",
|
|
274
|
+
"$description": "Toast readable measure (0.9.0 interaction set): the sizing ramp has no step between max-width-modal-sm (28rem) and the drawer width, and a toast wants a narrower, glanceable line length than either."
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"htmx-indicator": {
|
|
278
|
+
"opacity": {
|
|
279
|
+
"$type": "number",
|
|
280
|
+
"$value": "0.6",
|
|
281
|
+
"$description": "STA-006: the substrate's one opinionated in-flight treatment. Applied to an htmx swap target via htmx's own htmx-request class convention, dimming still-visible content while a request is in flight; sits between disabled (0.5) and muted (0.7) so in-flight never reads as disabled."
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"focus": {
|
|
285
|
+
"$description": "Focus-ring geometry (DESIGN.md section 6.4). An accessibility floor: not brand-tunable except via --bw-color-focus-ring.",
|
|
286
|
+
"ring-width": {
|
|
287
|
+
"$type": "dimension",
|
|
288
|
+
"$value": "2px"
|
|
289
|
+
},
|
|
290
|
+
"ring-offset": {
|
|
291
|
+
"$type": "dimension",
|
|
292
|
+
"$value": "2px"
|
|
293
|
+
},
|
|
294
|
+
"ring-style": {
|
|
295
|
+
"$type": "other",
|
|
296
|
+
"$value": "solid"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"z": {
|
|
300
|
+
"$description": "Stacking scale (DESIGN.md section 6.5). Chrome sits below overlay surfaces; dropdown content that opens inside the sticky topbar must not fight it.",
|
|
301
|
+
"$type": "number",
|
|
302
|
+
"base": {
|
|
303
|
+
"$value": "0"
|
|
304
|
+
},
|
|
305
|
+
"dropdown": {
|
|
306
|
+
"$value": "10"
|
|
307
|
+
},
|
|
308
|
+
"sticky": {
|
|
309
|
+
"$value": "20"
|
|
310
|
+
},
|
|
311
|
+
"drawer": {
|
|
312
|
+
"$value": "30"
|
|
313
|
+
},
|
|
314
|
+
"overlay": {
|
|
315
|
+
"$value": "40"
|
|
316
|
+
},
|
|
317
|
+
"modal": {
|
|
318
|
+
"$value": "50"
|
|
319
|
+
},
|
|
320
|
+
"skip-link": {
|
|
321
|
+
"$value": "60"
|
|
322
|
+
},
|
|
323
|
+
"toast": {
|
|
324
|
+
"$value": "70"
|
|
325
|
+
},
|
|
326
|
+
"tooltip": {
|
|
327
|
+
"$value": "80"
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"opacity": {
|
|
331
|
+
"$type": "number",
|
|
332
|
+
"muted": {
|
|
333
|
+
"$value": "0.7"
|
|
334
|
+
},
|
|
335
|
+
"sort-idle": {
|
|
336
|
+
"$value": "0.4"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"font": {
|
|
340
|
+
"$description": "Typography tokens (semver-public, brand-overridable). Theme-agnostic. A consuming app rebrands its typeface the same token-first way it rebrands colour, by overriding --bw-font-family-* rather than reaching into brickwork's own classes. Body defaults to a neutral system sans; display defaults to a distinct system serif pairing (icvoss/django-brickwork#511) so marketing and page headings read as designed without a webfont, and brands still override either token.",
|
|
341
|
+
"family": {
|
|
342
|
+
"$type": "fontFamily",
|
|
343
|
+
"sans": {
|
|
344
|
+
"$value": "system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'"
|
|
345
|
+
},
|
|
346
|
+
"display": {
|
|
347
|
+
"$value": "ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', Times, serif",
|
|
348
|
+
"$description": "Base-theme display pairing (icvoss/django-brickwork#511). Deliberately not an alias of sans: heading-display / heading-2xl / heading-xl / heading-section consume this family so hierarchy is not size-only. Brands override --bw-font-family-display with their own face (see northline brand-pack example)."
|
|
349
|
+
},
|
|
350
|
+
"mono": {
|
|
351
|
+
"$value": "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"size": {
|
|
355
|
+
"$type": "dimension",
|
|
356
|
+
"2xs": {
|
|
357
|
+
"$value": "0.6875rem",
|
|
358
|
+
"$description": "Chrome-text floor (TYP-022): overlines and micro-labels only; never body, interactive labels, form help/error, or table cell content. Scales with rem / browser zoom."
|
|
359
|
+
},
|
|
360
|
+
"xs": {
|
|
361
|
+
"$value": "0.75rem"
|
|
362
|
+
},
|
|
363
|
+
"sm": {
|
|
364
|
+
"$value": "0.875rem"
|
|
365
|
+
},
|
|
366
|
+
"md": {
|
|
367
|
+
"$value": "1rem"
|
|
368
|
+
},
|
|
369
|
+
"lg": {
|
|
370
|
+
"$value": "1.125rem"
|
|
371
|
+
},
|
|
372
|
+
"xl": {
|
|
373
|
+
"$value": "1.5rem"
|
|
374
|
+
},
|
|
375
|
+
"2xl": {
|
|
376
|
+
"$value": "2rem"
|
|
377
|
+
},
|
|
378
|
+
"3xl": {
|
|
379
|
+
"$value": "2.5rem"
|
|
380
|
+
},
|
|
381
|
+
"4xl": {
|
|
382
|
+
"$value": "3rem"
|
|
383
|
+
},
|
|
384
|
+
"5xl": {
|
|
385
|
+
"$value": "3.75rem"
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"weight": {
|
|
389
|
+
"$type": "number",
|
|
390
|
+
"normal": {
|
|
391
|
+
"$value": "400"
|
|
392
|
+
},
|
|
393
|
+
"medium": {
|
|
394
|
+
"$value": "500"
|
|
395
|
+
},
|
|
396
|
+
"semibold": {
|
|
397
|
+
"$value": "600"
|
|
398
|
+
},
|
|
399
|
+
"bold": {
|
|
400
|
+
"$value": "700"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"line-height": {
|
|
404
|
+
"$type": "number",
|
|
405
|
+
"none": {
|
|
406
|
+
"$value": "1"
|
|
407
|
+
},
|
|
408
|
+
"tight": {
|
|
409
|
+
"$value": "1.25"
|
|
410
|
+
},
|
|
411
|
+
"snug": {
|
|
412
|
+
"$value": "1.375"
|
|
413
|
+
},
|
|
414
|
+
"normal": {
|
|
415
|
+
"$value": "1.5"
|
|
416
|
+
},
|
|
417
|
+
"relaxed": {
|
|
418
|
+
"$value": "1.625"
|
|
419
|
+
},
|
|
420
|
+
"loose": {
|
|
421
|
+
"$value": "2"
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"tracking": {
|
|
425
|
+
"$type": "dimension",
|
|
426
|
+
"tight": {
|
|
427
|
+
"$value": "-0.025em"
|
|
428
|
+
},
|
|
429
|
+
"normal": {
|
|
430
|
+
"$value": "0em"
|
|
431
|
+
},
|
|
432
|
+
"wide": {
|
|
433
|
+
"$value": "0.025em"
|
|
434
|
+
},
|
|
435
|
+
"wider": {
|
|
436
|
+
"$value": "0.05em"
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
"gauge": {
|
|
441
|
+
"diameter": {
|
|
442
|
+
"$type": "dimension",
|
|
443
|
+
"sm": {
|
|
444
|
+
"$value": "{size.space.16}",
|
|
445
|
+
"$description": "Gauge rendered diameter, small (VIZ-010)."
|
|
446
|
+
},
|
|
447
|
+
"md": {
|
|
448
|
+
"$value": "{size.space.20}",
|
|
449
|
+
"$description": "Gauge rendered diameter, medium/default (VIZ-010)."
|
|
450
|
+
},
|
|
451
|
+
"lg": {
|
|
452
|
+
"$value": "{size.space.24}",
|
|
453
|
+
"$description": "Gauge rendered diameter, large (VIZ-010)."
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
"stroke-width": {
|
|
457
|
+
"$type": "dimension",
|
|
458
|
+
"$value": "8",
|
|
459
|
+
"$description": "Gauge ring stroke width, a bare user-space number against the component's fixed 0-100 SVG viewBox (VIZ-007), the same unitless convention icon.stroke-width already uses for its own SVG stroke."
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"scorecard": {
|
|
463
|
+
"$description": "Scorecard grid column counts (VIZ-011), the shared dashboard grid for stat tiles and chart cards alike (CHT-026: a card is a card, no chart-specific grid duplicate). Bare numbers, consumed inside grid-template-columns: repeat(N, 1fr), the same unitless convention z.* and disabled.opacity already use for a non-dimension value.",
|
|
464
|
+
"columns": {
|
|
465
|
+
"$type": "number",
|
|
466
|
+
"base": {
|
|
467
|
+
"$value": "1",
|
|
468
|
+
"$description": "Below --bw-breakpoint-sm: a single column (VIZ-011 default floor)."
|
|
469
|
+
},
|
|
470
|
+
"sm": {
|
|
471
|
+
"$value": "2",
|
|
472
|
+
"$description": "From --bw-breakpoint-sm."
|
|
473
|
+
},
|
|
474
|
+
"lg": {
|
|
475
|
+
"$value": "4",
|
|
476
|
+
"$description": "From --bw-breakpoint-lg."
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"density": {
|
|
3
|
+
"$description": "Density axis: COMFORTABLE (default). Density scales spacing/sizing component tokens only, never colour (BR-BW-TOK-004). Same token names as the compact/spacious files. Selected via [data-density='comfortable'] (the default, also emitted on :root).",
|
|
4
|
+
"$type": "dimension",
|
|
5
|
+
"control-height": {
|
|
6
|
+
"$value": "2.5rem"
|
|
7
|
+
},
|
|
8
|
+
"control-padding-inline": {
|
|
9
|
+
"$value": "0.75rem"
|
|
10
|
+
},
|
|
11
|
+
"row-padding-block": {
|
|
12
|
+
"$value": "0.625rem"
|
|
13
|
+
},
|
|
14
|
+
"row-padding-inline": {
|
|
15
|
+
"$value": "0.75rem"
|
|
16
|
+
},
|
|
17
|
+
"stack-gap": {
|
|
18
|
+
"$value": "1rem"
|
|
19
|
+
},
|
|
20
|
+
"sidebar-width": {
|
|
21
|
+
"$value": "16rem"
|
|
22
|
+
},
|
|
23
|
+
"sidebar-width-collapsed": {
|
|
24
|
+
"$value": "4rem"
|
|
25
|
+
},
|
|
26
|
+
"rail-width": {
|
|
27
|
+
"$value": "3.25rem",
|
|
28
|
+
"$description": "Capability rail resting width for layout=regions and bw_nav_rail density=icons (brickwork#700/#701). 3.25rem = 52px."
|
|
29
|
+
},
|
|
30
|
+
"rail-width-expanded": {
|
|
31
|
+
"$value": "13.75rem",
|
|
32
|
+
"$description": "Capability rail width on hover/focus-within expand (brickwork#701). 13.75rem = 220px."
|
|
33
|
+
},
|
|
34
|
+
"topbar-height": {
|
|
35
|
+
"$value": "3.5rem"
|
|
36
|
+
},
|
|
37
|
+
"section-gap": {
|
|
38
|
+
"$value": "2rem"
|
|
39
|
+
},
|
|
40
|
+
"card-padding": {
|
|
41
|
+
"$value": "1rem"
|
|
42
|
+
},
|
|
43
|
+
"page-gutter-inline": {
|
|
44
|
+
"$value": "1.5rem"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"density": {
|
|
3
|
+
"$description": "Density axis: COMPACT. Tighter spacing and control heights for information-dense admin screens. Same token names as the comfortable/spacious files. Selected via [data-density='compact']. Colour tokens are unaffected (BR-BW-TOK-004).",
|
|
4
|
+
"$type": "dimension",
|
|
5
|
+
"control-height": {
|
|
6
|
+
"$value": "2rem"
|
|
7
|
+
},
|
|
8
|
+
"control-padding-inline": {
|
|
9
|
+
"$value": "0.5rem"
|
|
10
|
+
},
|
|
11
|
+
"row-padding-block": {
|
|
12
|
+
"$value": "0.375rem"
|
|
13
|
+
},
|
|
14
|
+
"row-padding-inline": {
|
|
15
|
+
"$value": "0.5rem"
|
|
16
|
+
},
|
|
17
|
+
"stack-gap": {
|
|
18
|
+
"$value": "0.625rem"
|
|
19
|
+
},
|
|
20
|
+
"sidebar-width": {
|
|
21
|
+
"$value": "13rem"
|
|
22
|
+
},
|
|
23
|
+
"sidebar-width-collapsed": {
|
|
24
|
+
"$value": "3.5rem"
|
|
25
|
+
},
|
|
26
|
+
"rail-width": {
|
|
27
|
+
"$value": "3.25rem"
|
|
28
|
+
},
|
|
29
|
+
"rail-width-expanded": {
|
|
30
|
+
"$value": "12.5rem"
|
|
31
|
+
},
|
|
32
|
+
"topbar-height": {
|
|
33
|
+
"$value": "3rem"
|
|
34
|
+
},
|
|
35
|
+
"section-gap": {
|
|
36
|
+
"$value": "1.5rem"
|
|
37
|
+
},
|
|
38
|
+
"card-padding": {
|
|
39
|
+
"$value": "0.75rem"
|
|
40
|
+
},
|
|
41
|
+
"page-gutter-inline": {
|
|
42
|
+
"$value": "1rem"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"density": {
|
|
3
|
+
"$description": "Density axis: SPACIOUS. Roomier spacing for lower-density, more relaxed screens. Same token names as the comfortable/compact files. Selected via [data-density='spacious']. Colour tokens are unaffected (BR-BW-TOK-004).",
|
|
4
|
+
"$type": "dimension",
|
|
5
|
+
"control-height": {
|
|
6
|
+
"$value": "3rem"
|
|
7
|
+
},
|
|
8
|
+
"control-padding-inline": {
|
|
9
|
+
"$value": "1rem"
|
|
10
|
+
},
|
|
11
|
+
"row-padding-block": {
|
|
12
|
+
"$value": "0.875rem"
|
|
13
|
+
},
|
|
14
|
+
"row-padding-inline": {
|
|
15
|
+
"$value": "1rem"
|
|
16
|
+
},
|
|
17
|
+
"stack-gap": {
|
|
18
|
+
"$value": "1.5rem"
|
|
19
|
+
},
|
|
20
|
+
"sidebar-width": {
|
|
21
|
+
"$value": "18rem"
|
|
22
|
+
},
|
|
23
|
+
"sidebar-width-collapsed": {
|
|
24
|
+
"$value": "4.5rem"
|
|
25
|
+
},
|
|
26
|
+
"rail-width": {
|
|
27
|
+
"$value": "3.5rem"
|
|
28
|
+
},
|
|
29
|
+
"rail-width-expanded": {
|
|
30
|
+
"$value": "14rem"
|
|
31
|
+
},
|
|
32
|
+
"topbar-height": {
|
|
33
|
+
"$value": "4rem"
|
|
34
|
+
},
|
|
35
|
+
"section-gap": {
|
|
36
|
+
"$value": "3rem"
|
|
37
|
+
},
|
|
38
|
+
"card-padding": {
|
|
39
|
+
"$value": "1.5rem"
|
|
40
|
+
},
|
|
41
|
+
"page-gutter-inline": {
|
|
42
|
+
"$value": "2rem"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"duration": {
|
|
3
|
+
"$description": "Motion durations (DESIGN.md section 8.1). instant is 1ms, not 0, so transitionend still fires; shimmer and spin formalise the two hardcoded loop timings; the toast-* rungs are the CBH-009 auto-dismiss ladder, read by bwToast via getComputedStyle, never a transition timing.",
|
|
4
|
+
"$type": "duration",
|
|
5
|
+
"instant": { "$value": "1ms" },
|
|
6
|
+
"fast": { "$value": "100ms" },
|
|
7
|
+
"normal": { "$value": "200ms" },
|
|
8
|
+
"moderate": { "$value": "250ms" },
|
|
9
|
+
"slow": { "$value": "400ms" },
|
|
10
|
+
"shimmer": { "$value": "1500ms" },
|
|
11
|
+
"spin": { "$value": "700ms" },
|
|
12
|
+
"toast-short": { "$value": "4000ms" },
|
|
13
|
+
"toast-normal": { "$value": "6000ms" },
|
|
14
|
+
"toast-long": { "$value": "10000ms" }
|
|
15
|
+
},
|
|
16
|
+
"debounce": {
|
|
17
|
+
"$description": "Interaction debounce windows (04-interfaces section 4b). JS-consumed via getComputedStyle so a consumer retunes timing in the token layer without touching templates; search is the combobox server-filter window.",
|
|
18
|
+
"$type": "duration",
|
|
19
|
+
"search": { "$value": "300ms" }
|
|
20
|
+
},
|
|
21
|
+
"ease": {
|
|
22
|
+
"$description": "Easing curves (DESIGN.md section 8.2): in for exits, out for entrances, in-out for moves, emphasised for energetic entrances.",
|
|
23
|
+
"$type": "cubicBezier",
|
|
24
|
+
"linear": { "$value": "linear" },
|
|
25
|
+
"standard": { "$value": "cubic-bezier(0.4, 0, 0.2, 1)" },
|
|
26
|
+
"in": { "$value": "cubic-bezier(0.4, 0, 1, 1)" },
|
|
27
|
+
"out": { "$value": "cubic-bezier(0, 0, 0.2, 1)" },
|
|
28
|
+
"in-out": { "$value": "cubic-bezier(0.4, 0, 0.2, 1)" },
|
|
29
|
+
"emphasised": { "$value": "cubic-bezier(0.2, 0, 0, 1)" }
|
|
30
|
+
},
|
|
31
|
+
"transition": {
|
|
32
|
+
"$description": "Composite transition shorthands (DESIGN.md section 8.3), each a var() reference bundle so duration/ease overrides cascade. Usage: transition: var(--bw-transition-colors); never transition: all.",
|
|
33
|
+
"$type": "other",
|
|
34
|
+
"colors": { "$value": "color var(--bw-duration-fast) var(--bw-ease-standard), background-color var(--bw-duration-fast) var(--bw-ease-standard), border-color var(--bw-duration-fast) var(--bw-ease-standard)" },
|
|
35
|
+
"opacity": { "$value": "opacity var(--bw-duration-fast) var(--bw-ease-standard)" },
|
|
36
|
+
"transform": { "$value": "transform var(--bw-duration-normal) var(--bw-ease-in-out)" },
|
|
37
|
+
"shadow": { "$value": "box-shadow var(--bw-duration-fast) var(--bw-ease-standard)" }
|
|
38
|
+
}
|
|
39
|
+
}
|