@aziontech/theme 4.2.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +110 -335
  2. package/dist/v4/globals.css +249 -72
  3. package/dist/v4/globals.scss +249 -72
  4. package/package.json +4 -13
  5. package/src/scripts/build-tokens.mjs +57 -7
  6. package/src/scripts/compile-primitives.js +9 -5
  7. package/src/scripts/compile-theme.js +12 -6
  8. package/src/scripts/refs.d.ts +1 -0
  9. package/src/scripts/refs.d.ts.map +1 -1
  10. package/src/scripts/refs.js +11 -0
  11. package/src/scripts/zero-unit.mjs +64 -0
  12. package/src/tokens/README.md +44 -29
  13. package/src/tokens/index.d.ts +0 -1
  14. package/src/tokens/index.js +0 -1
  15. package/src/tokens/primitives/animations/animate.d.ts +6 -0
  16. package/src/tokens/primitives/animations/animate.d.ts.map +1 -1
  17. package/src/tokens/primitives/animations/animate.js +14 -3
  18. package/src/tokens/primitives/animations/keyframes.d.ts +13 -1
  19. package/src/tokens/primitives/animations/keyframes.d.ts.map +1 -1
  20. package/src/tokens/primitives/animations/keyframes.js +23 -4
  21. package/src/tokens/primitives/colors/colors.d.ts +4 -0
  22. package/src/tokens/primitives/colors/colors.d.ts.map +1 -1
  23. package/src/tokens/primitives/colors/colors.js +9 -0
  24. package/src/tokens/primitives/shape/container.d.ts.map +1 -1
  25. package/src/tokens/primitives/shape/container.js +30 -13
  26. package/src/tokens/primitives/typography/leading.d.ts +1 -0
  27. package/src/tokens/primitives/typography/leading.js +1 -0
  28. package/src/tokens/primitives/typography/tracking.js +12 -6
  29. package/src/tokens/semantic/colors.js +5 -2
  30. package/src/tokens/semantic/layouts.data.d.ts +65 -0
  31. package/src/tokens/semantic/layouts.data.d.ts.map +1 -0
  32. package/src/tokens/semantic/layouts.data.js +282 -0
  33. package/src/tokens/semantic/texts.data.d.ts +28 -10
  34. package/src/tokens/semantic/texts.data.d.ts.map +1 -1
  35. package/src/tokens/semantic/texts.data.js +50 -30
  36. package/src/tokens/semantic/z-indices.data.d.ts +1 -1
  37. package/src/tokens/semantic/z-indices.data.js +1 -1
  38. package/src/tokens/theme/accent.js +18 -6
  39. package/src/tokens/theme/background.d.ts +12 -0
  40. package/src/tokens/theme/background.js +11 -2
  41. package/src/tokens/theme/border.js +26 -4
  42. package/src/tokens/theme/code-sintax.d.ts +6 -0
  43. package/src/tokens/theme/code-sintax.js +2 -0
  44. package/src/tokens/theme/feedback/info.js +2 -2
  45. package/src/tokens/theme/surfaces.d.ts +12 -0
  46. package/src/tokens/theme/surfaces.d.ts.map +1 -1
  47. package/src/tokens/theme/surfaces.js +4 -0
  48. package/src/tokens/theme/text.js +2 -2
  49. package/src/tokens/theme.d.ts +4 -0
  50. package/src/scripts/css-vars.d.ts +0 -7
  51. package/src/scripts/css-vars.d.ts.map +0 -1
  52. package/src/scripts/css-vars.js +0 -46
  53. package/src/scripts/resolve.d.ts +0 -5
  54. package/src/scripts/resolve.d.ts.map +0 -1
  55. package/src/scripts/resolve.js +0 -107
@@ -20,12 +20,16 @@ export namespace primitives {
20
20
  export let gray: {
21
21
  50: string;
22
22
  100: string;
23
+ 150: string;
23
24
  200: string;
25
+ 250: string;
24
26
  300: string;
25
27
  400: string;
26
28
  500: string;
27
29
  600: string;
28
30
  700: string;
31
+ 750: string;
32
+ 775: string;
29
33
  800: string;
30
34
  900: string;
31
35
  950: string;
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["colors.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACuC,YAAY;sBAAZ,YAAY;sBAD7B,YAAY"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["colors.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACuC,YAAY;sBAAZ,YAAY;sBAD7B,YAAY"}
@@ -21,15 +21,24 @@ export const primitives = {
21
21
  900: '#001833',
22
22
  950: '#000C1A'
23
23
  },
24
+ // 250 / 750 / 775 fill the two widest gaps in the ramp so an OPAQUE neutral rule has a step
25
+ // to live on. The scale jumped 200 → 300 (229 → 178) and 700 → 800 (77 → 26), and the steps
26
+ // bracketing those gaps are already spoken for by background roles — which is why an opaque
27
+ // border landed exactly on `--bg-selected` / `--bg-disabled` and disappeared. 700 / 800 / 900
28
+ // are the dark background anchors and keep their values untouched.
24
29
  gray: {
25
30
  50: '#FAFAFA',
26
31
  100: '#F5F5F5',
32
+ 150: '#ECECEC',
27
33
  200: '#E5E5E5',
34
+ 250: '#DADADA',
28
35
  300: '#B2B2B2',
29
36
  400: '#999999',
30
37
  500: '#808080',
31
38
  600: '#666666',
32
39
  700: '#4D4D4D',
40
+ 750: '#2B2B2B',
41
+ 775: '#242424',
33
42
  800: '#1A1A1A',
34
43
  900: '#141414',
35
44
  950: '#0A0A0A'
@@ -1 +1 @@
1
- {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["container.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;EAcC"}
1
+ {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["container.js"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;;EAcC"}
@@ -1,17 +1,34 @@
1
+ /*
2
+ * Container widths — a geometric rhythm, not a hand-picked list.
3
+ *
4
+ * The scale is anchored at both ends: `3xs` stays 256px (the narrowest useful
5
+ * field/rail width) and `7xl` is 1620px (the widest page measure). The eleven
6
+ * slots between them are `256 × r^n` with r = (1620 / 256)^(1/12) ≈ 1.1662 —
7
+ * so every neighbouring pair sits at the same ~+16.6% apart and the whole set
8
+ * reads as one progression instead of two grids spliced together (the previous
9
+ * scale stepped +32, then +64, then +96, then +128).
10
+ *
11
+ * Values are rounded to the 4px grid; `7xl` keeps its exact anchor and `4xl`
12
+ * is nudged 4px to land on 1024 (2.6px off the ideal, and a landmark worth
13
+ * keeping). Ratio between neighbours therefore ranges 1.157–1.172.
14
+ *
15
+ * Rounding is 4px, not 8px, because 1620 is not a multiple of 8 — the anchor
16
+ * defines the grid, so a stricter grid could not reach it.
17
+ */
1
18
  export const container = {
2
- '3xs': '256px',
3
- '2xs': '288px',
4
- xs: '320px',
5
- sm: '384px',
6
- md: '448px',
7
- lg: '512px',
8
- xl: '576px',
9
- '2xl': '672px',
10
- '3xl': '768px',
11
- '4xl': '896px',
12
- '5xl': '1024px',
13
- '6xl': '1152px',
14
- '7xl': '1280px'
19
+ '3xs': '256px', // ×1 — anchor
20
+ '2xs': '300px', // +44
21
+ xs: '348px', // +48
22
+ sm: '408px', // +60
23
+ md: '472px', // +64
24
+ lg: '552px', // +80
25
+ xl: '644px', // +92
26
+ '2xl': '752px', // +108
27
+ '3xl': '876px', // +124
28
+ '4xl': '1024px', // +148
29
+ '5xl': '1192px', // +168
30
+ '6xl': '1388px', // +196
31
+ '7xl': '1620px' // +232 — anchor
15
32
  }
16
33
 
17
34
  export default { container }
@@ -1,4 +1,5 @@
1
1
  export namespace leading {
2
+ let none: number;
2
3
  let tight: number;
3
4
  let snug: number;
4
5
  let normal: number;
@@ -1,4 +1,5 @@
1
1
  export const leading = {
2
+ none: 1,
2
3
  tight: 1.25,
3
4
  snug: 1.375,
4
5
  normal: 1.5,
@@ -1,10 +1,16 @@
1
+ /**
2
+ * Letter-spacing scale, in `rem` so the emitted CSS carries a single measure
3
+ * unit across the whole token set (font sizes, spacings and tracking are all
4
+ * root-relative). Values are the em-scale numbers kept as-is, so `widest`
5
+ * resolves to a fixed 1.6px instead of 10% of the element's font size.
6
+ */
1
7
  export const tracking = {
2
- tighter: '-0.05em',
3
- tight: '-0.025em',
4
- normal: '0em',
5
- wide: '0.025em',
6
- wider: '0.05em',
7
- widest: '0.1em'
8
+ tighter: '-0.05rem',
9
+ tight: '-0.025rem',
10
+ normal: '0',
11
+ wide: '0.025rem',
12
+ wider: '0.05rem',
13
+ widest: '0.1rem'
8
14
  }
9
15
 
10
16
  export default { tracking }
@@ -4,8 +4,11 @@
4
4
  * Single source of truth for semantic color tokens.
5
5
  *
6
6
  * - `semanticColorsData`: token refs grouped by category (`text`, `background`,
7
- * `border`) and mode (`light`, `dark`). Consumed by `tokens/build/css-vars.js`
8
- * to emit `:root` / `.dark` CSS variables.
7
+ * `border`) and mode (`light`, `dark`). The raw ref source `semanticColors`
8
+ * derives from; only re-exported via `tokens/index.js` today. Note: its
9
+ * `backdrop` / `primary-mask` refs point at `alpha` shades that do not exist
10
+ * (`alpha.neutral`, `alpha.brand`) — fix them before wiring this data to a
11
+ * compiler, or the unresolved-ref guard will reject it.
9
12
  * - `semanticColors`: derived map of `var(--…)` strings, grouped by category,
10
13
  * consumed by `tokens/theme.js` to extend Tailwind's `textColor`,
11
14
  * `backgroundColor`, and `borderColor`. Generates utilities like
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Layout tokens — the console's container system.
3
+ *
4
+ * Three decisions, expressed once: how far content sits from the app chrome
5
+ * (BOUNDARY), how far things sit from each other (RHYTHM), and how wide a reading
6
+ * column may get (MEASURE).
7
+ *
8
+ * A DERIVED GROUP: every value here is a `var()` reference to `--spacing-*` /
9
+ * `--container-*`. Never write a literal length in this file. That indirection is the
10
+ * whole point — the spacing scale is already fluid (`--spacing-lg` is 1rem, then
11
+ * 1.5rem from `sm`), and `var()` is substituted at USE time on the element, so a
12
+ * layout token follows the breakpoint override without owning a breakpoint map of its
13
+ * own. Giving these their own maps would duplicate the spacing scale into layout and
14
+ * let the two drift.
15
+ */
16
+ export const layoutsData: {
17
+ 'layout-boundary-inline': string;
18
+ 'layout-boundary-end': string;
19
+ 'layout-boundary-start': string;
20
+ 'layout-section-gap': string;
21
+ 'layout-group-gap': string;
22
+ 'layout-measure': string;
23
+ 'layout-measure-focused': string;
24
+ 'layout-measure-form': string;
25
+ 'layout-measure-form-create': string;
26
+ 'layout-measure-docs': string;
27
+ 'container-site': string;
28
+ 'layout-measure-control': string;
29
+ };
30
+ export const layoutsUtilities: {
31
+ 'layout-field-control': {
32
+ '&:not(#\\#)': {
33
+ display: string;
34
+ flex: string;
35
+ 'justify-content': string;
36
+ 'max-width': string;
37
+ };
38
+ };
39
+ 'layout-boundary': {
40
+ 'padding-inline': string;
41
+ 'padding-block-start': string;
42
+ 'padding-block-end': string;
43
+ };
44
+ 'layout-boundary-inline': {
45
+ 'padding-inline': string;
46
+ };
47
+ 'layout-section-start': {
48
+ 'margin-block-start': string;
49
+ '&:first-child': {
50
+ 'margin-block-start': string;
51
+ };
52
+ };
53
+ 'layout-group-start': {
54
+ 'margin-block-start': string;
55
+ '&:first-child': {
56
+ 'margin-block-start': string;
57
+ };
58
+ };
59
+ };
60
+ declare namespace _default {
61
+ export { layoutsData };
62
+ export { layoutsUtilities };
63
+ }
64
+ export default _default;
65
+ //# sourceMappingURL=layouts.data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layouts.data.d.ts","sourceRoot":"","sources":["layouts.data.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH;;;;;;;;;;;;;EAgHC;AAmDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqGC"}
@@ -0,0 +1,282 @@
1
+ /**
2
+ * Layout tokens — the console's container system.
3
+ *
4
+ * Three decisions, expressed once: how far content sits from the app chrome
5
+ * (BOUNDARY), how far things sit from each other (RHYTHM), and how wide a reading
6
+ * column may get (MEASURE).
7
+ *
8
+ * A DERIVED GROUP: every value here is a `var()` reference to `--spacing-*` /
9
+ * `--container-*`. Never write a literal length in this file. That indirection is the
10
+ * whole point — the spacing scale is already fluid (`--spacing-lg` is 1rem, then
11
+ * 1.5rem from `sm`), and `var()` is substituted at USE time on the element, so a
12
+ * layout token follows the breakpoint override without owning a breakpoint map of its
13
+ * own. Giving these their own maps would duplicate the spacing scale into layout and
14
+ * let the two drift.
15
+ */
16
+ export const layoutsData = {
17
+ // BOUNDARY — content ↔ app chrome.
18
+ 'layout-boundary-inline': 'var(--spacing-lg)',
19
+ 'layout-boundary-end': 'var(--spacing-lg)',
20
+ 'layout-boundary-start': 'var(--spacing-lg)',
21
+
22
+ /*
23
+ * RHYTHM — two levels, nothing else.
24
+ *
25
+ * THE PAGE SHAPE. The page stack never carries a vertical `gap`. It holds the
26
+ * heading and ONE element below it, and that element carries the BAND step:
27
+ *
28
+ * <div class="layout-column layout-boundary flex min-w-0 flex-col">
29
+ * <PageHeading />
30
+ * <section class="layout-section-start flex flex-col
31
+ * gap-(--layout-section-gap)"> the bands
32
+ * <section class="flex flex-col gap-(--layout-group-gap)">…</section>
33
+ * <form class="flex flex-col gap-(--layout-group-gap)">…</form>
34
+ * </section>
35
+ * </div>
36
+ *
37
+ * So there are exactly three levels, each owning one decision: the BOUNDARY sets the
38
+ * page's top inset, the PARENT SECTION spaces the sections inside it with
39
+ * --layout-section-gap, and each of those sections spaces its own parts with
40
+ * --layout-group-gap (its title over its card, its controls over the table they
41
+ * narrow). Every page carries the parent section, whether it holds one section or
42
+ * seven, so the shape is the same to read and a second section needs no rework.
43
+ *
44
+ * TWO TOKENS, TUNED SEPARATELY. The space above the first section belongs to the
45
+ * BOUNDARY (--layout-boundary-start) and the space between sections belongs to the
46
+ * PARENT (--layout-section-gap), so either moves without the other. Today the
47
+ * section step is one stop larger than the boundary step: the page opens tight under
48
+ * its heading and then separates its sections more firmly than the parts inside any
49
+ * one of them. Retune either here and every page follows — no page restates a step.
50
+ *
51
+ * A `gap` is right on the parent section and inside a section, and wrong on the page
52
+ * stack: within the parent every child IS a section, so one rule spaces them all; on
53
+ * the page stack the heading and the parent are different kinds of thing.
54
+ * `.layout-group-start` covers the one case a parent cannot: a group whose parts are
55
+ * already direct siblings of the page stack.
56
+ */
57
+ 'layout-section-gap': 'var(--spacing-xl)', // between sections of a parent
58
+ 'layout-group-gap': 'var(--spacing-md)', // within a band
59
+
60
+ /*
61
+ * MEASURE — the widest a page column may get, by context. Five values, because the
62
+ * reason a column is capped differs with how wide its payload actually is.
63
+ *
64
+ * DATA pages (lists, detail dashboards) are capped so a table that runs to the
65
+ * viewport edge on an ultrawide screen doesn't put its row actions a head-turn away
66
+ * from the name that identifies the row. They still want every pixel they can get:
67
+ * more columns visible is the point.
68
+ *
69
+ * FOCUSED pages (home, the create flows) are one task, but that task still goes
70
+ * multi-column — home is a rail plus a card grid — so they stay wide enough for
71
+ * those bands to breathe, and no wider.
72
+ *
73
+ * FORM pages (settings, in-page edit forms) are a single stacked column of fields.
74
+ * Past ~1200px the extra width lands entirely inside the controls: a label sits at
75
+ * the far left of a 1600px row from the input it names, and the eye has to travel
76
+ * the whole measure to pair them.
77
+ *
78
+ * DOCS pages are the one column capped by TYPOGRAPHY rather than by layout. Prose is
79
+ * read line by line, and past ~90 characters the eye loses the start of the next line
80
+ * on the return sweep — a limit that has nothing to do with how wide the payload is,
81
+ * which is why it is far tighter than every other measure here and why it does not
82
+ * move when a rail collapses and frees up room. A docs page is already flanked by two
83
+ * rails; this caps what is between them.
84
+ */
85
+ 'layout-measure': 'var(--container-7xl)', // 1620px — data pages
86
+ 'layout-measure-focused': 'var(--container-4xl)', // 1024px — home
87
+ 'layout-measure-form': 'var(--container-4xl)', // 1024px — settings, forms
88
+ 'layout-measure-form-create': 'var(--container-5xl)', // 1192px — create flows
89
+ 'layout-measure-docs': 'var(--container-4xl)', // 1192px — documentation prose
90
+
91
+ /*
92
+ * MEASURE (site) — the marketing site's content column, and the one measure in this
93
+ * file that is not a console page's.
94
+ *
95
+ * The azion.com pages are a single vertical frame: the nav bar, the hero's inner
96
+ * column, every section below it and the footer all sit on the SAME centred column,
97
+ * and the border-x that runs down the page is only continuous because those four
98
+ * agree to the pixel. That is why this is a token rather than a width re-typed per
99
+ * band — the frame is one decision, and one place is where it has to live.
100
+ *
101
+ * It is `5xl` (1192px) — a rung of the shared container ladder
102
+ * (primitives/shape/container.js), not a number chosen for this page. The page snaps
103
+ * to the scale, the scale does not bend to the page, which is the same rule
104
+ * --layout-measure follows. It is its own token rather than a reference to one of the
105
+ * console measures because the two answer different questions: a console measure caps
106
+ * a payload (a table, a form), while this one is the width of a FRAME whose four bands
107
+ * have to line up. Retuning either must not move the other.
108
+ */
109
+ 'container-site': 'var(--container-5xl)', // 1192px — the marketing site column
110
+ /*
111
+ * MEASURE (control) — the widest the *right side* of an item-group field row may
112
+ * get. An ItemGroup row is two columns: the content names the field (title +
113
+ * guidance) on the left, the actions hold the control on the right. That right side
114
+ * is `flex-1` + `justify-end`, so this cap is what decides where the control
115
+ * actually sits — raise it and the control grows leftward, toward the label that
116
+ * names it; lower it and the control pins to the right edge with the gap opening up
117
+ * in between.
118
+ *
119
+ * The default is deliberately tight: a settings row reads as "name → current value",
120
+ * and a narrow value column keeps a scannable right edge down the whole card. A
121
+ * create form inverts that priority — the fields ARE the page's payload, several are
122
+ * radio blocks carrying their own descriptions, and the user is filling them in
123
+ * rather than scanning them — so the create band opens this up (see
124
+ * `.layout-form-create`). One token, retuned per band, instead of the cap being
125
+ * re-typed on every row.
126
+ */
127
+ 'layout-measure-control': 'var(--container-3xs)' // 256px — settings rows
128
+ }
129
+
130
+ /*
131
+ * --layout-column-measure is deliberately NOT a token: it is a per-class local that
132
+ * each column utility declares and the shared geometry below reads, so a fifth column
133
+ * class inherits the whole behaviour by naming one measure.
134
+ */
135
+ const COLUMN_MEASURE = {
136
+ 'layout-column': 'var(--layout-measure)',
137
+ 'layout-column-focused': 'var(--layout-measure-focused)',
138
+ 'layout-column-form': 'var(--layout-measure-form)',
139
+ 'layout-form-create': 'var(--layout-measure-form-create)',
140
+ 'layout-column-docs': 'var(--layout-measure-docs)'
141
+ }
142
+
143
+ /**
144
+ * A centered column at the measure — every page carries one of these, list pages
145
+ * included. Full-bleed is the absence of all five classes, not a `w-full`.
146
+ *
147
+ * THE BOUNDARY IS NOT PART OF THE MEASURE. A `padded` page gets its boundary from the
148
+ * app shell, on the scroll box OUTSIDE the capped block, so the measure lands as
149
+ * CONTENT width. A page that carries the boundary ITSELF puts it on the same block as
150
+ * the measure, and there `box-sizing: border-box` makes the cap swallow the inset:
151
+ * 1620px of cap minus 24px a side is a 1572px content column, 48px narrower than the
152
+ * same measure gives a padded page. That is the measure describing something other
153
+ * than content, which is the one job it has.
154
+ *
155
+ * So when the boundary rides along, the cap grows by exactly the inset it now
156
+ * contains, and both shapes resolve to the same content column at every viewport.
157
+ * Which means a page can gain or lose its own boundary — pick up a tab bar, drop one,
158
+ * move from padded to self-padded — without moving a pixel.
159
+ *
160
+ * The widening nests HERE, on the column, rather than on the boundary utilities.
161
+ * Specificity is (0,2,0) either way, so correctness does not decide it; three things
162
+ * do. Both declarations that can set `max-width` stay in one block, in reading order.
163
+ * `.layout-boundary` stays what its name says — three padding declarations — instead
164
+ * of shipping a four-way `:is()` into every consumer that uses it with no column
165
+ * anywhere. And a fifth column class still costs one line, because these are generated
166
+ * from COLUMN_MEASURE and the nested rule comes along with it.
167
+ */
168
+ const columnUtility = (measure, extra) => ({
169
+ '--layout-column-measure': measure,
170
+ ...extra,
171
+ 'margin-inline': 'auto',
172
+ width: '100%',
173
+ 'max-width': 'var(--layout-column-measure)',
174
+ '&:is(.layout-boundary, .layout-boundary-inline)': {
175
+ 'max-width': 'calc(var(--layout-column-measure) + 2 * var(--layout-boundary-inline))'
176
+ }
177
+ })
178
+
179
+ export const layoutsUtilities = {
180
+ /*
181
+ * The page boundary. Padding, never margin: a top margin on an `h-full` child of a
182
+ * padded scroll box overflows by exactly the margin (h-full resolves against the
183
+ * parent's content box, the margin sits outside it) and the overflow lands as a
184
+ * silent clip at the bottom of a table.
185
+ */
186
+ 'layout-boundary': {
187
+ 'padding-inline': 'var(--layout-boundary-inline)',
188
+ 'padding-block-start': 'var(--layout-boundary-start)',
189
+ 'padding-block-end': 'var(--layout-boundary-end)'
190
+ },
191
+
192
+ /*
193
+ * The inline half of the boundary, alone — for a band that takes the page's side
194
+ * inset but owns its own vertical padding: a create flow's sticky action bar, whose
195
+ * `py` is a bar height, not a page boundary. Naming it is what lets the MEASURE rule
196
+ * above see a self-inset band and treat it exactly like the scrolling body it sits
197
+ * under, which is the whole point of a sticky bar.
198
+ */
199
+ 'layout-boundary-inline': {
200
+ 'padding-inline': 'var(--layout-boundary-inline)'
201
+ },
202
+
203
+ /*
204
+ * The BOUNDARY step, as a margin — carried by the PARENT SECTION that sits directly
205
+ * below the heading. Exactly ONE element per page stack carries it. Never put it on
206
+ * a section INSIDE the parent: `gap` and `margin` both apply in a flex column, so
207
+ * the two add up and that section lands at twice the step.
208
+ *
209
+ * The `:first-child` rule zeroes the margin when the element that carries it happens
210
+ * to render first (a page with no heading; a stack whose opening band is
211
+ * conditional) — the boundary's padding is that band's top space, so the class is
212
+ * safe to carry unconditionally. This is what makes the margin model safe when the
213
+ * band ABOVE is conditional: a module list renders its controls row only when it has
214
+ * rows, so on an empty account the empty-state band becomes the first child and
215
+ * opens at exactly the boundary step. `v-if` bands are absent from the DOM, so
216
+ * `:first-child` reads the rendered truth.
217
+ *
218
+ * `margin-block-start` (not `margin-top`) to stay on the logical axis the boundary
219
+ * tokens use. Safe here because these stacks are flex containers, where a child's
220
+ * margin never collapses out of its parent.
221
+ */
222
+ 'layout-section-start': {
223
+ 'margin-block-start': 'var(--layout-boundary-start)',
224
+ '&:first-child': { 'margin-block-start': '0' }
225
+ },
226
+
227
+ /*
228
+ * The GROUP step, as a margin — the fallback for a group whose parts are already
229
+ * direct siblings of the page stack, where a wrapper is the wrong answer. The band
230
+ * element normally IS that wrapper (`gap: var(--layout-group-gap)`), and that is the
231
+ * form to prefer: it names the group in the markup.
232
+ */
233
+ 'layout-group-start': {
234
+ 'margin-block-start': 'var(--layout-group-gap)',
235
+ '&:first-child': { 'margin-block-start': '0' }
236
+ },
237
+
238
+ ...Object.fromEntries(
239
+ Object.entries(COLUMN_MEASURE).map(([name, measure]) => [
240
+ name,
241
+ columnUtility(
242
+ measure,
243
+ // The create band retunes the control cap for everything inside it. On a
244
+ // 1192px column a 256px control side left every input pinned to the far right,
245
+ // a head-turn away from the label naming it; 472px pulls the control back
246
+ // toward its label and gives the radio blocks room to read.
247
+ name === 'layout-form-create' ? { '--layout-measure-control': 'var(--container-md)' } : undefined
248
+ )
249
+ ])
250
+ ),
251
+
252
+ /*
253
+ * The control side of an item-group field row: the same geometry every settings row
254
+ * hand-repeated, with the cap coming from --layout-measure-control so a band retunes
255
+ * all of its rows at once.
256
+ *
257
+ * `flex-1` + `justify-end` rather than a fixed width: the row stays two-column at
258
+ * every viewport (the control side yields to a long field name instead of wrapping),
259
+ * and controls inside still pass `w-full` to fill the cap.
260
+ *
261
+ * THE `:not(#\#)` IS LOAD-BEARING, and it is the one place in this file that needs a
262
+ * specificity hack. This class is applied to a component whose own root already
263
+ * carries `shrink-0`, and Vue merges both class lists onto one element. As plain
264
+ * unlayered CSS this rule won this tie; as an `@utility` it sorts BEFORE the core
265
+ * utilities, so `shrink-0` would win and the control side could no longer yield to a
266
+ * long field name. `#\#` is an id no element can carry, so the selector always
267
+ * matches while reading (1,1,0) — Tailwind's own important-strategy idiom. It stays
268
+ * variant-safe (`.md\:layout-field-control:not(#\#)`), unlike an `&:is(…)` bump.
269
+ * Applied to this utility ONLY: the other eight have no live conflict, and the hack
270
+ * would needlessly outrank legitimate consumer overrides.
271
+ */
272
+ 'layout-field-control': {
273
+ '&:not(#\\#)': {
274
+ display: 'flex',
275
+ flex: '1 1 0%',
276
+ 'justify-content': 'flex-end',
277
+ 'max-width': 'var(--layout-measure-control)'
278
+ }
279
+ }
280
+ }
281
+
282
+ export default { layoutsData, layoutsUtilities }
@@ -100,22 +100,30 @@ export const textsData: {
100
100
  'text-label-code-sm': {
101
101
  fontFamily: string;
102
102
  fontSize: string;
103
- lineHeight: string;
104
- fontWeight: string;
103
+ lineHeight: number;
104
+ fontWeight: number;
105
+ letterSpacing: string;
106
+ };
107
+ 'text-body-code-sm': {
108
+ textWrapStyle: string;
109
+ fontFamily: string;
110
+ fontSize: string;
111
+ lineHeight: number;
112
+ fontWeight: number;
105
113
  letterSpacing: string;
106
114
  };
107
115
  'text-label-code-md': {
108
116
  fontFamily: string;
109
117
  fontSize: string;
110
- lineHeight: string;
111
- fontWeight: string;
118
+ lineHeight: number;
119
+ fontWeight: number;
112
120
  letterSpacing: string;
113
121
  };
114
122
  'text-label-code-lg': {
115
123
  fontFamily: string;
116
124
  fontSize: string;
117
- lineHeight: string;
118
- fontWeight: string;
125
+ lineHeight: number;
126
+ fontWeight: number;
119
127
  letterSpacing: string;
120
128
  };
121
129
  'text-body-lg': {
@@ -123,33 +131,43 @@ export const textsData: {
123
131
  _: string;
124
132
  md: string;
125
133
  };
134
+ fontWeight: number;
126
135
  lineHeight: number;
127
136
  };
128
137
  'text-body-md': {
129
138
  fontSize: string;
139
+ fontWeight: number;
140
+ lineHeight: number;
141
+ };
142
+ 'text-body-prose-md': {
143
+ fontSize: string;
144
+ fontWeight: number;
130
145
  lineHeight: number;
131
146
  };
132
147
  'text-body-sm': {
133
148
  fontSize: string;
149
+ fontWeight: number;
134
150
  lineHeight: number;
135
151
  };
136
152
  'text-body-xs': {
137
153
  fontSize: string;
154
+ fontWeight: number;
138
155
  lineHeight: number;
139
156
  };
140
- 'text-tag-sm': {
157
+ 'text-body-xxs': {
141
158
  fontSize: string;
142
- lineHeight: number;
143
159
  fontWeight: number;
160
+ lineHeight: number;
144
161
  };
145
- 'text-tag-md': {
162
+ 'text-tag-sm': {
146
163
  fontSize: string;
147
164
  lineHeight: number;
148
165
  fontWeight: number;
149
166
  };
150
- 'text-body-xxs': {
167
+ 'text-tag-md': {
151
168
  fontSize: string;
152
169
  lineHeight: number;
170
+ fontWeight: number;
153
171
  };
154
172
  'text-overline-md': {
155
173
  fontFamily: string;
@@ -1 +1 @@
1
- {"version":3,"file":"texts.data.d.ts","sourceRoot":"","sources":["texts.data.js"],"names":[],"mappings":"AAsBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2JE,8FAA8F;;;;;;;;;;;;;;;;;;EAkB/F"}
1
+ {"version":3,"file":"texts.data.d.ts","sourceRoot":"","sources":["texts.data.js"],"names":[],"mappings":"AAwBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6KE,8FAA8F;;;;;;;;;;;;;;;;;;EAkB/F"}