@finstack-com-public/design 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/CHANGELOG.md +240 -0
  2. package/dist/charts/index.d.ts +7 -2
  3. package/dist/charts/index.js +20 -17
  4. package/dist/css/appbar.css +2 -2
  5. package/dist/css/breadcrumbs.css +1 -1
  6. package/dist/css/card.css +62 -17
  7. package/dist/css/card.md +18 -2
  8. package/dist/css/checkbox.css +61 -1
  9. package/dist/css/checkbox.md +3 -2
  10. package/dist/css/chip.css +37 -6
  11. package/dist/css/chip.md +5 -0
  12. package/dist/css/control-rows.css +111 -0
  13. package/dist/css/control-rows.md +46 -0
  14. package/dist/css/count.css +2 -2
  15. package/dist/css/dialog.css +5 -1
  16. package/dist/css/dialog.md +1 -0
  17. package/dist/css/drag.css +6 -6
  18. package/dist/css/drag.md +1 -0
  19. package/dist/css/dropzone.css +3 -3
  20. package/dist/css/error-message.css +2 -2
  21. package/dist/css/field.css +1 -1
  22. package/dist/css/gap.css +7 -7
  23. package/dist/css/glass.css +34 -0
  24. package/dist/css/glass.md +19 -0
  25. package/dist/css/input.css +1 -1
  26. package/dist/css/kicker.css +12 -2
  27. package/dist/css/kicker.md +5 -0
  28. package/dist/css/kpi.css +120 -6
  29. package/dist/css/kpi.md +28 -1
  30. package/dist/css/link.css +1 -1
  31. package/dist/css/menu.css +2 -2
  32. package/dist/css/meter.css +2 -2
  33. package/dist/css/page.css +36 -0
  34. package/dist/css/page.md +28 -0
  35. package/dist/css/panel.css +2 -4
  36. package/dist/css/panel.md +1 -1
  37. package/dist/css/param-badge.css +48 -0
  38. package/dist/css/param-badge.md +22 -0
  39. package/dist/css/popover.css +5 -4
  40. package/dist/css/problems.css +2 -2
  41. package/dist/css/progress.css +1 -1
  42. package/dist/css/segmented.css +2 -2
  43. package/dist/css/sheet.css +4 -4
  44. package/dist/css/sidenav.css +4 -5
  45. package/dist/css/sidenav.md +1 -1
  46. package/dist/css/site.css +3 -2
  47. package/dist/css/stacked-bar.css +2 -2
  48. package/dist/css/tabbar.css +36 -13
  49. package/dist/css/tabbar.md +4 -1
  50. package/dist/css/table.css +2 -1
  51. package/dist/css/tabs.css +18 -2
  52. package/dist/css/tabs.md +1 -0
  53. package/dist/css/title.css +20 -0
  54. package/dist/css/title.md +13 -0
  55. package/dist/css/tokens.css +207 -137
  56. package/dist/css/tooltip.css +25 -2
  57. package/dist/css/tooltip.md +1 -0
  58. package/dist/css/tree.css +44 -9
  59. package/dist/css/tree.md +1 -0
  60. package/dist/css/wave.css +36 -0
  61. package/dist/css/wave.md +43 -0
  62. package/dist/css/widget.css +7 -9
  63. package/dist/css-text/appbar.js +1 -1
  64. package/dist/css-text/breadcrumbs.js +1 -1
  65. package/dist/css-text/card.js +1 -1
  66. package/dist/css-text/checkbox.js +1 -1
  67. package/dist/css-text/chip.js +1 -1
  68. package/dist/css-text/control-rows.d.ts +2 -0
  69. package/dist/css-text/control-rows.js +1 -0
  70. package/dist/css-text/count.js +1 -1
  71. package/dist/css-text/dialog.js +1 -1
  72. package/dist/css-text/drag.js +1 -1
  73. package/dist/css-text/dropzone.js +1 -1
  74. package/dist/css-text/error-message.js +1 -1
  75. package/dist/css-text/field.js +1 -1
  76. package/dist/css-text/gap.js +1 -1
  77. package/dist/css-text/glass.d.ts +2 -0
  78. package/dist/css-text/glass.js +1 -0
  79. package/dist/css-text/input.js +1 -1
  80. package/dist/css-text/kicker.js +1 -1
  81. package/dist/css-text/kit.js +6073 -1
  82. package/dist/css-text/kpi.js +1 -1
  83. package/dist/css-text/link.js +1 -1
  84. package/dist/css-text/menu.js +1 -1
  85. package/dist/css-text/meter.js +1 -1
  86. package/dist/css-text/page.d.ts +2 -0
  87. package/dist/css-text/page.js +1 -0
  88. package/dist/css-text/panel.js +1 -1
  89. package/dist/css-text/param-badge.d.ts +2 -0
  90. package/dist/css-text/param-badge.js +1 -0
  91. package/dist/css-text/popover.js +1 -1
  92. package/dist/css-text/problems.js +1 -1
  93. package/dist/css-text/progress.js +1 -1
  94. package/dist/css-text/segmented.js +1 -1
  95. package/dist/css-text/sheet.js +1 -1
  96. package/dist/css-text/sidenav.js +1 -1
  97. package/dist/css-text/site.js +1 -1
  98. package/dist/css-text/stacked-bar.js +1 -1
  99. package/dist/css-text/tabbar.js +1 -1
  100. package/dist/css-text/table.js +1 -1
  101. package/dist/css-text/tabs.js +1 -1
  102. package/dist/css-text/title.d.ts +2 -0
  103. package/dist/css-text/title.js +1 -0
  104. package/dist/css-text/tokens.js +1 -1
  105. package/dist/css-text/tooltip.js +1 -1
  106. package/dist/css-text/tree.js +1 -1
  107. package/dist/css-text/wave.d.ts +2 -0
  108. package/dist/css-text/wave.js +37 -0
  109. package/dist/css-text/widget.js +1 -1
  110. package/dist/dom/dialog.js +13 -2
  111. package/dist/grid.json +2 -2
  112. package/dist/kit.css +982 -262
  113. package/dist/motifs/wave.webp +0 -0
  114. package/dist/react/data.d.ts +34 -0
  115. package/dist/react/data.js +7 -3
  116. package/dist/react/util.d.ts +5 -1
  117. package/dist/react/util.js +10 -2
  118. package/dist/tokens/color.d.ts +7 -0
  119. package/dist/tokens/color.js +40 -18
  120. package/dist/tokens/contrast-pairs.js +43 -6
  121. package/dist/tokens/contrast.js +2 -0
  122. package/dist/tokens/density.d.ts +2 -0
  123. package/dist/tokens/density.js +8 -2
  124. package/dist/tokens/grid.js +19 -18
  125. package/dist/tokens/index.d.ts +32 -22
  126. package/dist/tokens/primitives.d.ts +2 -0
  127. package/dist/tokens/primitives.js +3 -0
  128. package/dist/tokens/scale.d.ts +27 -17
  129. package/dist/tokens/scale.js +26 -14
  130. package/dist/tokens.json +92 -62
  131. package/package.json +5 -2
Binary file
@@ -43,6 +43,40 @@ export interface KpiProps extends HTMLAttributes<HTMLDivElement> {
43
43
  result?: boolean;
44
44
  }
45
45
  export declare const Kpi: import("react").ForwardRefExoticComponent<KpiProps & import("react").RefAttributes<HTMLDivElement>>;
46
+ export interface KpiChange {
47
+ /** Good or bad, never the direction: a good chip can point down. */
48
+ tone: 'good' | 'bad';
49
+ direction: 'up' | 'down';
50
+ /** The signed change, e.g. "−5,16 %". */
51
+ text: ReactNode;
52
+ /** The arrow's accessible name, e.g. "Down" (the arrow is not colour alone). */
53
+ directionLabel: string;
54
+ }
55
+ export interface KpiCardError {
56
+ message: ReactNode;
57
+ detail?: ReactNode;
58
+ retryLabel: ReactNode;
59
+ onRetry?: () => void;
60
+ }
61
+ export interface KpiCardProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
62
+ title: ReactNode;
63
+ /** The heading level of the title. Default 3. */
64
+ titleLevel?: 2 | 3 | 4 | 5 | 6;
65
+ /** The slot beside the title: the parameter badge. */
66
+ badge?: ReactNode;
67
+ value?: ReactNode;
68
+ /** The change chip; without it the card has no chip. */
69
+ change?: KpiChange;
70
+ /** The footer row; without it the card has no footer. */
71
+ comparison?: {
72
+ value: ReactNode;
73
+ period: ReactNode;
74
+ };
75
+ /** Replaces the figure, the chip and the footer. */
76
+ error?: KpiCardError;
77
+ }
78
+ /** The KPI card, variant D (spec 02 F, T71). */
79
+ export declare const KpiCard: import("react").ForwardRefExoticComponent<KpiCardProps & import("react").RefAttributes<HTMLElement>>;
46
80
  export interface CodeProps extends HTMLAttributes<HTMLDivElement> {
47
81
  /** The copy button's name ("Copy the DAX"); the button shows only with it. */
48
82
  copyLabel?: string;
@@ -1,8 +1,8 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  // React wrappers for spec 02 F: data. The grid has none: BI App writes its cells as plain DOM
3
3
  // (spec 03 §4), so it uses the classes directly.
4
- import { forwardRef, } from 'react';
5
- import { IconButton } from "./actions.js";
4
+ import { createElement, forwardRef, } from 'react';
5
+ import { Button, IconButton } from "./actions.js";
6
6
  import { Icon } from "./icon.js";
7
7
  import { Heading } from "./overlays.js";
8
8
  import { cx } from "./util.js";
@@ -25,6 +25,10 @@ export const TableToggle = forwardRef(function TableToggle({ label, expanded, cl
25
25
  export const Kpi = forwardRef(function Kpi({ value, label, secondary, result, className, ...rest }, ref) {
26
26
  return (_jsxs("div", { ref: ref, className: cx('fs-kpi', result && 'fs-kpi--result', className), ...rest, children: [_jsx("span", { className: "fs-kpi__value", children: value }), _jsx("span", { className: "fs-kpi__label", children: label }), secondary && secondary.length > 0 && (_jsx("ul", { className: "fs-kpi__secondary", role: "list", children: secondary.map((f, i) => (_jsxs("li", { className: "fs-kpi__item", children: [_jsx("span", { className: cx('fs-kpi__figure', f.tone && `fs-fig--${f.tone}`), children: f.figure }), _jsx("span", { className: "fs-kpi__figure-label", children: f.label })] }, i))) }))] }));
27
27
  });
28
+ /** The KPI card, variant D (spec 02 F, T71). */
29
+ export const KpiCard = forwardRef(function KpiCard({ title, titleLevel = 3, badge, value, change, comparison, error, className, ...rest }, ref) {
30
+ return (_jsxs("article", { ref: ref, className: cx('fs-kpi', 'fs-kpi--card', className), ...rest, children: [_jsxs("div", { className: "fs-kpi__body", children: [_jsxs("div", { className: "fs-kpi__head", children: [createElement(`h${titleLevel}`, { className: 'fs-kpi__title' }, title), badge] }), error ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: "fs-kpi__error", children: [_jsx(Icon, { name: "circle-alert" }), _jsxs("div", { className: "fs-kpi__error-text", children: [_jsx("span", { children: error.message }), error.detail && _jsx("span", { className: "fs-kpi__error-detail", children: error.detail })] })] }), _jsx("div", { className: "fs-kpi__retry", children: _jsx(Button, { icon: "refresh-cw", onClick: error.onRetry, children: error.retryLabel }) })] })) : (_jsxs(_Fragment, { children: [_jsx("div", { className: "fs-kpi__value", children: value }), change && (_jsxs("span", { className: cx('fs-kpi__change', `fs-kpi__change--${change.tone}`), children: [_jsx(Icon, { name: change.direction === 'up' ? 'arrow-up' : 'arrow-down', size: 12, label: change.directionLabel }), change.text] }))] }))] }), !error && comparison && (_jsxs("div", { className: "fs-kpi__footer", children: [_jsx("span", { className: "fs-kpi__cell", children: comparison.value }), _jsx("span", { className: "fs-kpi__cell", children: comparison.period })] }))] }));
31
+ });
28
32
  /** A code block. Children are the code, tokenised by the product into `.fs-tok-<tag>` spans. */
29
33
  export const Code = forwardRef(function Code({ copyLabel, onCopy, className, children, ...rest }, ref) {
30
34
  return (_jsxs("div", { ref: ref, className: cx('fs-code', className), ...rest, children: [_jsx("pre", { className: "fs-code__pre", children: _jsx("code", { children: children }) }), copyLabel && _jsx(IconButton, { icon: "copy", label: copyLabel, size: "row", className: "fs-code__copy", onClick: onCopy })] }));
@@ -5,7 +5,11 @@ export declare function cx(...parts: (string | false | null | undefined)[]): str
5
5
  export declare const useIsoLayoutEffect: typeof useEffect;
6
6
  /** The latest value, readable from handlers registered once. */
7
7
  export declare function useLatest<T>(value: T): RefObject<T>;
8
- /** Calls `handler` with each `type` CustomEvent's detail dispatched on `target`. */
8
+ /**
9
+ * Calls `handler` with each `type` CustomEvent's detail dispatched on `target` itself. The helpers'
10
+ * events bubble, so one from a nested block (a loader or popover inside a dialog) passes through
11
+ * here too: it is ignored (T53).
12
+ */
9
13
  export declare function useFsEvent<D>(target: RefObject<HTMLElement | null>, type: string, handler: ((detail: D) => void) | undefined): void;
10
14
  /** Puts one element into several refs: the wrapper's own and the one passed in. */
11
15
  export declare function useMergedRef<T>(...refs: (Ref<T> | undefined)[]): (el: T | null) => void;
@@ -15,14 +15,22 @@ export function useLatest(value) {
15
15
  });
16
16
  return ref;
17
17
  }
18
- /** Calls `handler` with each `type` CustomEvent's detail dispatched on `target`. */
18
+ /**
19
+ * Calls `handler` with each `type` CustomEvent's detail dispatched on `target` itself. The helpers'
20
+ * events bubble, so one from a nested block (a loader or popover inside a dialog) passes through
21
+ * here too: it is ignored (T53).
22
+ */
19
23
  export function useFsEvent(target, type, handler) {
20
24
  const latest = useLatest(handler);
21
25
  useEffect(() => {
22
26
  const el = target.current;
23
27
  if (!el)
24
28
  return;
25
- const listener = (e) => latest.current?.(e.detail);
29
+ const listener = (e) => {
30
+ if (e.target !== el)
31
+ return;
32
+ latest.current?.(e.detail);
33
+ };
26
34
  el.addEventListener(type, listener);
27
35
  return () => el.removeEventListener(type, listener);
28
36
  }, [target, type, latest]);
@@ -91,6 +91,9 @@ export declare const colorRoles: {
91
91
  'brand-wash-start': Schemed;
92
92
  'brand-wash-end': Schemed;
93
93
  'ring-halo': Schemed;
94
+ 'glass-bg': Schemed;
95
+ 'glass-bg-end': Schemed;
96
+ 'wave-glow': Schemed;
94
97
  'bg-surface': Schemed;
95
98
  'bg-page': Schemed;
96
99
  'bg-plane': Schemed;
@@ -111,6 +114,7 @@ export declare const colorRoles: {
111
114
  line: Schemed;
112
115
  'line-strong': Schemed;
113
116
  'line-control': Schemed;
117
+ 'line-control-strong': Schemed;
114
118
  'line-button': Schemed;
115
119
  };
116
120
  export type ColorRole = keyof typeof colorRoles;
@@ -120,5 +124,8 @@ export declare const shadows: {
120
124
  '1': Schemed;
121
125
  '2': Schemed;
122
126
  '3': Schemed;
127
+ drawer: Schemed;
128
+ tooltip: Schemed;
129
+ lift: Schemed;
123
130
  };
124
131
  export type ShadowKey = keyof typeof shadows;
@@ -2,16 +2,18 @@
2
2
  import { both, p, r, s } from "./values.js";
3
3
  const surfaces = {
4
4
  'bg-surface': s('#ffffff', '#0e1d45'),
5
- 'bg-page': s('#f3f7fd', p('navy-950')),
6
- 'bg-plane': s('#e9f0fb', '#050d26'),
7
- 'bg-chrome': s('#f8fbff', '#13244f'),
8
- 'bg-sunken': s('#eef3fa', '#152a5a'),
5
+ // One cool grey family on a white page (D37, T64). Dark mirrors it on the navy set: the page is the
6
+ // surface, grey-50's grounds are one navy step up (#13244f), grey-100's two (#152a5a).
7
+ 'bg-page': s('#ffffff', '#0e1d45'),
8
+ 'bg-plane': s(p('grey-50'), '#050d26'), // Grizzbi's surround is grey-50 (D37); dark stays the deepest navy, below the page
9
+ 'bg-chrome': s(p('grey-50'), '#13244f'),
10
+ 'bg-sunken': s(p('grey-50'), '#13244f'),
9
11
  'bg-hover': s('rgba(11,26,63,0.05)', 'rgba(232,238,252,0.06)'),
10
12
  'bg-active': s('rgba(11,26,63,0.09)', 'rgba(232,238,252,0.10)'),
11
- 'bg-selected': s('#e8f0fe', '#172d64'),
12
- 'bg-disabled': s('#eef3fa', '#152a5a'),
13
+ 'bg-selected': s('#e9edfc', '#172d64'),
14
+ 'bg-disabled': s(p('grey-100'), '#152a5a'),
13
15
  'bg-highlight': s('#fff6cc', '#3b3416'),
14
- 'bg-backdrop': s('rgba(11,26,63,0.40)', 'rgba(2,6,20,0.65)'),
16
+ 'bg-backdrop': s('rgba(11,26,63,0.32)', 'rgba(2,6,20,0.64)'),
15
17
  ink: s(p('navy-900'), '#e8eefc'),
16
18
  'ink-2': s('#3b4a6b', '#b9c6e2'),
17
19
  'ink-muted': s('#5b6785', '#93a1c2'),
@@ -20,31 +22,45 @@ const surfaces = {
20
22
  'ink-link': s(p('blue-600'), p('blue-300')),
21
23
  line: s('#dfe6f1', '#22356a'),
22
24
  'line-strong': s('#c9d4e6', '#30467f'),
23
- 'line-control': s('#7a88a6', '#6f81ad'),
25
+ // Edges of inputs, selects and chips: pale, accepted below 3:1 because the fill and the ring are the
26
+ // cue (D38, T65). Dark is the same navy step as `line-button`.
27
+ 'line-control': s('#d5dbe5', '#2a3e76'),
28
+ // The edge of a control with no fill and no label to identify it (dropzone, drag target, progress
29
+ // track, bar segment) and the chart "other"/zero strokes: keeps 3:1 (D38 "how to apply"). This was
30
+ // `line-control` before T65.
31
+ 'line-control-strong': s('#7a88a6', '#6f81ad'),
24
32
  // Softer, for edges that a label already identifies: secondary buttons and the segmented
25
- // control (D30). WCAG 1.4.11 doesn't ask a labelled button's edge for 3:1.
26
- 'line-button': s('#a3afc6', '#475a8b'),
33
+ // control (D30). WCAG 1.4.11 doesn't ask a labelled button's edge for 3:1. Since T64 it sits
34
+ // between `line` and `line-strong` in both schemes.
35
+ 'line-button': s('#d5dbe5', '#2a3e76'),
27
36
  };
28
37
  const accent = {
29
38
  accent: s(p('blue-600'), p('blue-300')),
30
39
  'accent-strong': s(p('blue-700'), '#c4d9ff'),
31
- 'accent-wash': s('#e8f0fe', '#172d64'),
40
+ 'accent-wash': s('#e9edfc', '#172d64'),
32
41
  'primary-bg': s(p('blue-600'), '#2d5be8'),
33
42
  'primary-bg-hover': s(p('blue-700'), '#1f4fe0'),
34
43
  'primary-ink': both('#ffffff'),
35
44
  // Darker than the accent: ring/halo stays ≥9:1 so the pair reaches 3:1 on any ground (spec 06 §3).
36
45
  ring: s(p('blue-800'), p('blue-300')),
37
46
  // The brand gradient's stops (spec 01 §3.1): decoration only, read by `--fs-gradient-brand*`.
47
+ // `start` is the deep blue and `end` the cyan; since T50 the gradient runs from `end` (top left)
48
+ // to `start`. The names stay (public API); the names are kept.
38
49
  'brand-start': s(p('blue-600'), p('blue-500')),
39
50
  'brand-end': both(p('cyan-400')),
40
51
  'brand-wash-start': s('#e8f0fe', '#13244f'),
41
52
  'brand-wash-end': s('#e3f8fb', '#0f3358'),
42
53
  'ring-halo': s('#ffffff', p('navy-950')),
54
+ // The motifs' translucent layers (spec 01 §7, 02 I): a glass panel's fill, a thin blue tint at the
55
+ // left running to a cyan one at the right (T60, D36), and the glow of the wave's dots (dark only).
56
+ 'glass-bg': s('rgba(43,124,246,0.08)', 'rgba(43,124,246,0.08)'),
57
+ 'glass-bg-end': s('rgba(20,212,224,0.10)', 'rgba(20,212,224,0.03)'),
58
+ 'wave-glow': s('transparent', 'rgba(20,212,224,0.55)'),
43
59
  };
44
60
  // Seven tones, each ink / wash / edge / fill (spec 01 §3.3).
45
61
  const tones = {
46
62
  'neutral-ink': s('#3b4a6b', '#b9c6e2'),
47
- 'neutral-wash': s('#eef3fa', '#152a5a'),
63
+ 'neutral-wash': s(p('grey-100'), '#152a5a'),
48
64
  'neutral-edge': s('#7a88a6', '#6f81ad'),
49
65
  'neutral-fill': s('#3b4a6b', '#b9c6e2'),
50
66
  'info-ink': s(p('blue-600'), p('blue-300')),
@@ -100,7 +116,7 @@ const types = {
100
116
  'type-access': s('#546e7a', '#9fb3bd'),
101
117
  };
102
118
  const values = {
103
- 'computed-bg': s('#eef3fa', '#152a5a'),
119
+ 'computed-bg': s(p('grey-100'), '#152a5a'),
104
120
  'computed-line': s('#7a88a6', '#6f81ad'),
105
121
  };
106
122
  // Editor chrome beside the syntax table (spec 01 §3.11).
@@ -132,12 +148,13 @@ const chart = {
132
148
  'chart-6': s('#0e3a6d', '#6c6bb8'),
133
149
  'chart-7': s('#648c85', '#90cead'),
134
150
  'chart-8': s('#b14e46', '#f06756'),
135
- 'chart-other': both(r('line-control')),
136
- 'chart-comparison': both(r('ink-2')),
151
+ 'chart-other': both(r('line-control-strong')),
152
+ // The previous year (D40, T76): a grey line below 3:1 on purpose; the legend and the dash are the cue. Dark keeps the old light ink.
153
+ 'chart-comparison': s('#aaaaaa', r('ink-2')),
137
154
  'chart-axis': both(r('line-strong')),
138
155
  'chart-label': both(r('ink-muted')),
139
156
  'chart-grid': both(r('line')),
140
- 'chart-zero': both(r('line-control')),
157
+ 'chart-zero': both(r('line-control-strong')),
141
158
  'chart-good': both(r('figure-good')),
142
159
  'chart-bad': both(r('figure-bad')),
143
160
  };
@@ -153,9 +170,14 @@ export const colorRoles = {
153
170
  ...chart,
154
171
  };
155
172
  export const toneNames = ['neutral', 'info', 'positive', 'caution', 'warning', 'danger', 'gap'];
156
- // Shadows: navy-tinted; dark doubles each layer's alpha on a near-black navy base (spec 01 §7). CSS name: `--fs-shadow-<n>`.
173
+ // Shadows (overlays only since T67; no card, panel or widget rests on one): navy-tinted; dark doubles each layer's alpha on a near-black navy base (spec 01 §7). CSS name: `--fs-shadow-<n>`.
157
174
  export const shadows = {
158
175
  '1': s('0 1px 2px rgba(11,26,63,0.05), 0 8px 28px rgba(31,79,224,0.08)', '0 1px 2px rgba(2,6,20,0.10), 0 8px 28px rgba(2,6,20,0.16)'),
159
176
  '2': s('0 4px 20px rgba(11,26,63,0.12)', '0 4px 20px rgba(2,6,20,0.24)'),
160
- '3': s('0 24px 64px rgba(11,26,63,0.22)', '0 24px 64px rgba(2,6,20,0.44)'),
177
+ // Overlays only (D37, T67), the canvas values; dark doubles the alpha. `3` is the dialog's.
178
+ '3': s('0 12px 32px rgba(11,26,63,0.18)', '0 12px 32px rgba(2,6,20,0.36)'),
179
+ drawer: s('-8px 0 24px rgba(11,26,63,0.12)', '-8px 0 24px rgba(2,6,20,0.24)'),
180
+ tooltip: s('0 4px 12px rgba(11,26,63,0.12)', '0 4px 12px rgba(2,6,20,0.24)'),
181
+ // The lift of a hovered interactive card (T75, the canvas's Folder board); an interactive card is the one surface that takes a shadow.
182
+ lift: s('0 2px 6px rgba(11,26,63,0.08)', '0 2px 6px rgba(2,6,20,0.16)'),
161
183
  };
@@ -10,21 +10,30 @@ export function contrastPairs() {
10
10
  const c = tokens.color[scheme];
11
11
  const g = tokens.grid[scheme];
12
12
  const sx = tokens.syntax[scheme];
13
- const add = (kind, fg, fgValue, bg, bgValue, over) => out.push({
13
+ const add = (kind, fg, fgValue, bg, bgValue, over, min) => out.push({
14
14
  scheme,
15
15
  fg,
16
16
  bg,
17
17
  fgValue,
18
18
  bgValue,
19
19
  kind,
20
- min: floors[kind],
20
+ min: min ?? floors[kind],
21
21
  ...(over ? { over: over[0], overValue: over[1] } : {}),
22
22
  });
23
- const role = (kind, fg, bg, over) => add(kind, fg, c[fg], bg, c[bg], over ? [over, c[over]] : undefined);
23
+ const role = (kind, fg, bg, over, min) => add(kind, fg, c[fg], bg, c[bg], over ? [over, c[over]] : undefined, min);
24
24
  const grid = (kind, fg, bg) => add(kind, fg === 'ink' ? 'ink' : `grid-${fg}`, fg === 'ink' ? c.ink : g[fg], bg === 'bg-surface' ? 'bg-surface' : `grid-${bg}`, bg === 'bg-surface' ? c['bg-surface'] : g[bg]);
25
- // Text: every ink on every background it is designed for.
25
+ // Text: every ink on every background it is designed for. bg-disabled is grey-100 (D37, T64), which
26
+ // also grounds page edit's row-resize strip, so the inks are held on both cool greys.
26
27
  const inks = ['ink', 'ink-2', 'ink-muted', 'ink-link'];
27
- const grounds = ['bg-surface', 'bg-page', 'bg-plane', 'bg-chrome', 'bg-sunken', 'bg-selected'];
28
+ const grounds = [
29
+ 'bg-surface',
30
+ 'bg-page',
31
+ 'bg-plane',
32
+ 'bg-chrome',
33
+ 'bg-sunken',
34
+ 'bg-selected',
35
+ 'bg-disabled',
36
+ ];
28
37
  for (const fg of inks) {
29
38
  for (const bg of grounds)
30
39
  role('text', fg, bg);
@@ -35,10 +44,20 @@ export function contrastPairs() {
35
44
  role('text', 'ink', 'brand-wash-end');
36
45
  role('text', 'ink-2', 'brand-wash-start');
37
46
  role('text', 'ink-2', 'brand-wash-end');
47
+ // The glass panel (spec 02 I): translucent, so over the page and over both ends of the wash.
48
+ // ink-muted too: fs-card__meta and fs-widget__subtitle use it on glass.
49
+ for (const fg of ['ink', 'ink-2', 'ink-muted']) {
50
+ for (const under of ['bg-page', 'brand-wash-start', 'brand-wash-end']) {
51
+ role('text', fg, 'glass-bg', under);
52
+ role('text', fg, 'glass-bg-end', under);
53
+ }
54
+ }
38
55
  role('text', 'ink', 'bg-highlight');
39
56
  role('text', 'ink', 'computed-bg');
40
57
  role('text', 'primary-ink', 'primary-bg');
41
58
  role('text', 'primary-ink', 'primary-bg-hover');
59
+ // The parameter badge (T72): accent text on the accent wash.
60
+ role('text', 'accent', 'accent-wash');
42
61
  role('text', 'figure-good', 'bg-surface');
43
62
  role('text', 'figure-bad', 'bg-surface');
44
63
  role('text', 'editor-gutter-ink', 'editor-gutter-bg');
@@ -96,9 +115,27 @@ export function contrastPairs() {
96
115
  grid('text', 'lock-other-ink', 'lock-other-bg');
97
116
  grid('non-text', 'selected', 'bg-surface');
98
117
  grid('non-text', 'chevron', 'bg-surface');
118
+ // D32: the navy input teal and editing blue carry the selection outline and the dirty/negative inks.
119
+ grid('non-text', 'selected', 'input-bg');
120
+ grid('non-text', 'selected', 'editing-bg');
121
+ grid('text', 'dirty-ink', 'editing-bg');
122
+ grid('non-text', 'chevron', 'subtotal-bg');
123
+ for (const ink of ['negative-ink', 'error-ink']) {
124
+ // Light editing-bg is BI App's own (red on it is 4.2:1, unchanged by D32), so only dark is held.
125
+ if (scheme === 'dark')
126
+ grid('text', ink, 'editing-bg');
127
+ grid('text', ink, 'subtotal-bg');
128
+ }
129
+ grid('text', 'invalid-ink', 'subtotal-bg');
130
+ grid('text', 'stale-ink', 'input-bg');
99
131
  // Non-text: edges that identify a control, the ring, meaningful icons, fills.
132
+ // D38 (T65): the pale edge of inputs, selects and chips is accepted below 3:1; the fill and the ring
133
+ // are the cue. Only these pairs get the lower expectation; it only guards against an invisible edge.
134
+ for (const bg of ['bg-surface', 'bg-chrome', 'bg-page'])
135
+ role('non-text', 'line-control', bg, undefined, 1.2);
136
+ // The edge of a control with no fill and no label keeps the 3:1 floor (D38 "how to apply").
100
137
  for (const bg of ['bg-surface', 'bg-chrome', 'bg-page'])
101
- role('non-text', 'line-control', bg);
138
+ role('non-text', 'line-control-strong', bg);
102
139
  role('non-text', 'ring', 'ring-halo');
103
140
  role('non-text', 'accent', 'bg-surface');
104
141
  role('non-text', 'warning-icon', 'bg-surface');
@@ -1,6 +1,8 @@
1
1
  // WCAG 2.1 relative-luminance contrast, for the contrast test and the gallery's ratios.
2
2
  export function parseColor(input) {
3
3
  const c = input.trim().toLowerCase();
4
+ if (c === 'transparent')
5
+ return { r: 0, g: 0, b: 0, a: 0 };
4
6
  const hex = /^#([0-9a-f]{3}|[0-9a-f]{6})$/.exec(c);
5
7
  if (hex?.[1]) {
6
8
  const h = hex[1].length === 3 ? [...hex[1]].map((x) => x + x).join('') : hex[1];
@@ -3,6 +3,8 @@ declare const dense: {
3
3
  'text-body-line': number;
4
4
  'control-h': number;
5
5
  'row-h': number;
6
+ 'table-row-h': number;
7
+ 'table-head-h': number;
6
8
  'pad-x': number;
7
9
  gap: number;
8
10
  'icon-size': number;
@@ -4,6 +4,8 @@ const dense = {
4
4
  'text-body-line': 16,
5
5
  'control-h': 24,
6
6
  'row-h': 24,
7
+ 'table-row-h': 24,
8
+ 'table-head-h': 24,
7
9
  'pad-x': 6,
8
10
  gap: 4,
9
11
  'icon-size': 16,
@@ -12,10 +14,12 @@ const dense = {
12
14
  export const densities = {
13
15
  dense,
14
16
  compact: {
15
- 'text-body-size': 13,
16
- 'text-body-line': 20,
17
+ 'text-body-size': 12,
18
+ 'text-body-line': 16,
17
19
  'control-h': 28,
18
20
  'row-h': 28,
21
+ 'table-row-h': 24,
22
+ 'table-head-h': 28,
19
23
  'pad-x': 8,
20
24
  gap: 8,
21
25
  'icon-size': 16,
@@ -26,6 +30,8 @@ export const densities = {
26
30
  'text-body-line': 24,
27
31
  'control-h': 40,
28
32
  'row-h': 36,
33
+ 'table-row-h': 36,
34
+ 'table-head-h': 36,
29
35
  'pad-x': 12,
30
36
  gap: 12,
31
37
  'icon-size': 20,
@@ -1,31 +1,32 @@
1
- // BI App's grid tokens (KEEP, D7; spec 01 §3.10). CSS name: `--fs-grid-<role>`.
1
+ // BI App's grid tokens (KEEP, D7; spec 01 §3.10). T78: the header and label fills moved to the cool grey-50 `#f7f8fa`; the line stays. CSS name: `--fs-grid-<role>`.
2
2
  // Light values are BI App's own, except the three contrast fixes BI §10 asks for (marked ✱) and the
3
- // selected-invalid fill (D20).
3
+ // selected-invalid fill (D20). The dark values are the kit's navy neutrals (D32, T51): a comment names
4
+ // the role where one matches exactly; roles can't be referenced across token tables, so values are literals.
4
5
  import { s } from "./values.js";
5
6
  export const gridRoles = {
6
- line: s('#dddddd', '#3a3936'),
7
- 'header-bg': s('#f2f2f2', '#2a2926'),
8
- 'label-bg': s('#f4f4f4', '#2a2926'),
9
- 'row-hover': s('rgba(0,0,255,0.03)', 'rgba(165,165,255,0.06)'),
10
- 'subtotal-bg': s('#eef2f7', '#263040'),
11
- 'input-bg': s('#fffde7', '#3a3520'),
12
- 'locked-ink': s('#5f5e5a', '#a3a29c'), // ✱ was #757575
13
- 'locked-bg': s('#f5f5f5', '#2c2c2a'),
7
+ line: s('#dddddd', '#22356a'), // dark = --fs-line
8
+ 'header-bg': s('#f7f8fa', '#152a5a'), // dark = --fs-bg-disabled (was bg-sunken before T64)
9
+ 'label-bg': s('#f7f8fa', '#13244f'), // dark = --fs-bg-chrome
10
+ 'row-hover': s('rgba(0,0,255,0.03)', 'rgba(232,238,252,0.06)'), // dark = --fs-bg-hover
11
+ 'subtotal-bg': s('#eef2f7', '#182f68'), // dark: a step above bg-disabled, not a role (bg-selected #172d64 means selection)
12
+ 'input-bg': s('#fffde7', '#10394a'), // dark: desaturated teal on navy, cooler than the old amber
13
+ 'locked-ink': s('#5f5e5a', '#93a1c2'), // ✱ was #757575; dark = --fs-ink-muted
14
+ 'locked-bg': s('#f5f5f5', '#050d26'), // dark = --fs-bg-plane
14
15
  'error-ink': s('#c62828', '#ff8a80'),
15
- 'error-bg': s('#fdecea', '#3d1f1d'),
16
+ 'error-bg': s('#fdecea', '#3d1a26'), // dark = --fs-danger-wash
16
17
  'negative-ink': s('#c62828', '#ff8a80'),
17
- 'stale-ink': s('#5f5e5a', '#a3a29c'), // ✱ was #757575
18
+ 'stale-ink': s('#5f5e5a', '#93a1c2'), // ✱ was #757575; dark = --fs-ink-muted
18
19
  'stale-dot': s('#f9a825', '#f9a825'),
19
20
  'dirty-ink': s('#3d3db4', '#a5a5ff'),
20
21
  'invalid-ink': s('#c62828', '#ff8a80'),
21
22
  selected: s('#3d3db4', '#8c8cff'),
22
23
  'selected-invalid-bg': s('rgba(252,0,0,0.10)', 'rgba(255,138,128,0.08)'), // D20: was 0.25, failed AA
23
- 'editing-bg': s('rgb(221,221,244)', '#2e2e52'),
24
- 'nodata-bg': s('rgba(0,0,0,0.03)', 'rgba(255,255,255,0.03)'),
25
- chevron: s('#8a8983', '#7d7c76'), // ✱ was #9e9e9e
26
- 'tree-guide': s('#d9d9d9', '#3a3936'),
24
+ 'editing-bg': s('rgb(221,221,244)', '#223a7e'), // dark: brighter blue than the input teal, under the selected outline
25
+ 'nodata-bg': s('rgba(0,0,0,0.03)', 'rgba(232,238,252,0.04)'),
26
+ chevron: s('#8a8983', '#6f81ad'), // ✱ was #9e9e9e; dark = --fs-line-control-strong
27
+ 'tree-guide': s('#d9d9d9', '#22356a'), // dark = --fs-line
27
28
  'lock-mine-ink': s('#2e7d32', '#7fc98a'),
28
- 'lock-mine-bg': s('#e8f5e9', '#1c2e20'),
29
+ 'lock-mine-bg': s('#e8f5e9', '#13382b'), // dark = --fs-positive-wash
29
30
  'lock-other-ink': s('#c62828', '#ff8a80'),
30
- 'lock-other-bg': s('#fdecea', '#3d1f1d'),
31
+ 'lock-other-bg': s('#fdecea', '#3d1a26'), // dark = --fs-danger-wash
31
32
  };
@@ -8,12 +8,12 @@ export type { ColorRole, Density, DensityToken, GridRole, Scheme, ShadowKey, Syn
8
8
  export type TextStep = keyof typeof textSteps;
9
9
  export declare const tokens: {
10
10
  readonly color: {
11
- light: Record<"bg-surface" | "bg-page" | "bg-plane" | "bg-chrome" | "bg-sunken" | "bg-hover" | "bg-active" | "bg-selected" | "bg-disabled" | "bg-highlight" | "bg-backdrop" | "ink" | "ink-2" | "ink-muted" | "ink-disabled" | "ink-on-accent" | "ink-link" | "line" | "line-strong" | "line-control" | "line-button" | "accent" | "accent-strong" | "accent-wash" | "primary-bg" | "primary-bg-hover" | "primary-ink" | "ring" | "brand-start" | "brand-end" | "brand-wash-start" | "brand-wash-end" | "ring-halo" | "neutral-ink" | "neutral-wash" | "neutral-edge" | "neutral-fill" | "info-ink" | "info-wash" | "info-edge" | "info-fill" | "positive-ink" | "positive-wash" | "positive-edge" | "positive-fill" | "caution-ink" | "caution-wash" | "caution-edge" | "caution-fill" | "warning-ink" | "warning-wash" | "warning-edge" | "warning-fill" | "warning-icon" | "danger-ink" | "danger-wash" | "danger-edge" | "danger-fill" | "gap-ink" | "gap-wash" | "gap-edge" | "gap-fill" | "gap-hatch-tint" | "figure-good" | "figure-bad" | "figure-plain" | "mark-exact-ink" | "mark-exact-wash" | "mark-exact-fill" | "mark-approx-ink" | "mark-approx-wash" | "mark-approx-fill" | "mark-none-ink" | "mark-none-wash" | "mark-none-fill" | "type-organise" | "type-view" | "type-input" | "type-model" | "type-access" | "computed-bg" | "computed-line" | "editor-gutter-bg" | "editor-gutter-ink" | "editor-gutter-line" | "editor-selection" | "editor-selection-blur" | "editor-caret" | "editor-active-line" | "editor-match" | "editor-mismatch" | "editor-lint-error" | "editor-lint-warning" | "editor-lint-refusal" | "editor-tooltip-bg" | "editor-tooltip-line" | "chart-1" | "chart-2" | "chart-3" | "chart-4" | "chart-5" | "chart-6" | "chart-7" | "chart-8" | "chart-other" | "chart-comparison" | "chart-axis" | "chart-label" | "chart-grid" | "chart-zero" | "chart-good" | "chart-bad", string>;
12
- dark: Record<"bg-surface" | "bg-page" | "bg-plane" | "bg-chrome" | "bg-sunken" | "bg-hover" | "bg-active" | "bg-selected" | "bg-disabled" | "bg-highlight" | "bg-backdrop" | "ink" | "ink-2" | "ink-muted" | "ink-disabled" | "ink-on-accent" | "ink-link" | "line" | "line-strong" | "line-control" | "line-button" | "accent" | "accent-strong" | "accent-wash" | "primary-bg" | "primary-bg-hover" | "primary-ink" | "ring" | "brand-start" | "brand-end" | "brand-wash-start" | "brand-wash-end" | "ring-halo" | "neutral-ink" | "neutral-wash" | "neutral-edge" | "neutral-fill" | "info-ink" | "info-wash" | "info-edge" | "info-fill" | "positive-ink" | "positive-wash" | "positive-edge" | "positive-fill" | "caution-ink" | "caution-wash" | "caution-edge" | "caution-fill" | "warning-ink" | "warning-wash" | "warning-edge" | "warning-fill" | "warning-icon" | "danger-ink" | "danger-wash" | "danger-edge" | "danger-fill" | "gap-ink" | "gap-wash" | "gap-edge" | "gap-fill" | "gap-hatch-tint" | "figure-good" | "figure-bad" | "figure-plain" | "mark-exact-ink" | "mark-exact-wash" | "mark-exact-fill" | "mark-approx-ink" | "mark-approx-wash" | "mark-approx-fill" | "mark-none-ink" | "mark-none-wash" | "mark-none-fill" | "type-organise" | "type-view" | "type-input" | "type-model" | "type-access" | "computed-bg" | "computed-line" | "editor-gutter-bg" | "editor-gutter-ink" | "editor-gutter-line" | "editor-selection" | "editor-selection-blur" | "editor-caret" | "editor-active-line" | "editor-match" | "editor-mismatch" | "editor-lint-error" | "editor-lint-warning" | "editor-lint-refusal" | "editor-tooltip-bg" | "editor-tooltip-line" | "chart-1" | "chart-2" | "chart-3" | "chart-4" | "chart-5" | "chart-6" | "chart-7" | "chart-8" | "chart-other" | "chart-comparison" | "chart-axis" | "chart-label" | "chart-grid" | "chart-zero" | "chart-good" | "chart-bad", string>;
11
+ light: Record<"bg-surface" | "bg-page" | "bg-plane" | "bg-chrome" | "bg-sunken" | "bg-hover" | "bg-active" | "bg-selected" | "bg-disabled" | "bg-highlight" | "bg-backdrop" | "ink" | "ink-2" | "ink-muted" | "ink-disabled" | "ink-on-accent" | "ink-link" | "line" | "line-strong" | "line-control" | "line-control-strong" | "line-button" | "accent" | "accent-strong" | "accent-wash" | "primary-bg" | "primary-bg-hover" | "primary-ink" | "ring" | "brand-start" | "brand-end" | "brand-wash-start" | "brand-wash-end" | "ring-halo" | "glass-bg" | "glass-bg-end" | "wave-glow" | "neutral-ink" | "neutral-wash" | "neutral-edge" | "neutral-fill" | "info-ink" | "info-wash" | "info-edge" | "info-fill" | "positive-ink" | "positive-wash" | "positive-edge" | "positive-fill" | "caution-ink" | "caution-wash" | "caution-edge" | "caution-fill" | "warning-ink" | "warning-wash" | "warning-edge" | "warning-fill" | "warning-icon" | "danger-ink" | "danger-wash" | "danger-edge" | "danger-fill" | "gap-ink" | "gap-wash" | "gap-edge" | "gap-fill" | "gap-hatch-tint" | "figure-good" | "figure-bad" | "figure-plain" | "mark-exact-ink" | "mark-exact-wash" | "mark-exact-fill" | "mark-approx-ink" | "mark-approx-wash" | "mark-approx-fill" | "mark-none-ink" | "mark-none-wash" | "mark-none-fill" | "type-organise" | "type-view" | "type-input" | "type-model" | "type-access" | "computed-bg" | "computed-line" | "editor-gutter-bg" | "editor-gutter-ink" | "editor-gutter-line" | "editor-selection" | "editor-selection-blur" | "editor-caret" | "editor-active-line" | "editor-match" | "editor-mismatch" | "editor-lint-error" | "editor-lint-warning" | "editor-lint-refusal" | "editor-tooltip-bg" | "editor-tooltip-line" | "chart-1" | "chart-2" | "chart-3" | "chart-4" | "chart-5" | "chart-6" | "chart-7" | "chart-8" | "chart-other" | "chart-comparison" | "chart-axis" | "chart-label" | "chart-grid" | "chart-zero" | "chart-good" | "chart-bad", string>;
12
+ dark: Record<"bg-surface" | "bg-page" | "bg-plane" | "bg-chrome" | "bg-sunken" | "bg-hover" | "bg-active" | "bg-selected" | "bg-disabled" | "bg-highlight" | "bg-backdrop" | "ink" | "ink-2" | "ink-muted" | "ink-disabled" | "ink-on-accent" | "ink-link" | "line" | "line-strong" | "line-control" | "line-control-strong" | "line-button" | "accent" | "accent-strong" | "accent-wash" | "primary-bg" | "primary-bg-hover" | "primary-ink" | "ring" | "brand-start" | "brand-end" | "brand-wash-start" | "brand-wash-end" | "ring-halo" | "glass-bg" | "glass-bg-end" | "wave-glow" | "neutral-ink" | "neutral-wash" | "neutral-edge" | "neutral-fill" | "info-ink" | "info-wash" | "info-edge" | "info-fill" | "positive-ink" | "positive-wash" | "positive-edge" | "positive-fill" | "caution-ink" | "caution-wash" | "caution-edge" | "caution-fill" | "warning-ink" | "warning-wash" | "warning-edge" | "warning-fill" | "warning-icon" | "danger-ink" | "danger-wash" | "danger-edge" | "danger-fill" | "gap-ink" | "gap-wash" | "gap-edge" | "gap-fill" | "gap-hatch-tint" | "figure-good" | "figure-bad" | "figure-plain" | "mark-exact-ink" | "mark-exact-wash" | "mark-exact-fill" | "mark-approx-ink" | "mark-approx-wash" | "mark-approx-fill" | "mark-none-ink" | "mark-none-wash" | "mark-none-fill" | "type-organise" | "type-view" | "type-input" | "type-model" | "type-access" | "computed-bg" | "computed-line" | "editor-gutter-bg" | "editor-gutter-ink" | "editor-gutter-line" | "editor-selection" | "editor-selection-blur" | "editor-caret" | "editor-active-line" | "editor-match" | "editor-mismatch" | "editor-lint-error" | "editor-lint-warning" | "editor-lint-refusal" | "editor-tooltip-bg" | "editor-tooltip-line" | "chart-1" | "chart-2" | "chart-3" | "chart-4" | "chart-5" | "chart-6" | "chart-7" | "chart-8" | "chart-other" | "chart-comparison" | "chart-axis" | "chart-label" | "chart-grid" | "chart-zero" | "chart-good" | "chart-bad", string>;
13
13
  };
14
14
  readonly shadow: {
15
- light: Record<"1" | "2" | "3", string>;
16
- dark: Record<"1" | "2" | "3", string>;
15
+ light: Record<"1" | "2" | "3" | "drawer" | "tooltip" | "lift", string>;
16
+ dark: Record<"1" | "2" | "3" | "drawer" | "tooltip" | "lift", string>;
17
17
  };
18
18
  readonly grid: {
19
19
  light: Record<"line" | "header-bg" | "label-bg" | "row-hover" | "subtotal-bg" | "input-bg" | "locked-ink" | "locked-bg" | "error-ink" | "error-bg" | "negative-ink" | "stale-ink" | "stale-dot" | "dirty-ink" | "invalid-ink" | "selected" | "selected-invalid-bg" | "editing-bg" | "nodata-bg" | "chevron" | "tree-guide" | "lock-mine-ink" | "lock-mine-bg" | "lock-other-ink" | "lock-other-bg", string>;
@@ -23,7 +23,7 @@ export declare const tokens: {
23
23
  light: Record<"string" | "number" | "function" | "keyword" | "operator" | "variableName" | "propertyName" | "typeName" | "bool" | "null" | "comment" | "punctuation" | "bracket" | "angleBracket" | "tagName" | "attributeName" | "attributeValue" | "content" | "meta" | "invalid", string>;
24
24
  dark: Record<"string" | "number" | "function" | "keyword" | "operator" | "variableName" | "propertyName" | "typeName" | "bool" | "null" | "comment" | "punctuation" | "bracket" | "angleBracket" | "tagName" | "attributeName" | "attributeValue" | "content" | "meta" | "invalid", string>;
25
25
  };
26
- readonly density: Record<Density, Record<"gap" | "text-body-size" | "text-body-line" | "control-h" | "row-h" | "pad-x" | "icon-size" | "cell-pad-x", number>>;
26
+ readonly density: Record<Density, Record<"gap" | "text-body-size" | "text-body-line" | "control-h" | "row-h" | "table-row-h" | "table-head-h" | "pad-x" | "icon-size" | "cell-pad-x", number>>;
27
27
  readonly font: {
28
28
  readonly sans: "\"Inter\", system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif";
29
29
  readonly display: "\"Plus Jakarta Sans\", \"Inter\", system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif";
@@ -52,28 +52,28 @@ export declare const tokens: {
52
52
  readonly line: 24;
53
53
  };
54
54
  readonly lg: {
55
- readonly size: 18;
56
- readonly line: 26;
55
+ readonly size: 16;
56
+ readonly line: 24;
57
57
  };
58
58
  readonly xl: {
59
- readonly size: 20;
60
- readonly line: 28;
59
+ readonly size: 24;
60
+ readonly line: 32;
61
61
  };
62
62
  readonly '2xl': {
63
63
  readonly size: 26;
64
64
  readonly line: 32;
65
65
  };
66
66
  readonly 'fig-sm': {
67
- readonly size: 22;
68
- readonly line: 26;
67
+ readonly size: 20;
68
+ readonly line: 24;
69
69
  };
70
70
  readonly 'fig-md': {
71
- readonly size: 26;
72
- readonly line: 30;
71
+ readonly size: 22;
72
+ readonly line: 28;
73
73
  };
74
74
  readonly 'fig-lg': {
75
- readonly size: 32;
76
- readonly line: 36;
75
+ readonly size: 24;
76
+ readonly line: 32;
77
77
  };
78
78
  readonly 'fig-xl': {
79
79
  readonly size: 40;
@@ -107,15 +107,15 @@ export declare const tokens: {
107
107
  readonly '12': 48;
108
108
  };
109
109
  readonly radius: {
110
- readonly sm: 6;
111
- readonly md: 10;
112
- readonly lg: 16;
113
- readonly xl: 20;
110
+ readonly sm: 4;
111
+ readonly md: 4;
112
+ readonly lg: 0;
113
+ readonly xl: 0;
114
114
  readonly pill: 999;
115
115
  };
116
116
  readonly size: {
117
117
  readonly appbar: 48;
118
- readonly tabbar: 28;
118
+ readonly tabbar: 40;
119
119
  readonly pagetabs: 40;
120
120
  readonly nav: 240;
121
121
  readonly pane: 272;
@@ -130,11 +130,20 @@ export declare const tokens: {
130
130
  readonly 'content-md': 900;
131
131
  readonly 'content-sm': 736;
132
132
  readonly touch: 24;
133
+ readonly 'page-top': 24;
134
+ readonly 'page-x': 32;
135
+ readonly 'page-bottom': 32;
136
+ readonly 'page-gap': 24;
137
+ readonly 'page-header-gap': 12;
138
+ readonly 'page-header-after': 32;
139
+ readonly 'page-caption-gap': 4;
140
+ readonly 'widget-gap': 8;
133
141
  };
134
142
  readonly sizeEm: {
135
143
  readonly 'input-sm': 10;
136
144
  };
137
145
  readonly line: {
146
+ readonly 'glass-blur': 16;
138
147
  readonly 'line-width': 1;
139
148
  readonly 'ring-width': 2;
140
149
  readonly 'ring-halo-width': 2;
@@ -168,11 +177,12 @@ export declare const tokens: {
168
177
  readonly 'gap-hatch-sm': "repeating-linear-gradient(135deg, var(--fs-gap-hatch-tint) 0 5px, transparent 5px 11px)";
169
178
  };
170
179
  readonly gradient: {
171
- readonly 'gradient-brand': "linear-gradient(135deg, var(--fs-brand-start), var(--fs-brand-end))";
172
- readonly 'gradient-brand-soft': "linear-gradient(135deg, var(--fs-brand-wash-start), var(--fs-brand-wash-end))";
180
+ readonly 'gradient-brand': "linear-gradient(135deg, var(--fs-brand-end), var(--fs-brand-start))";
181
+ readonly 'gradient-brand-soft': "linear-gradient(135deg, var(--fs-brand-wash-end), var(--fs-brand-wash-start))";
173
182
  };
174
183
  readonly chart: {
175
184
  readonly 'chart-area-alpha': 0.18;
185
+ readonly 'chart-series-alpha': 0.6;
176
186
  };
177
187
  };
178
188
  export type Tokens = typeof tokens;
@@ -9,5 +9,7 @@ export declare const primitives: {
9
9
  readonly 'navy-950': "#071233";
10
10
  readonly 'orange-500': "#f26b1d";
11
11
  readonly 'orange-600': "#d85a10";
12
+ readonly 'grey-50': "#f7f8fa";
13
+ readonly 'grey-100': "#eef1f5";
12
14
  };
13
15
  export type Primitive = keyof typeof primitives;
@@ -10,4 +10,7 @@ export const primitives = {
10
10
  'navy-950': '#071233',
11
11
  'orange-500': '#f26b1d',
12
12
  'orange-600': '#d85a10',
13
+ // The cool grey family (D37, T64): the light grounds next to white.
14
+ 'grey-50': '#f7f8fa',
15
+ 'grey-100': '#eef1f5',
13
16
  };