@highlanderrobotics/magnolia-tokens 0.0.0-stage → 2.0.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/CHANGELOG.md ADDED
@@ -0,0 +1,23 @@
1
+ # @highlanderrobotics/magnolia-tokens
2
+
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Release Magnolia UI v2 with shared dark and light themes, Comfortable and Compact densities, and opt-in v2 components, icons, and token exports. Existing root entry points remain available for compatibility.
8
+
9
+ ### Minor Changes
10
+
11
+ - 98c1698: Add Tooltip, Popover, pill Tabs, persistent Toast, native-details Accordion, Combobox, MultiSelect, sortable Table and Pagination for Svelte. Add Radio, modal Select, Dialog and async action Menu for React Native. Reuse the Figma field/menu/Pill foundations, including the tab strip's measured 7px gap. Document keyboard, form, focus and platform contracts with runnable examples and accessibility tests. Lovat consumer dependencies remain unchanged.
12
+
13
+ ## 0.2.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 9755af6: Align visible control dimensions, state colors, switch geometry and original selection artwork with the Lovat Figma components. Add selectable Pill controls and a source-linked comparison gallery with self-hosted fonts. Preserve larger activation areas, accessible contrast and native platform behavior; Lovat consumer dependencies are unchanged.
18
+
19
+ ## 0.1.0
20
+
21
+ ### Minor Changes
22
+
23
+ - Introduce the cross-platform Magnolia design system with generated tokens, Svelte 5 accessible controls, native React Native controls and a Starlight theme adapter. Consumer migrations are deferred.
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # Temporary Holding Version
1
+ # Magnolia UI — tokens
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Part of [Highlander Robotics Magnolia UI](https://github.com/HighlanderRobotics/magnolia-ui). See the repository README and docs for installation, component contracts, token API, migration and release gates. Fonts and application logic remain application-owned. Package version does not imply a published registry release.
@@ -0,0 +1,274 @@
1
+ export declare const tokens: {
2
+ readonly $schema: "./schema.json";
3
+ readonly version: 1;
4
+ readonly palette: {
5
+ readonly white: "#ffffff";
6
+ readonly black: "#000000";
7
+ readonly "light-victory-purple": "#350868";
8
+ readonly "light-victory-purple-hover": "#5a3b7d";
9
+ readonly "light-victory-purple-faded": "#a59ab0";
10
+ readonly "light-on-victory-purple-faded": "#dbd7df";
11
+ readonly "light-danger": "#9e2c2c";
12
+ readonly "light-danger-hover": "#772727";
13
+ readonly "light-danger-faded": "#9d7979";
14
+ readonly "light-on-danger-faded": "#d8c9c9";
15
+ readonly "light-light-gray": "#dbdbdb";
16
+ readonly "light-light-gray-hover": "#b4b4b4";
17
+ readonly "light-light-gray-faded": "#dddddd";
18
+ readonly "light-on-light-gray-faded": "#909090";
19
+ readonly "light-secondary-container": "#ffffff";
20
+ readonly "light-background": "#f5f5f5";
21
+ readonly "light-on-background": "#000000";
22
+ readonly "light-body": "#454545";
23
+ readonly "light-placeholder": "#828282";
24
+ readonly "dark-victory-purple": "#b59aff";
25
+ readonly "dark-victory-purple-hover": "#bbaaf0";
26
+ readonly "dark-victory-purple-faded": "#564b75";
27
+ readonly "dark-on-victory-purple-faded": "#1f1f1f";
28
+ readonly "dark-danger": "#b13b3b";
29
+ readonly "dark-danger-hover": "#ab5858";
30
+ readonly "dark-danger-faded": "#563333";
31
+ readonly "dark-on-danger-faded": "#746767";
32
+ readonly "dark-light-gray": "#424242";
33
+ readonly "dark-light-gray-hover": "#585858";
34
+ readonly "dark-light-gray-faded": "#2d2d2d";
35
+ readonly "dark-on-light-gray-faded": "#5f5f5f";
36
+ readonly "dark-secondary-container": "#292929";
37
+ readonly "dark-background": "#1f1f1f";
38
+ readonly "dark-on-background": "#e0e0e0";
39
+ readonly "dark-body": "#b8b8b8";
40
+ readonly "dark-placeholder": "#626262";
41
+ };
42
+ readonly themes: {
43
+ readonly light: {
44
+ readonly primary: "#350868";
45
+ readonly primaryHover: "#5a3b7d";
46
+ readonly primaryDisabled: "#a59ab0";
47
+ readonly secondary: "#dbdbdb";
48
+ readonly secondaryHover: "#b4b4b4";
49
+ readonly secondaryDisabled: "#dddddd";
50
+ readonly surface: "#ffffff";
51
+ readonly background: "#f5f5f5";
52
+ readonly onBackground: "#000000";
53
+ readonly muted: "#454545";
54
+ readonly onPrimary: "#f5f5f5";
55
+ readonly onSecondary: "#000000";
56
+ readonly danger: "#9e2c2c";
57
+ readonly dangerHover: "#772727";
58
+ readonly onDanger: "#ffffff";
59
+ readonly errorText: "#9e2c2c";
60
+ readonly outline: "#828282";
61
+ readonly placeholder: "#666666";
62
+ readonly focus: "#350868";
63
+ readonly disabledText: "#909090";
64
+ readonly disabledSurface: "#dddddd";
65
+ readonly onPrimaryDisabled: "#dbd7df";
66
+ readonly onSecondaryDisabled: "#909090";
67
+ readonly dangerDisabled: "#9d7979";
68
+ readonly onDangerDisabled: "#d8c9c9";
69
+ readonly fieldDisabledBackground: "#f5f5f5";
70
+ readonly fieldDisabledBorder: "#dddddd";
71
+ readonly fieldDisabledText: "#b4b4b4";
72
+ readonly fieldDisabledPlaceholder: "#dddddd";
73
+ readonly switchThumb: "#ffffff";
74
+ readonly selectionDisabledLabel: "#828282";
75
+ readonly selectionDisabledBackground: "#f5f5f5";
76
+ readonly selectionDisabledBorder: "#eeeeee";
77
+ readonly menuText: "#000000";
78
+ readonly pillPrimaryActive: "#bbaaf0";
79
+ readonly pillOnPrimaryActive: "#1f1f1f";
80
+ readonly pillSecondaryActive: "#292929";
81
+ readonly pillOnSecondaryActive: "#e0e0e0";
82
+ };
83
+ readonly dark: {
84
+ readonly primary: "#b59aff";
85
+ readonly primaryHover: "#bbaaf0";
86
+ readonly primaryDisabled: "#564b75";
87
+ readonly secondary: "#424242";
88
+ readonly secondaryHover: "#585858";
89
+ readonly secondaryDisabled: "#2d2d2d";
90
+ readonly surface: "#292929";
91
+ readonly background: "#1f1f1f";
92
+ readonly onBackground: "#e0e0e0";
93
+ readonly muted: "#b8b8b8";
94
+ readonly onPrimary: "#1f1f1f";
95
+ readonly onSecondary: "#e0e0e0";
96
+ readonly danger: "#b13b3b";
97
+ readonly dangerHover: "#963333";
98
+ readonly onDanger: "#ffffff";
99
+ readonly errorText: "#ffb4ab";
100
+ readonly outline: "#929292";
101
+ readonly placeholder: "#a3a3a3";
102
+ readonly focus: "#b59aff";
103
+ readonly disabledText: "#929292";
104
+ readonly disabledSurface: "#2d2d2d";
105
+ readonly onPrimaryDisabled: "#1f1f1f";
106
+ readonly onSecondaryDisabled: "#5f5f5f";
107
+ readonly dangerDisabled: "#563333";
108
+ readonly onDangerDisabled: "#746767";
109
+ readonly fieldDisabledBackground: "#1f1f1f";
110
+ readonly fieldDisabledBorder: "#2d2d2d";
111
+ readonly fieldDisabledText: "#585858";
112
+ readonly fieldDisabledPlaceholder: "#424242";
113
+ readonly switchThumb: "#1f1f1f";
114
+ readonly selectionDisabledLabel: "#404040";
115
+ readonly selectionDisabledBackground: "#212121";
116
+ readonly selectionDisabledBorder: "#272727";
117
+ readonly menuText: "#cccccc";
118
+ readonly pillPrimaryActive: "#bbaaf0";
119
+ readonly pillOnPrimaryActive: "#1f1f1f";
120
+ readonly pillSecondaryActive: "#292929";
121
+ readonly pillOnSecondaryActive: "#e0e0e0";
122
+ };
123
+ };
124
+ readonly material: {
125
+ readonly light: {
126
+ readonly primary: "#350868";
127
+ readonly onPrimary: "#ffffff";
128
+ readonly primaryContainer: "#f3e9ff";
129
+ readonly onPrimaryContainer: "#350868";
130
+ readonly secondary: "#350868";
131
+ readonly onSecondary: "#ffffff";
132
+ readonly secondaryContainer: "#f3e9ff";
133
+ readonly onSecondaryContainer: "#350868";
134
+ readonly tertiary: "#350868";
135
+ readonly onTertiary: "#ffffff";
136
+ readonly tertiaryContainer: "#f3e9ff";
137
+ readonly onTertiaryContainer: "#350868";
138
+ readonly error: "#ba1a1a";
139
+ readonly errorContainer: "#ffdad6";
140
+ readonly onError: "#ffffff";
141
+ readonly onErrorContainer: "#410002";
142
+ readonly surface: "#fffbff";
143
+ readonly onSurface: "#1d1b1e";
144
+ readonly surfaceContainerHighest: "#dbdbdb";
145
+ readonly onSurfaceVariant: "#000000";
146
+ readonly outline: "#7d747e";
147
+ readonly onInverseSurface: "#f6eff3";
148
+ readonly inverseSurface: "#332f33";
149
+ readonly inversePrimary: "#e6b4ff";
150
+ readonly shadow: "#000000";
151
+ readonly surfaceTint: "#7e469f";
152
+ };
153
+ readonly dark: {
154
+ readonly primary: "#b59aff";
155
+ readonly onPrimary: "#1f1f1f";
156
+ readonly primaryContainer: "#282334";
157
+ readonly onPrimaryContainer: "#b59aff";
158
+ readonly secondary: "#b59aff";
159
+ readonly onSecondary: "#1f1f1f";
160
+ readonly secondaryContainer: "#282334";
161
+ readonly onSecondaryContainer: "#b59aff";
162
+ readonly tertiary: "#b59aff";
163
+ readonly onTertiary: "#1f1f1f";
164
+ readonly tertiaryContainer: "#282334";
165
+ readonly onTertiaryContainer: "#b59aff";
166
+ readonly error: "#ffb4ab";
167
+ readonly errorContainer: "#93000a";
168
+ readonly onError: "#690005";
169
+ readonly onErrorContainer: "#ffdad6";
170
+ readonly surface: "#1f1f1f";
171
+ readonly onSurface: "#e8e0e5";
172
+ readonly surfaceContainerHighest: "#292929";
173
+ readonly onSurfaceVariant: "#cccccc";
174
+ readonly outline: "#978e98";
175
+ readonly onInverseSurface: "#1d1b1e";
176
+ readonly inverseSurface: "#e8e0e5";
177
+ readonly inversePrimary: "#7e469f";
178
+ readonly shadow: "#000000";
179
+ readonly surfaceTint: "#e6b4ff";
180
+ readonly outlineVariant: "#4b444d";
181
+ };
182
+ };
183
+ readonly frc: {
184
+ readonly light: {
185
+ readonly redAlliance: "#ce8c8c";
186
+ readonly onRedAlliance: "#6b3232";
187
+ readonly blueAlliance: "#8a92d1";
188
+ readonly onBlueAlliance: "#2b325c";
189
+ };
190
+ readonly dark: {
191
+ readonly redAlliance: "#793f3f";
192
+ readonly onRedAlliance: "#d0a2a2";
193
+ readonly blueAlliance: "#364077";
194
+ readonly onBlueAlliance: "#a2a7d0";
195
+ };
196
+ };
197
+ readonly spacing: {
198
+ readonly xs: 4;
199
+ readonly sm: 8;
200
+ readonly md: 12;
201
+ readonly lg: 16;
202
+ readonly xl: 24;
203
+ readonly xxl: 32;
204
+ };
205
+ readonly radius: {
206
+ readonly compact: 5;
207
+ readonly control: 7;
208
+ readonly dialog: 14;
209
+ };
210
+ readonly typography: {
211
+ readonly family: "Heebo";
212
+ readonly body: 16;
213
+ readonly small: 14;
214
+ readonly title: 24;
215
+ readonly lineHeight: 1.5;
216
+ };
217
+ readonly motion: {
218
+ readonly fast: 100;
219
+ readonly normal: 150;
220
+ readonly slow: 200;
221
+ readonly reduced: 0;
222
+ };
223
+ readonly density: {
224
+ readonly comfortable: {
225
+ readonly paddingY: 10;
226
+ readonly paddingX: 20;
227
+ readonly fontSize: 16;
228
+ readonly radius: 7;
229
+ readonly target: 48;
230
+ readonly visualHeight: 44;
231
+ readonly fieldPaddingX: 14;
232
+ readonly selectionSize: 24;
233
+ readonly selectionGap: 10;
234
+ readonly selectionRadius: 5;
235
+ readonly menuPaddingX: 14;
236
+ readonly menuPaddingY: 8;
237
+ };
238
+ readonly compact: {
239
+ readonly paddingY: 6;
240
+ readonly paddingX: 12;
241
+ readonly fontSize: 14;
242
+ readonly radius: 5;
243
+ readonly target: 44;
244
+ readonly visualHeight: 33;
245
+ readonly fieldPaddingX: 10;
246
+ readonly selectionSize: 18;
247
+ readonly selectionGap: 8;
248
+ readonly selectionRadius: 4;
249
+ readonly menuPaddingX: 10;
250
+ readonly menuPaddingY: 6;
251
+ };
252
+ };
253
+ readonly controls: {
254
+ readonly switchWidth: 58;
255
+ readonly switchHeight: 34;
256
+ readonly switchThumb: 28;
257
+ readonly switchInset: 3;
258
+ readonly switchTravel: 24;
259
+ readonly pillPaddingX: 10;
260
+ readonly pillPaddingY: 7;
261
+ readonly pillRadius: 7;
262
+ readonly selectionFontSize: 14;
263
+ readonly selectArrowWidth: 12.5;
264
+ readonly selectArrowHeight: 6.25;
265
+ readonly menuWidth: 222;
266
+ readonly menuMaxHeight: 140;
267
+ readonly switchThumbDisabledLightOpacity: 0.7;
268
+ readonly switchThumbDisabledDarkOpacity: 0.6;
269
+ readonly selectionCompactDarkRadius: 5;
270
+ readonly tabGap: 7;
271
+ };
272
+ };
273
+ export type ThemeMode = keyof typeof tokens.themes;
274
+ export type Density = keyof typeof tokens.density;
@@ -0,0 +1,273 @@
1
+ /* Generated from packages/tokens/tokens.json. Do not edit. */
2
+ export const tokens = {
3
+ "$schema": "./schema.json",
4
+ "version": 1,
5
+ "palette": {
6
+ "white": "#ffffff",
7
+ "black": "#000000",
8
+ "light-victory-purple": "#350868",
9
+ "light-victory-purple-hover": "#5a3b7d",
10
+ "light-victory-purple-faded": "#a59ab0",
11
+ "light-on-victory-purple-faded": "#dbd7df",
12
+ "light-danger": "#9e2c2c",
13
+ "light-danger-hover": "#772727",
14
+ "light-danger-faded": "#9d7979",
15
+ "light-on-danger-faded": "#d8c9c9",
16
+ "light-light-gray": "#dbdbdb",
17
+ "light-light-gray-hover": "#b4b4b4",
18
+ "light-light-gray-faded": "#dddddd",
19
+ "light-on-light-gray-faded": "#909090",
20
+ "light-secondary-container": "#ffffff",
21
+ "light-background": "#f5f5f5",
22
+ "light-on-background": "#000000",
23
+ "light-body": "#454545",
24
+ "light-placeholder": "#828282",
25
+ "dark-victory-purple": "#b59aff",
26
+ "dark-victory-purple-hover": "#bbaaf0",
27
+ "dark-victory-purple-faded": "#564b75",
28
+ "dark-on-victory-purple-faded": "#1f1f1f",
29
+ "dark-danger": "#b13b3b",
30
+ "dark-danger-hover": "#ab5858",
31
+ "dark-danger-faded": "#563333",
32
+ "dark-on-danger-faded": "#746767",
33
+ "dark-light-gray": "#424242",
34
+ "dark-light-gray-hover": "#585858",
35
+ "dark-light-gray-faded": "#2d2d2d",
36
+ "dark-on-light-gray-faded": "#5f5f5f",
37
+ "dark-secondary-container": "#292929",
38
+ "dark-background": "#1f1f1f",
39
+ "dark-on-background": "#e0e0e0",
40
+ "dark-body": "#b8b8b8",
41
+ "dark-placeholder": "#626262"
42
+ },
43
+ "themes": {
44
+ "light": {
45
+ "primary": "#350868",
46
+ "primaryHover": "#5a3b7d",
47
+ "primaryDisabled": "#a59ab0",
48
+ "secondary": "#dbdbdb",
49
+ "secondaryHover": "#b4b4b4",
50
+ "secondaryDisabled": "#dddddd",
51
+ "surface": "#ffffff",
52
+ "background": "#f5f5f5",
53
+ "onBackground": "#000000",
54
+ "muted": "#454545",
55
+ "onPrimary": "#f5f5f5",
56
+ "onSecondary": "#000000",
57
+ "danger": "#9e2c2c",
58
+ "dangerHover": "#772727",
59
+ "onDanger": "#ffffff",
60
+ "errorText": "#9e2c2c",
61
+ "outline": "#828282",
62
+ "placeholder": "#666666",
63
+ "focus": "#350868",
64
+ "disabledText": "#909090",
65
+ "disabledSurface": "#dddddd",
66
+ "onPrimaryDisabled": "#dbd7df",
67
+ "onSecondaryDisabled": "#909090",
68
+ "dangerDisabled": "#9d7979",
69
+ "onDangerDisabled": "#d8c9c9",
70
+ "fieldDisabledBackground": "#f5f5f5",
71
+ "fieldDisabledBorder": "#dddddd",
72
+ "fieldDisabledText": "#b4b4b4",
73
+ "fieldDisabledPlaceholder": "#dddddd",
74
+ "switchThumb": "#ffffff",
75
+ "selectionDisabledLabel": "#828282",
76
+ "selectionDisabledBackground": "#f5f5f5",
77
+ "selectionDisabledBorder": "#eeeeee",
78
+ "menuText": "#000000",
79
+ "pillPrimaryActive": "#bbaaf0",
80
+ "pillOnPrimaryActive": "#1f1f1f",
81
+ "pillSecondaryActive": "#292929",
82
+ "pillOnSecondaryActive": "#e0e0e0"
83
+ },
84
+ "dark": {
85
+ "primary": "#b59aff",
86
+ "primaryHover": "#bbaaf0",
87
+ "primaryDisabled": "#564b75",
88
+ "secondary": "#424242",
89
+ "secondaryHover": "#585858",
90
+ "secondaryDisabled": "#2d2d2d",
91
+ "surface": "#292929",
92
+ "background": "#1f1f1f",
93
+ "onBackground": "#e0e0e0",
94
+ "muted": "#b8b8b8",
95
+ "onPrimary": "#1f1f1f",
96
+ "onSecondary": "#e0e0e0",
97
+ "danger": "#b13b3b",
98
+ "dangerHover": "#963333",
99
+ "onDanger": "#ffffff",
100
+ "errorText": "#ffb4ab",
101
+ "outline": "#929292",
102
+ "placeholder": "#a3a3a3",
103
+ "focus": "#b59aff",
104
+ "disabledText": "#929292",
105
+ "disabledSurface": "#2d2d2d",
106
+ "onPrimaryDisabled": "#1f1f1f",
107
+ "onSecondaryDisabled": "#5f5f5f",
108
+ "dangerDisabled": "#563333",
109
+ "onDangerDisabled": "#746767",
110
+ "fieldDisabledBackground": "#1f1f1f",
111
+ "fieldDisabledBorder": "#2d2d2d",
112
+ "fieldDisabledText": "#585858",
113
+ "fieldDisabledPlaceholder": "#424242",
114
+ "switchThumb": "#1f1f1f",
115
+ "selectionDisabledLabel": "#404040",
116
+ "selectionDisabledBackground": "#212121",
117
+ "selectionDisabledBorder": "#272727",
118
+ "menuText": "#cccccc",
119
+ "pillPrimaryActive": "#bbaaf0",
120
+ "pillOnPrimaryActive": "#1f1f1f",
121
+ "pillSecondaryActive": "#292929",
122
+ "pillOnSecondaryActive": "#e0e0e0"
123
+ }
124
+ },
125
+ "material": {
126
+ "light": {
127
+ "primary": "#350868",
128
+ "onPrimary": "#ffffff",
129
+ "primaryContainer": "#f3e9ff",
130
+ "onPrimaryContainer": "#350868",
131
+ "secondary": "#350868",
132
+ "onSecondary": "#ffffff",
133
+ "secondaryContainer": "#f3e9ff",
134
+ "onSecondaryContainer": "#350868",
135
+ "tertiary": "#350868",
136
+ "onTertiary": "#ffffff",
137
+ "tertiaryContainer": "#f3e9ff",
138
+ "onTertiaryContainer": "#350868",
139
+ "error": "#ba1a1a",
140
+ "errorContainer": "#ffdad6",
141
+ "onError": "#ffffff",
142
+ "onErrorContainer": "#410002",
143
+ "surface": "#fffbff",
144
+ "onSurface": "#1d1b1e",
145
+ "surfaceContainerHighest": "#dbdbdb",
146
+ "onSurfaceVariant": "#000000",
147
+ "outline": "#7d747e",
148
+ "onInverseSurface": "#f6eff3",
149
+ "inverseSurface": "#332f33",
150
+ "inversePrimary": "#e6b4ff",
151
+ "shadow": "#000000",
152
+ "surfaceTint": "#7e469f"
153
+ },
154
+ "dark": {
155
+ "primary": "#b59aff",
156
+ "onPrimary": "#1f1f1f",
157
+ "primaryContainer": "#282334",
158
+ "onPrimaryContainer": "#b59aff",
159
+ "secondary": "#b59aff",
160
+ "onSecondary": "#1f1f1f",
161
+ "secondaryContainer": "#282334",
162
+ "onSecondaryContainer": "#b59aff",
163
+ "tertiary": "#b59aff",
164
+ "onTertiary": "#1f1f1f",
165
+ "tertiaryContainer": "#282334",
166
+ "onTertiaryContainer": "#b59aff",
167
+ "error": "#ffb4ab",
168
+ "errorContainer": "#93000a",
169
+ "onError": "#690005",
170
+ "onErrorContainer": "#ffdad6",
171
+ "surface": "#1f1f1f",
172
+ "onSurface": "#e8e0e5",
173
+ "surfaceContainerHighest": "#292929",
174
+ "onSurfaceVariant": "#cccccc",
175
+ "outline": "#978e98",
176
+ "onInverseSurface": "#1d1b1e",
177
+ "inverseSurface": "#e8e0e5",
178
+ "inversePrimary": "#7e469f",
179
+ "shadow": "#000000",
180
+ "surfaceTint": "#e6b4ff",
181
+ "outlineVariant": "#4b444d"
182
+ }
183
+ },
184
+ "frc": {
185
+ "light": {
186
+ "redAlliance": "#ce8c8c",
187
+ "onRedAlliance": "#6b3232",
188
+ "blueAlliance": "#8a92d1",
189
+ "onBlueAlliance": "#2b325c"
190
+ },
191
+ "dark": {
192
+ "redAlliance": "#793f3f",
193
+ "onRedAlliance": "#d0a2a2",
194
+ "blueAlliance": "#364077",
195
+ "onBlueAlliance": "#a2a7d0"
196
+ }
197
+ },
198
+ "spacing": {
199
+ "xs": 4,
200
+ "sm": 8,
201
+ "md": 12,
202
+ "lg": 16,
203
+ "xl": 24,
204
+ "xxl": 32
205
+ },
206
+ "radius": {
207
+ "compact": 5,
208
+ "control": 7,
209
+ "dialog": 14
210
+ },
211
+ "typography": {
212
+ "family": "Heebo",
213
+ "body": 16,
214
+ "small": 14,
215
+ "title": 24,
216
+ "lineHeight": 1.5
217
+ },
218
+ "motion": {
219
+ "fast": 100,
220
+ "normal": 150,
221
+ "slow": 200,
222
+ "reduced": 0
223
+ },
224
+ "density": {
225
+ "comfortable": {
226
+ "paddingY": 10,
227
+ "paddingX": 20,
228
+ "fontSize": 16,
229
+ "radius": 7,
230
+ "target": 48,
231
+ "visualHeight": 44,
232
+ "fieldPaddingX": 14,
233
+ "selectionSize": 24,
234
+ "selectionGap": 10,
235
+ "selectionRadius": 5,
236
+ "menuPaddingX": 14,
237
+ "menuPaddingY": 8
238
+ },
239
+ "compact": {
240
+ "paddingY": 6,
241
+ "paddingX": 12,
242
+ "fontSize": 14,
243
+ "radius": 5,
244
+ "target": 44,
245
+ "visualHeight": 33,
246
+ "fieldPaddingX": 10,
247
+ "selectionSize": 18,
248
+ "selectionGap": 8,
249
+ "selectionRadius": 4,
250
+ "menuPaddingX": 10,
251
+ "menuPaddingY": 6
252
+ }
253
+ },
254
+ "controls": {
255
+ "switchWidth": 58,
256
+ "switchHeight": 34,
257
+ "switchThumb": 28,
258
+ "switchInset": 3,
259
+ "switchTravel": 24,
260
+ "pillPaddingX": 10,
261
+ "pillPaddingY": 7,
262
+ "pillRadius": 7,
263
+ "selectionFontSize": 14,
264
+ "selectArrowWidth": 12.5,
265
+ "selectArrowHeight": 6.25,
266
+ "menuWidth": 222,
267
+ "menuMaxHeight": 140,
268
+ "switchThumbDisabledLightOpacity": 0.7,
269
+ "switchThumbDisabledDarkOpacity": 0.6,
270
+ "selectionCompactDarkRadius": 5,
271
+ "tabGap": 7
272
+ }
273
+ };
@@ -0,0 +1,2 @@
1
+ export { tokens } from './generated.js';
2
+ export type { ThemeMode, Density } from './generated.js';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { tokens } from './generated.js';
@@ -0,0 +1,11 @@
1
+ export declare function parseDate(text: string): string | undefined;
2
+ export declare function dateObject(iso: string): Date;
3
+ export declare function dateISO(date: Date): string;
4
+ export declare function localDateISO(date?: Date): string;
5
+ export declare function addDays(iso: string, days: number): string;
6
+ export declare function addMonths(iso: string, months: number): string;
7
+ export declare function formatDate(iso: string | undefined): string;
8
+ export declare function monthGrid(iso: string, firstDay?: number): string[];
9
+ export declare function parseTime(text: string): string | undefined;
10
+ export declare function formatTime(value: string | undefined): string;
11
+ export declare const quarterHours: readonly string[];