@lace-cloud/design-tokens 0.37.0 → 0.38.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/README.md +32 -0
- package/dist/index.cjs +104 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +116 -30
- package/dist/index.d.ts +116 -30
- package/dist/index.mjs +97 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/tokens.css +553 -320
package/dist/index.d.ts
CHANGED
|
@@ -10,36 +10,40 @@ declare const darkTheme: {
|
|
|
10
10
|
readonly '--lace-color-bg-surface-alt': "#252526";
|
|
11
11
|
readonly '--lace-color-bg-input': "#0f0f0f";
|
|
12
12
|
readonly '--lace-color-bg-context-menu': "#1a1a1a";
|
|
13
|
-
readonly '--lace-color-border-default': "
|
|
13
|
+
readonly '--lace-color-border-default': "rgba(255, 255, 255, 0.08)";
|
|
14
14
|
readonly '--lace-color-border-subtle': "#3c3c3c";
|
|
15
|
-
readonly '--lace-color-border-input': "
|
|
15
|
+
readonly '--lace-color-border-input': "rgba(255, 255, 255, 0.15)";
|
|
16
|
+
readonly '--lace-color-border-control': "#757575";
|
|
16
17
|
readonly '--lace-color-border-input-hover': "#888888";
|
|
17
18
|
readonly '--lace-color-text-primary': "#ecefed";
|
|
18
19
|
readonly '--lace-color-text-label': "#e6e6e6";
|
|
19
|
-
readonly '--lace-color-text-muted': "#
|
|
20
|
-
readonly '--lace-color-text-description': "#
|
|
21
|
-
readonly '--lace-color-text-accent': "#cefe65";
|
|
22
|
-
readonly '--lace-color-text-link': "#60a5fa";
|
|
20
|
+
readonly '--lace-color-text-muted': "#8f9691";
|
|
21
|
+
readonly '--lace-color-text-description': "#b3bab5";
|
|
23
22
|
readonly '--lace-color-text-danger': "#e5484d";
|
|
24
23
|
readonly '--lace-color-text-danger-soft': "#f87171";
|
|
25
|
-
readonly '--lace-color-text-faint': "#8c8f8c";
|
|
26
24
|
readonly '--lace-color-row-hover': "rgba(255, 255, 255, 0.025)";
|
|
27
|
-
readonly '--lace-color-badge-purple': "#c084fc";
|
|
28
|
-
readonly '--lace-color-badge-purple-bg': "rgba(192, 132, 252, 0.1)";
|
|
29
25
|
readonly '--lace-color-accent': "#cefe65";
|
|
30
26
|
readonly '--lace-color-text-on-accent': "#111111";
|
|
27
|
+
readonly '--lace-color-accent-edge': "#cefe65";
|
|
28
|
+
readonly '--lace-color-ink': "#cefe65";
|
|
31
29
|
readonly '--lace-color-accent-alpha-subtle': "rgba(206, 254, 101, 0.1)";
|
|
32
30
|
readonly '--lace-color-accent-alpha-medium': "rgba(206, 254, 101, 0.2)";
|
|
33
31
|
readonly '--lace-color-accent-strong': "#e0ff8a";
|
|
34
32
|
readonly '--lace-color-success': "#4ade80";
|
|
35
33
|
readonly '--lace-color-success-hover': "#22c55e";
|
|
36
|
-
readonly '--lace-color-success-strong': "#16a34a";
|
|
37
34
|
readonly '--lace-color-danger': "#e5484d";
|
|
38
35
|
readonly '--lace-color-danger-bg-soft': "rgba(248, 113, 113, 0.12)";
|
|
39
36
|
readonly '--lace-color-danger-fg': "#f87171";
|
|
40
37
|
readonly '--lace-color-warning-bg': "#3b2507";
|
|
41
38
|
readonly '--lace-color-warning-fg': "#fbbf24";
|
|
39
|
+
readonly '--lace-color-info': "#9ecbff";
|
|
42
40
|
readonly '--lace-color-focus-ring': "#cefe65";
|
|
41
|
+
readonly '--lace-color-series-1': "#95e7ff";
|
|
42
|
+
readonly '--lace-color-series-2': "#b084f0";
|
|
43
|
+
readonly '--lace-color-series-3': "#f5a623";
|
|
44
|
+
readonly '--lace-color-series-4': "#f288c6";
|
|
45
|
+
readonly '--lace-color-series-5': "#ff8a4c";
|
|
46
|
+
readonly '--lace-color-series-6': "#cefe65";
|
|
43
47
|
};
|
|
44
48
|
/**
|
|
45
49
|
* The light theme's semantic colours — every `--lace-color-*` tokens.css's `[data-theme="light"]`
|
|
@@ -47,40 +51,104 @@ declare const darkTheme: {
|
|
|
47
51
|
* page's own `[data-theme="light"]`.
|
|
48
52
|
*/
|
|
49
53
|
declare const lightTheme: {
|
|
50
|
-
readonly '--lace-color-bg-canvas': "#
|
|
51
|
-
readonly '--lace-color-bg-surface': "#
|
|
52
|
-
readonly '--lace-color-bg-surface-alt': "#
|
|
54
|
+
readonly '--lace-color-bg-canvas': "#f6f7f5";
|
|
55
|
+
readonly '--lace-color-bg-surface': "#ffffff";
|
|
56
|
+
readonly '--lace-color-bg-surface-alt': "#f1f3f0";
|
|
53
57
|
readonly '--lace-color-bg-input': "#ffffff";
|
|
54
58
|
readonly '--lace-color-bg-context-menu': "#ffffff";
|
|
55
|
-
readonly '--lace-color-border-default': "
|
|
59
|
+
readonly '--lace-color-border-default': "rgba(22, 22, 22, 0.1)";
|
|
56
60
|
readonly '--lace-color-border-subtle': "#e2e8f0";
|
|
57
|
-
readonly '--lace-color-border-input': "
|
|
58
|
-
readonly '--lace-color-border-
|
|
59
|
-
readonly '--lace-color-
|
|
61
|
+
readonly '--lace-color-border-input': "rgba(22, 22, 22, 0.2)";
|
|
62
|
+
readonly '--lace-color-border-control': "#7a7a7a";
|
|
63
|
+
readonly '--lace-color-border-input-hover': "#4b5563";
|
|
64
|
+
readonly '--lace-color-text-primary': "#161616";
|
|
60
65
|
readonly '--lace-color-text-label': "#1f2937";
|
|
61
|
-
readonly '--lace-color-text-muted': "#
|
|
62
|
-
readonly '--lace-color-text-description': "#
|
|
63
|
-
readonly '--lace-color-text-accent': "#3d6600";
|
|
64
|
-
readonly '--lace-color-text-link': "#2563eb";
|
|
66
|
+
readonly '--lace-color-text-muted': "#5c635e";
|
|
67
|
+
readonly '--lace-color-text-description': "#454b47";
|
|
65
68
|
readonly '--lace-color-text-danger': "#dc2626";
|
|
66
69
|
readonly '--lace-color-text-danger-soft': "#ef4444";
|
|
67
|
-
readonly '--lace-color-text-faint': "#94a3b8";
|
|
68
70
|
readonly '--lace-color-row-hover': "rgba(0, 0, 0, 0.02)";
|
|
69
|
-
readonly '--lace-color-
|
|
70
|
-
readonly '--lace-color-badge-purple-bg': "#faf5ff";
|
|
71
|
-
readonly '--lace-color-accent': "#3d6600";
|
|
71
|
+
readonly '--lace-color-ink': "#4a6e12";
|
|
72
72
|
readonly '--lace-color-accent-alpha-subtle': "rgba(132, 204, 22, 0.08)";
|
|
73
73
|
readonly '--lace-color-accent-alpha-medium': "rgba(132, 204, 22, 0.16)";
|
|
74
74
|
readonly '--lace-color-accent-strong': "#2d4a00";
|
|
75
75
|
readonly '--lace-color-success': "#047857";
|
|
76
76
|
readonly '--lace-color-success-hover': "#065f46";
|
|
77
|
-
readonly '--lace-color-success-strong': "#064e3b";
|
|
78
77
|
readonly '--lace-color-danger': "#dc2626";
|
|
79
78
|
readonly '--lace-color-danger-bg-soft': "#fef2f2";
|
|
80
79
|
readonly '--lace-color-danger-fg': "#b91c1c";
|
|
81
80
|
readonly '--lace-color-warning-bg': "#fffbeb";
|
|
82
81
|
readonly '--lace-color-warning-fg': "#b45309";
|
|
83
|
-
readonly '--lace-color-
|
|
82
|
+
readonly '--lace-color-info': "#2563eb";
|
|
83
|
+
readonly '--lace-color-focus-ring': "#4a6e12";
|
|
84
|
+
readonly '--lace-color-series-1': "#2c9db9";
|
|
85
|
+
readonly '--lace-color-series-2': "#5c3e9a";
|
|
86
|
+
readonly '--lace-color-series-3': "#8a5a10";
|
|
87
|
+
readonly '--lace-color-series-4': "#8a2e5c";
|
|
88
|
+
readonly '--lace-color-series-5': "#8a3a10";
|
|
89
|
+
readonly '--lace-color-series-6': "#5e8a1a";
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* The text roles in the default (compact) type set — each `--lace-text-<role>` `font` shorthand
|
|
93
|
+
* and its `-size`, `-line`, `-weight`, `-family` and `-tracking`, resolved — for a consumer
|
|
94
|
+
* that cannot load tokens.css: it declares them in its own `:root` and sets a run's type with
|
|
95
|
+
* `font: var(--lace-text-<role>)` and `letter-spacing: var(--lace-text-<role>-tracking)`.
|
|
96
|
+
*/
|
|
97
|
+
declare const textRoles: {
|
|
98
|
+
readonly '--lace-text-display-size': "22px";
|
|
99
|
+
readonly '--lace-text-display-line': "28px";
|
|
100
|
+
readonly '--lace-text-title-size': "16px";
|
|
101
|
+
readonly '--lace-text-title-line': "22px";
|
|
102
|
+
readonly '--lace-text-heading-size': "14px";
|
|
103
|
+
readonly '--lace-text-heading-line': "20px";
|
|
104
|
+
readonly '--lace-text-body-size': "13px";
|
|
105
|
+
readonly '--lace-text-body-line': "18px";
|
|
106
|
+
readonly '--lace-text-control-size': "12px";
|
|
107
|
+
readonly '--lace-text-control-line': "16px";
|
|
108
|
+
readonly '--lace-text-caption-size': "11px";
|
|
109
|
+
readonly '--lace-text-caption-line': "14px";
|
|
110
|
+
readonly '--lace-text-label-size': "10px";
|
|
111
|
+
readonly '--lace-text-label-line': "14px";
|
|
112
|
+
readonly '--lace-text-code-size': "12px";
|
|
113
|
+
readonly '--lace-text-code-line': "16px";
|
|
114
|
+
readonly '--lace-text-note-size': "14px";
|
|
115
|
+
readonly '--lace-text-note-line': "20px";
|
|
116
|
+
readonly '--lace-text-display-weight': "600";
|
|
117
|
+
readonly '--lace-text-display-family': "\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif";
|
|
118
|
+
readonly '--lace-text-display-tracking': "-0.01em";
|
|
119
|
+
readonly '--lace-text-title-weight': "600";
|
|
120
|
+
readonly '--lace-text-title-family': "\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif";
|
|
121
|
+
readonly '--lace-text-title-tracking': "0";
|
|
122
|
+
readonly '--lace-text-heading-weight': "600";
|
|
123
|
+
readonly '--lace-text-heading-family': "\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif";
|
|
124
|
+
readonly '--lace-text-heading-tracking': "0";
|
|
125
|
+
readonly '--lace-text-body-weight': "400";
|
|
126
|
+
readonly '--lace-text-body-family': "\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif";
|
|
127
|
+
readonly '--lace-text-body-tracking': "0";
|
|
128
|
+
readonly '--lace-text-control-weight': "500";
|
|
129
|
+
readonly '--lace-text-control-family': "\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif";
|
|
130
|
+
readonly '--lace-text-control-tracking': "0";
|
|
131
|
+
readonly '--lace-text-caption-weight': "400";
|
|
132
|
+
readonly '--lace-text-caption-family': "\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif";
|
|
133
|
+
readonly '--lace-text-caption-tracking': "0";
|
|
134
|
+
readonly '--lace-text-label-weight': "500";
|
|
135
|
+
readonly '--lace-text-label-family': "\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace";
|
|
136
|
+
readonly '--lace-text-label-tracking': "0.06em";
|
|
137
|
+
readonly '--lace-text-code-weight': "400";
|
|
138
|
+
readonly '--lace-text-code-family': "\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace";
|
|
139
|
+
readonly '--lace-text-code-tracking': "0";
|
|
140
|
+
readonly '--lace-text-note-weight': "400";
|
|
141
|
+
readonly '--lace-text-note-family': "\"Instrument Serif\", Georgia, \"Times New Roman\", serif";
|
|
142
|
+
readonly '--lace-text-note-tracking': "0";
|
|
143
|
+
readonly '--lace-text-display': "600 22px / 28px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif";
|
|
144
|
+
readonly '--lace-text-title': "600 16px / 22px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif";
|
|
145
|
+
readonly '--lace-text-heading': "600 14px / 20px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif";
|
|
146
|
+
readonly '--lace-text-body': "400 13px / 18px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif";
|
|
147
|
+
readonly '--lace-text-control': "500 12px / 16px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif";
|
|
148
|
+
readonly '--lace-text-caption': "400 11px / 14px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif";
|
|
149
|
+
readonly '--lace-text-label': "500 10px / 14px \"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace";
|
|
150
|
+
readonly '--lace-text-code': "400 12px / 16px \"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace";
|
|
151
|
+
readonly '--lace-text-note': "italic 400 14px / 20px \"Instrument Serif\", Georgia, \"Times New Roman\", serif";
|
|
84
152
|
};
|
|
85
153
|
|
|
86
154
|
declare const brand: {
|
|
@@ -123,11 +191,29 @@ declare const pin: {
|
|
|
123
191
|
};
|
|
124
192
|
};
|
|
125
193
|
|
|
194
|
+
/** A text role tokens.css declares, by the name in its `--lace-text-<role>` custom properties. */
|
|
195
|
+
type TextRole = keyof typeof textRoles extends infer Name ? Name extends `--lace-text-${infer Role}-size` ? Role : never : never;
|
|
126
196
|
/** The themes tokens.css declares, read through `data-theme` on <html>: `dark` is the default,
|
|
127
197
|
* the rest are `[data-theme="<name>"]` blocks. A host maps its own theme names onto these. */
|
|
128
198
|
declare const THEMES: readonly ["dark", "light", "high-contrast", "high-contrast-light"];
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
199
|
+
/** The type sets tokens.css declares, read through `data-lace-type-set` on a region's root: each
|
|
200
|
+
* sizes the text roles for one kind of region. `compact` is the default (`:root`) and the
|
|
201
|
+
* canvas's own root; `comfortable` is product UI, the portal's document root; `expressive` is
|
|
202
|
+
* prose, the editorial and article templates' prose regions. */
|
|
203
|
+
declare const TYPE_SETS: readonly ["compact", "comfortable", "expressive"];
|
|
204
|
+
/** A type set, the value of a region's `data-lace-type-set`. */
|
|
205
|
+
type TypeSet = (typeof TYPE_SETS)[number];
|
|
206
|
+
/** The type set product UI reads: the one the portal's document root declares. */
|
|
207
|
+
declare const PRODUCT_TYPE_SET = "comfortable";
|
|
208
|
+
/** The papers tokens.css declares beside the paper of now (`:root`), read through
|
|
209
|
+
* `data-lace-paper` on a region's root: `blueprint` is the paper a page drawn as of an earlier
|
|
210
|
+
* revision is drawn on, its ground, threads and ink in one blue in every theme. */
|
|
211
|
+
declare const PAPERS: readonly ["blueprint"];
|
|
212
|
+
/** A paper, the value of a region's `data-lace-paper`. */
|
|
213
|
+
type Paper = (typeof PAPERS)[number];
|
|
214
|
+
/** Custom properties (a theme's colours, the text roles) as the declarations of one CSS rule,
|
|
215
|
+
* `name:value` joined by `;`, for a page that declares the tokens in a rule of its own. */
|
|
131
216
|
declare function themeDeclarations(theme: Readonly<Record<string, string>>): string;
|
|
132
217
|
|
|
133
|
-
export { THEMES, brand, darkTheme, lightTheme, pin, themeDeclarations };
|
|
218
|
+
export { PAPERS, PRODUCT_TYPE_SET, THEMES, TYPE_SETS, brand, darkTheme, lightTheme, pin, textRoles, themeDeclarations };
|
|
219
|
+
export type { Paper, TextRole, TypeSet };
|
package/dist/index.mjs
CHANGED
|
@@ -5,72 +5,134 @@ var darkTheme = {
|
|
|
5
5
|
"--lace-color-bg-surface-alt": "#252526",
|
|
6
6
|
"--lace-color-bg-input": "#0f0f0f",
|
|
7
7
|
"--lace-color-bg-context-menu": "#1a1a1a",
|
|
8
|
-
"--lace-color-border-default": "
|
|
8
|
+
"--lace-color-border-default": "rgba(255, 255, 255, 0.08)",
|
|
9
9
|
"--lace-color-border-subtle": "#3c3c3c",
|
|
10
|
-
"--lace-color-border-input": "
|
|
10
|
+
"--lace-color-border-input": "rgba(255, 255, 255, 0.15)",
|
|
11
|
+
"--lace-color-border-control": "#757575",
|
|
11
12
|
"--lace-color-border-input-hover": "#888888",
|
|
12
13
|
"--lace-color-text-primary": "#ecefed",
|
|
13
14
|
"--lace-color-text-label": "#e6e6e6",
|
|
14
|
-
"--lace-color-text-muted": "#
|
|
15
|
-
"--lace-color-text-description": "#
|
|
16
|
-
"--lace-color-text-accent": "#cefe65",
|
|
17
|
-
"--lace-color-text-link": "#60a5fa",
|
|
15
|
+
"--lace-color-text-muted": "#8f9691",
|
|
16
|
+
"--lace-color-text-description": "#b3bab5",
|
|
18
17
|
"--lace-color-text-danger": "#e5484d",
|
|
19
18
|
"--lace-color-text-danger-soft": "#f87171",
|
|
20
|
-
"--lace-color-text-faint": "#8c8f8c",
|
|
21
19
|
"--lace-color-row-hover": "rgba(255, 255, 255, 0.025)",
|
|
22
|
-
"--lace-color-badge-purple": "#c084fc",
|
|
23
|
-
"--lace-color-badge-purple-bg": "rgba(192, 132, 252, 0.1)",
|
|
24
20
|
"--lace-color-accent": "#cefe65",
|
|
25
21
|
"--lace-color-text-on-accent": "#111111",
|
|
22
|
+
"--lace-color-accent-edge": "#cefe65",
|
|
23
|
+
"--lace-color-ink": "#cefe65",
|
|
26
24
|
"--lace-color-accent-alpha-subtle": "rgba(206, 254, 101, 0.1)",
|
|
27
25
|
"--lace-color-accent-alpha-medium": "rgba(206, 254, 101, 0.2)",
|
|
28
26
|
"--lace-color-accent-strong": "#e0ff8a",
|
|
29
27
|
"--lace-color-success": "#4ade80",
|
|
30
28
|
"--lace-color-success-hover": "#22c55e",
|
|
31
|
-
"--lace-color-success-strong": "#16a34a",
|
|
32
29
|
"--lace-color-danger": "#e5484d",
|
|
33
30
|
"--lace-color-danger-bg-soft": "rgba(248, 113, 113, 0.12)",
|
|
34
31
|
"--lace-color-danger-fg": "#f87171",
|
|
35
32
|
"--lace-color-warning-bg": "#3b2507",
|
|
36
33
|
"--lace-color-warning-fg": "#fbbf24",
|
|
37
|
-
"--lace-color-
|
|
34
|
+
"--lace-color-info": "#9ecbff",
|
|
35
|
+
"--lace-color-focus-ring": "#cefe65",
|
|
36
|
+
"--lace-color-series-1": "#95e7ff",
|
|
37
|
+
"--lace-color-series-2": "#b084f0",
|
|
38
|
+
"--lace-color-series-3": "#f5a623",
|
|
39
|
+
"--lace-color-series-4": "#f288c6",
|
|
40
|
+
"--lace-color-series-5": "#ff8a4c",
|
|
41
|
+
"--lace-color-series-6": "#cefe65"
|
|
38
42
|
};
|
|
39
43
|
var lightTheme = {
|
|
40
|
-
"--lace-color-bg-canvas": "#
|
|
41
|
-
"--lace-color-bg-surface": "#
|
|
42
|
-
"--lace-color-bg-surface-alt": "#
|
|
44
|
+
"--lace-color-bg-canvas": "#f6f7f5",
|
|
45
|
+
"--lace-color-bg-surface": "#ffffff",
|
|
46
|
+
"--lace-color-bg-surface-alt": "#f1f3f0",
|
|
43
47
|
"--lace-color-bg-input": "#ffffff",
|
|
44
48
|
"--lace-color-bg-context-menu": "#ffffff",
|
|
45
|
-
"--lace-color-border-default": "
|
|
49
|
+
"--lace-color-border-default": "rgba(22, 22, 22, 0.1)",
|
|
46
50
|
"--lace-color-border-subtle": "#e2e8f0",
|
|
47
|
-
"--lace-color-border-input": "
|
|
48
|
-
"--lace-color-border-
|
|
49
|
-
"--lace-color-
|
|
51
|
+
"--lace-color-border-input": "rgba(22, 22, 22, 0.2)",
|
|
52
|
+
"--lace-color-border-control": "#7a7a7a",
|
|
53
|
+
"--lace-color-border-input-hover": "#4b5563",
|
|
54
|
+
"--lace-color-text-primary": "#161616",
|
|
50
55
|
"--lace-color-text-label": "#1f2937",
|
|
51
|
-
"--lace-color-text-muted": "#
|
|
52
|
-
"--lace-color-text-description": "#
|
|
53
|
-
"--lace-color-text-accent": "#3d6600",
|
|
54
|
-
"--lace-color-text-link": "#2563eb",
|
|
56
|
+
"--lace-color-text-muted": "#5c635e",
|
|
57
|
+
"--lace-color-text-description": "#454b47",
|
|
55
58
|
"--lace-color-text-danger": "#dc2626",
|
|
56
59
|
"--lace-color-text-danger-soft": "#ef4444",
|
|
57
|
-
"--lace-color-text-faint": "#94a3b8",
|
|
58
60
|
"--lace-color-row-hover": "rgba(0, 0, 0, 0.02)",
|
|
59
|
-
"--lace-color-
|
|
60
|
-
"--lace-color-badge-purple-bg": "#faf5ff",
|
|
61
|
-
"--lace-color-accent": "#3d6600",
|
|
61
|
+
"--lace-color-ink": "#4a6e12",
|
|
62
62
|
"--lace-color-accent-alpha-subtle": "rgba(132, 204, 22, 0.08)",
|
|
63
63
|
"--lace-color-accent-alpha-medium": "rgba(132, 204, 22, 0.16)",
|
|
64
64
|
"--lace-color-accent-strong": "#2d4a00",
|
|
65
65
|
"--lace-color-success": "#047857",
|
|
66
66
|
"--lace-color-success-hover": "#065f46",
|
|
67
|
-
"--lace-color-success-strong": "#064e3b",
|
|
68
67
|
"--lace-color-danger": "#dc2626",
|
|
69
68
|
"--lace-color-danger-bg-soft": "#fef2f2",
|
|
70
69
|
"--lace-color-danger-fg": "#b91c1c",
|
|
71
70
|
"--lace-color-warning-bg": "#fffbeb",
|
|
72
71
|
"--lace-color-warning-fg": "#b45309",
|
|
73
|
-
"--lace-color-
|
|
72
|
+
"--lace-color-info": "#2563eb",
|
|
73
|
+
"--lace-color-focus-ring": "#4a6e12",
|
|
74
|
+
"--lace-color-series-1": "#2c9db9",
|
|
75
|
+
"--lace-color-series-2": "#5c3e9a",
|
|
76
|
+
"--lace-color-series-3": "#8a5a10",
|
|
77
|
+
"--lace-color-series-4": "#8a2e5c",
|
|
78
|
+
"--lace-color-series-5": "#8a3a10",
|
|
79
|
+
"--lace-color-series-6": "#5e8a1a"
|
|
80
|
+
};
|
|
81
|
+
var textRoles = {
|
|
82
|
+
"--lace-text-display-size": "22px",
|
|
83
|
+
"--lace-text-display-line": "28px",
|
|
84
|
+
"--lace-text-title-size": "16px",
|
|
85
|
+
"--lace-text-title-line": "22px",
|
|
86
|
+
"--lace-text-heading-size": "14px",
|
|
87
|
+
"--lace-text-heading-line": "20px",
|
|
88
|
+
"--lace-text-body-size": "13px",
|
|
89
|
+
"--lace-text-body-line": "18px",
|
|
90
|
+
"--lace-text-control-size": "12px",
|
|
91
|
+
"--lace-text-control-line": "16px",
|
|
92
|
+
"--lace-text-caption-size": "11px",
|
|
93
|
+
"--lace-text-caption-line": "14px",
|
|
94
|
+
"--lace-text-label-size": "10px",
|
|
95
|
+
"--lace-text-label-line": "14px",
|
|
96
|
+
"--lace-text-code-size": "12px",
|
|
97
|
+
"--lace-text-code-line": "16px",
|
|
98
|
+
"--lace-text-note-size": "14px",
|
|
99
|
+
"--lace-text-note-line": "20px",
|
|
100
|
+
"--lace-text-display-weight": "600",
|
|
101
|
+
"--lace-text-display-family": '"Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif',
|
|
102
|
+
"--lace-text-display-tracking": "-0.01em",
|
|
103
|
+
"--lace-text-title-weight": "600",
|
|
104
|
+
"--lace-text-title-family": '"Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif',
|
|
105
|
+
"--lace-text-title-tracking": "0",
|
|
106
|
+
"--lace-text-heading-weight": "600",
|
|
107
|
+
"--lace-text-heading-family": '"Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif',
|
|
108
|
+
"--lace-text-heading-tracking": "0",
|
|
109
|
+
"--lace-text-body-weight": "400",
|
|
110
|
+
"--lace-text-body-family": '"Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif',
|
|
111
|
+
"--lace-text-body-tracking": "0",
|
|
112
|
+
"--lace-text-control-weight": "500",
|
|
113
|
+
"--lace-text-control-family": '"Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif',
|
|
114
|
+
"--lace-text-control-tracking": "0",
|
|
115
|
+
"--lace-text-caption-weight": "400",
|
|
116
|
+
"--lace-text-caption-family": '"Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif',
|
|
117
|
+
"--lace-text-caption-tracking": "0",
|
|
118
|
+
"--lace-text-label-weight": "500",
|
|
119
|
+
"--lace-text-label-family": '"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace',
|
|
120
|
+
"--lace-text-label-tracking": "0.06em",
|
|
121
|
+
"--lace-text-code-weight": "400",
|
|
122
|
+
"--lace-text-code-family": '"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace',
|
|
123
|
+
"--lace-text-code-tracking": "0",
|
|
124
|
+
"--lace-text-note-weight": "400",
|
|
125
|
+
"--lace-text-note-family": '"Instrument Serif", Georgia, "Times New Roman", serif',
|
|
126
|
+
"--lace-text-note-tracking": "0",
|
|
127
|
+
"--lace-text-display": '600 22px / 28px "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif',
|
|
128
|
+
"--lace-text-title": '600 16px / 22px "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif',
|
|
129
|
+
"--lace-text-heading": '600 14px / 20px "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif',
|
|
130
|
+
"--lace-text-body": '400 13px / 18px "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif',
|
|
131
|
+
"--lace-text-control": '500 12px / 16px "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif',
|
|
132
|
+
"--lace-text-caption": '400 11px / 14px "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif',
|
|
133
|
+
"--lace-text-label": '500 10px / 14px "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace',
|
|
134
|
+
"--lace-text-code": '400 12px / 16px "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace',
|
|
135
|
+
"--lace-text-note": 'italic 400 14px / 20px "Instrument Serif", Georgia, "Times New Roman", serif'
|
|
74
136
|
};
|
|
75
137
|
|
|
76
138
|
// src/index.ts
|
|
@@ -93,15 +155,22 @@ var pin = {
|
|
|
93
155
|
any: { fill: "#9BA19E", stroke: "#4A4F4C" }
|
|
94
156
|
};
|
|
95
157
|
var THEMES = ["dark", "light", "high-contrast", "high-contrast-light"];
|
|
158
|
+
var TYPE_SETS = ["compact", "comfortable", "expressive"];
|
|
159
|
+
var PRODUCT_TYPE_SET = "comfortable";
|
|
160
|
+
var PAPERS = ["blueprint"];
|
|
96
161
|
function themeDeclarations(theme) {
|
|
97
162
|
return Object.entries(theme).map(([name, value]) => `${name}:${value}`).join(";");
|
|
98
163
|
}
|
|
99
164
|
export {
|
|
165
|
+
PAPERS,
|
|
166
|
+
PRODUCT_TYPE_SET,
|
|
100
167
|
THEMES,
|
|
168
|
+
TYPE_SETS,
|
|
101
169
|
brand,
|
|
102
170
|
darkTheme,
|
|
103
171
|
lightTheme,
|
|
104
172
|
pin,
|
|
173
|
+
textRoles,
|
|
105
174
|
themeDeclarations
|
|
106
175
|
};
|
|
107
176
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/themes.gen.ts","../src/index.ts"],"sourcesContent":["// Generated from tokens.css by scripts/gen-themes.mjs; `pnpm --filter @lace-cloud/design-tokens build`\n// rewrites it. Edit tokens.css, never this file.\n\n/**\n * The dark theme's semantic colours — every `--lace-color-*` of tokens.css's semantic tier, at the\n * value it resolves to in the default (dark) theme — for a consumer that cannot load tokens.css: a\n * server-rendered page declares them in its own `:root` and reads them by the names the\n * stylesheet uses.\n */\nexport const darkTheme = {\n '--lace-color-bg-canvas': '#161616',\n '--lace-color-bg-surface': '#1e1e1e',\n '--lace-color-bg-surface-alt': '#252526',\n '--lace-color-bg-input': '#0f0f0f',\n '--lace-color-bg-context-menu': '#1a1a1a',\n '--lace-color-border-default': '#333333',\n '--lace-color-border-subtle': '#3c3c3c',\n '--lace-color-border-input': '#555555',\n '--lace-color-border-input-hover': '#888888',\n '--lace-color-text-primary': '#ecefed',\n '--lace-color-text-label': '#e6e6e6',\n '--lace-color-text-muted': '#999999',\n '--lace-color-text-description': '#9ca3af',\n '--lace-color-text-accent': '#cefe65',\n '--lace-color-text-link': '#60a5fa',\n '--lace-color-text-danger': '#e5484d',\n '--lace-color-text-danger-soft': '#f87171',\n '--lace-color-text-faint': '#8c8f8c',\n '--lace-color-row-hover': 'rgba(255, 255, 255, 0.025)',\n '--lace-color-badge-purple': '#c084fc',\n '--lace-color-badge-purple-bg': 'rgba(192, 132, 252, 0.1)',\n '--lace-color-accent': '#cefe65',\n '--lace-color-text-on-accent': '#111111',\n '--lace-color-accent-alpha-subtle': 'rgba(206, 254, 101, 0.1)',\n '--lace-color-accent-alpha-medium': 'rgba(206, 254, 101, 0.2)',\n '--lace-color-accent-strong': '#e0ff8a',\n '--lace-color-success': '#4ade80',\n '--lace-color-success-hover': '#22c55e',\n '--lace-color-success-strong': '#16a34a',\n '--lace-color-danger': '#e5484d',\n '--lace-color-danger-bg-soft': 'rgba(248, 113, 113, 0.12)',\n '--lace-color-danger-fg': '#f87171',\n '--lace-color-warning-bg': '#3b2507',\n '--lace-color-warning-fg': '#fbbf24',\n '--lace-color-focus-ring': '#cefe65',\n} as const;\n\n/**\n * The light theme's semantic colours — every `--lace-color-*` tokens.css's `[data-theme=\"light\"]`\n * block overrides, at the value it resolves to there — declared after `darkTheme` under the\n * page's own `[data-theme=\"light\"]`.\n */\nexport const lightTheme = {\n '--lace-color-bg-canvas': '#ffffff',\n '--lace-color-bg-surface': '#f8fafc',\n '--lace-color-bg-surface-alt': '#f1f5f9',\n '--lace-color-bg-input': '#ffffff',\n '--lace-color-bg-context-menu': '#ffffff',\n '--lace-color-border-default': '#cbd5e1',\n '--lace-color-border-subtle': '#e2e8f0',\n '--lace-color-border-input': '#cbd5e1',\n '--lace-color-border-input-hover': '#94a3b8',\n '--lace-color-text-primary': '#0f172a',\n '--lace-color-text-label': '#1f2937',\n '--lace-color-text-muted': '#64748b',\n '--lace-color-text-description': '#475569',\n '--lace-color-text-accent': '#3d6600',\n '--lace-color-text-link': '#2563eb',\n '--lace-color-text-danger': '#dc2626',\n '--lace-color-text-danger-soft': '#ef4444',\n '--lace-color-text-faint': '#94a3b8',\n '--lace-color-row-hover': 'rgba(0, 0, 0, 0.02)',\n '--lace-color-badge-purple': '#7c3aed',\n '--lace-color-badge-purple-bg': '#faf5ff',\n '--lace-color-accent': '#3d6600',\n '--lace-color-accent-alpha-subtle': 'rgba(132, 204, 22, 0.08)',\n '--lace-color-accent-alpha-medium': 'rgba(132, 204, 22, 0.16)',\n '--lace-color-accent-strong': '#2d4a00',\n '--lace-color-success': '#047857',\n '--lace-color-success-hover': '#065f46',\n '--lace-color-success-strong': '#064e3b',\n '--lace-color-danger': '#dc2626',\n '--lace-color-danger-bg-soft': '#fef2f2',\n '--lace-color-danger-fg': '#b91c1c',\n '--lace-color-warning-bg': '#fffbeb',\n '--lace-color-warning-fg': '#b45309',\n '--lace-color-focus-ring': '#3d6600',\n} as const;\n","// @lace-cloud/design-tokens — JS/TS token exports\n// Primary distribution is tokens.css; use this for JS/TS consumers that\n// need programmatic access to token values (e.g., pinColor.ts).\n\nexport const brand = {\n green: '#CEFE65',\n greenBright: '#e0ff8a',\n gunmetal: '#153238',\n gunmetalLight: '#1a3f47',\n night: '#161616',\n cyan: '#95E7FF',\n grey: '#ECEFED',\n} as const;\n\nexport const pin = {\n string: { fill: '#95E7FF', stroke: '#2C9DB9' },\n number: { fill: '#F5A623', stroke: '#8A5A10' },\n bool: { fill: '#B084F0', stroke: '#5C3E9A' },\n list: { fill: '#CEFE65', stroke: '#5E8A1A' },\n map: { fill: '#F288C6', stroke: '#8A2E5C' },\n object: { fill: '#FF8A4C', stroke: '#8A3A10' },\n any: { fill: '#9BA19E', stroke: '#4A4F4C' },\n} as const;\n\n// The themes' semantic colours, generated from tokens.css at build\n// (`src/themes-source.ts`): `darkTheme` and `lightTheme`, for a consumer that\n// cannot load the stylesheet.\nexport { darkTheme, lightTheme } from './themes.gen';\n\n/** The themes tokens.css declares, read through `data-theme` on <html>: `dark` is the default,\n * the rest are `[data-theme=\"<name>\"]` blocks. A host maps its own theme names onto these. */\nexport const THEMES = ['dark', 'light', 'high-contrast', 'high-contrast-light'] as const;\n\n/** A theme's colours as the declarations of one CSS rule, `name:value` joined\n * by `;`, for a page that declares the tokens in a rule of its own. */\nexport function themeDeclarations(theme: Readonly<Record<string, string>>): string {\n return Object.entries(theme)\n .map(([name, value]) => `${name}:${value}`)\n .join(';');\n}\n"],"mappings":";AASO,IAAM,YAAY;AAAA,EACvB,0BAA0B;AAAA,EAC1B,2BAA2B;AAAA,EAC3B,+BAA+B;AAAA,EAC/B,yBAAyB;AAAA,EACzB,gCAAgC;AAAA,EAChC,+BAA+B;AAAA,EAC/B,8BAA8B;AAAA,EAC9B,6BAA6B;AAAA,EAC7B,mCAAmC;AAAA,EACnC,6BAA6B;AAAA,EAC7B,2BAA2B;AAAA,EAC3B,2BAA2B;AAAA,EAC3B,iCAAiC;AAAA,EACjC,4BAA4B;AAAA,EAC5B,0BAA0B;AAAA,EAC1B,4BAA4B;AAAA,EAC5B,iCAAiC;AAAA,EACjC,2BAA2B;AAAA,EAC3B,0BAA0B;AAAA,EAC1B,6BAA6B;AAAA,EAC7B,gCAAgC;AAAA,EAChC,uBAAuB;AAAA,EACvB,+BAA+B;AAAA,EAC/B,oCAAoC;AAAA,EACpC,oCAAoC;AAAA,EACpC,8BAA8B;AAAA,EAC9B,wBAAwB;AAAA,EACxB,8BAA8B;AAAA,EAC9B,+BAA+B;AAAA,EAC/B,uBAAuB;AAAA,EACvB,+BAA+B;AAAA,EAC/B,0BAA0B;AAAA,EAC1B,2BAA2B;AAAA,EAC3B,2BAA2B;AAAA,EAC3B,2BAA2B;AAC7B;AAOO,IAAM,aAAa;AAAA,EACxB,0BAA0B;AAAA,EAC1B,2BAA2B;AAAA,EAC3B,+BAA+B;AAAA,EAC/B,yBAAyB;AAAA,EACzB,gCAAgC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D;AACjF,SAAO,OAAO,QAAQ,KAAK,EACxB,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,GAAG,IAAI,IAAI,KAAK,EAAE,EACzC,KAAK,GAAG;AACb;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/themes.gen.ts","../src/index.ts"],"sourcesContent":["// Generated from tokens.css by scripts/gen-themes.mjs; `pnpm --filter @lace-cloud/design-tokens build`\n// rewrites it. Edit tokens.css, never this file.\n\n/**\n * The dark theme's semantic colours — every `--lace-color-*` of tokens.css's semantic tier, at the\n * value it resolves to in the default (dark) theme — for a consumer that cannot load tokens.css: a\n * server-rendered page declares them in its own `:root` and reads them by the names the\n * stylesheet uses.\n */\nexport const darkTheme = {\n '--lace-color-bg-canvas': '#161616',\n '--lace-color-bg-surface': '#1e1e1e',\n '--lace-color-bg-surface-alt': '#252526',\n '--lace-color-bg-input': '#0f0f0f',\n '--lace-color-bg-context-menu': '#1a1a1a',\n '--lace-color-border-default': 'rgba(255, 255, 255, 0.08)',\n '--lace-color-border-subtle': '#3c3c3c',\n '--lace-color-border-input': 'rgba(255, 255, 255, 0.15)',\n '--lace-color-border-control': '#757575',\n '--lace-color-border-input-hover': '#888888',\n '--lace-color-text-primary': '#ecefed',\n '--lace-color-text-label': '#e6e6e6',\n '--lace-color-text-muted': '#8f9691',\n '--lace-color-text-description': '#b3bab5',\n '--lace-color-text-danger': '#e5484d',\n '--lace-color-text-danger-soft': '#f87171',\n '--lace-color-row-hover': 'rgba(255, 255, 255, 0.025)',\n '--lace-color-accent': '#cefe65',\n '--lace-color-text-on-accent': '#111111',\n '--lace-color-accent-edge': '#cefe65',\n '--lace-color-ink': '#cefe65',\n '--lace-color-accent-alpha-subtle': 'rgba(206, 254, 101, 0.1)',\n '--lace-color-accent-alpha-medium': 'rgba(206, 254, 101, 0.2)',\n '--lace-color-accent-strong': '#e0ff8a',\n '--lace-color-success': '#4ade80',\n '--lace-color-success-hover': '#22c55e',\n '--lace-color-danger': '#e5484d',\n '--lace-color-danger-bg-soft': 'rgba(248, 113, 113, 0.12)',\n '--lace-color-danger-fg': '#f87171',\n '--lace-color-warning-bg': '#3b2507',\n '--lace-color-warning-fg': '#fbbf24',\n '--lace-color-info': '#9ecbff',\n '--lace-color-focus-ring': '#cefe65',\n '--lace-color-series-1': '#95e7ff',\n '--lace-color-series-2': '#b084f0',\n '--lace-color-series-3': '#f5a623',\n '--lace-color-series-4': '#f288c6',\n '--lace-color-series-5': '#ff8a4c',\n '--lace-color-series-6': '#cefe65',\n} as const;\n\n/**\n * The light theme's semantic colours — every `--lace-color-*` tokens.css's `[data-theme=\"light\"]`\n * block overrides, at the value it resolves to there — declared after `darkTheme` under the\n * page's own `[data-theme=\"light\"]`.\n */\nexport const lightTheme = {\n '--lace-color-bg-canvas': '#f6f7f5',\n '--lace-color-bg-surface': '#ffffff',\n '--lace-color-bg-surface-alt': '#f1f3f0',\n '--lace-color-bg-input': '#ffffff',\n '--lace-color-bg-context-menu': '#ffffff',\n '--lace-color-border-default': 'rgba(22, 22, 22, 0.1)',\n '--lace-color-border-subtle': '#e2e8f0',\n '--lace-color-border-input': 'rgba(22, 22, 22, 0.2)',\n '--lace-color-border-control': '#7a7a7a',\n '--lace-color-border-input-hover': '#4b5563',\n '--lace-color-text-primary': '#161616',\n '--lace-color-text-label': '#1f2937',\n '--lace-color-text-muted': '#5c635e',\n '--lace-color-text-description': '#454b47',\n '--lace-color-text-danger': '#dc2626',\n '--lace-color-text-danger-soft': '#ef4444',\n '--lace-color-row-hover': 'rgba(0, 0, 0, 0.02)',\n '--lace-color-ink': '#4a6e12',\n '--lace-color-accent-alpha-subtle': 'rgba(132, 204, 22, 0.08)',\n '--lace-color-accent-alpha-medium': 'rgba(132, 204, 22, 0.16)',\n '--lace-color-accent-strong': '#2d4a00',\n '--lace-color-success': '#047857',\n '--lace-color-success-hover': '#065f46',\n '--lace-color-danger': '#dc2626',\n '--lace-color-danger-bg-soft': '#fef2f2',\n '--lace-color-danger-fg': '#b91c1c',\n '--lace-color-warning-bg': '#fffbeb',\n '--lace-color-warning-fg': '#b45309',\n '--lace-color-info': '#2563eb',\n '--lace-color-focus-ring': '#4a6e12',\n '--lace-color-series-1': '#2c9db9',\n '--lace-color-series-2': '#5c3e9a',\n '--lace-color-series-3': '#8a5a10',\n '--lace-color-series-4': '#8a2e5c',\n '--lace-color-series-5': '#8a3a10',\n '--lace-color-series-6': '#5e8a1a',\n} as const;\n\n/**\n * The text roles in the default (compact) type set — each `--lace-text-<role>` `font` shorthand\n * and its `-size`, `-line`, `-weight`, `-family` and `-tracking`, resolved — for a consumer\n * that cannot load tokens.css: it declares them in its own `:root` and sets a run's type with\n * `font: var(--lace-text-<role>)` and `letter-spacing: var(--lace-text-<role>-tracking)`.\n */\nexport const textRoles = {\n '--lace-text-display-size': '22px',\n '--lace-text-display-line': '28px',\n '--lace-text-title-size': '16px',\n '--lace-text-title-line': '22px',\n '--lace-text-heading-size': '14px',\n '--lace-text-heading-line': '20px',\n '--lace-text-body-size': '13px',\n '--lace-text-body-line': '18px',\n '--lace-text-control-size': '12px',\n '--lace-text-control-line': '16px',\n '--lace-text-caption-size': '11px',\n '--lace-text-caption-line': '14px',\n '--lace-text-label-size': '10px',\n '--lace-text-label-line': '14px',\n '--lace-text-code-size': '12px',\n '--lace-text-code-line': '16px',\n '--lace-text-note-size': '14px',\n '--lace-text-note-line': '20px',\n '--lace-text-display-weight': '600',\n '--lace-text-display-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-display-tracking': '-0.01em',\n '--lace-text-title-weight': '600',\n '--lace-text-title-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-title-tracking': '0',\n '--lace-text-heading-weight': '600',\n '--lace-text-heading-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-heading-tracking': '0',\n '--lace-text-body-weight': '400',\n '--lace-text-body-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-body-tracking': '0',\n '--lace-text-control-weight': '500',\n '--lace-text-control-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-control-tracking': '0',\n '--lace-text-caption-weight': '400',\n '--lace-text-caption-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-caption-tracking': '0',\n '--lace-text-label-weight': '500',\n '--lace-text-label-family': '\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-label-tracking': '0.06em',\n '--lace-text-code-weight': '400',\n '--lace-text-code-family': '\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-code-tracking': '0',\n '--lace-text-note-weight': '400',\n '--lace-text-note-family': '\"Instrument Serif\", Georgia, \"Times New Roman\", serif',\n '--lace-text-note-tracking': '0',\n '--lace-text-display': '600 22px / 28px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-title': '600 16px / 22px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-heading': '600 14px / 20px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-body': '400 13px / 18px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-control': '500 12px / 16px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-caption': '400 11px / 14px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-label': '500 10px / 14px \"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-code': '400 12px / 16px \"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-note': 'italic 400 14px / 20px \"Instrument Serif\", Georgia, \"Times New Roman\", serif',\n} as const;\n","// @lace-cloud/design-tokens — JS/TS token exports\n// Primary distribution is tokens.css; use this for JS/TS consumers that\n// need programmatic access to token values (e.g., pinColor.ts).\n\nexport const brand = {\n green: '#CEFE65',\n greenBright: '#e0ff8a',\n gunmetal: '#153238',\n gunmetalLight: '#1a3f47',\n night: '#161616',\n cyan: '#95E7FF',\n grey: '#ECEFED',\n} as const;\n\nexport const pin = {\n string: { fill: '#95E7FF', stroke: '#2C9DB9' },\n number: { fill: '#F5A623', stroke: '#8A5A10' },\n bool: { fill: '#B084F0', stroke: '#5C3E9A' },\n list: { fill: '#CEFE65', stroke: '#5E8A1A' },\n map: { fill: '#F288C6', stroke: '#8A2E5C' },\n object: { fill: '#FF8A4C', stroke: '#8A3A10' },\n any: { fill: '#9BA19E', stroke: '#4A4F4C' },\n} as const;\n\n// The themes' semantic colours and the compact text roles, generated from\n// tokens.css at build (`src/themes-source.ts`): `darkTheme`, `lightTheme` and\n// `textRoles`, for a consumer that cannot load the stylesheet.\nexport { darkTheme, lightTheme, textRoles } from './themes.gen';\n\nimport type { textRoles } from './themes.gen';\n\n/** A text role tokens.css declares, by the name in its `--lace-text-<role>` custom properties. */\nexport type TextRole = keyof typeof textRoles extends infer Name\n ? Name extends `--lace-text-${infer Role}-size`\n ? Role\n : never\n : never;\n\n/** The themes tokens.css declares, read through `data-theme` on <html>: `dark` is the default,\n * the rest are `[data-theme=\"<name>\"]` blocks. A host maps its own theme names onto these. */\nexport const THEMES = ['dark', 'light', 'high-contrast', 'high-contrast-light'] as const;\n\n/** The type sets tokens.css declares, read through `data-lace-type-set` on a region's root: each\n * sizes the text roles for one kind of region. `compact` is the default (`:root`) and the\n * canvas's own root; `comfortable` is product UI, the portal's document root; `expressive` is\n * prose, the editorial and article templates' prose regions. */\nexport const TYPE_SETS = ['compact', 'comfortable', 'expressive'] as const;\n\n/** A type set, the value of a region's `data-lace-type-set`. */\nexport type TypeSet = (typeof TYPE_SETS)[number];\n\n/** The type set product UI reads: the one the portal's document root declares. */\nexport const PRODUCT_TYPE_SET = 'comfortable' satisfies TypeSet;\n\n/** The papers tokens.css declares beside the paper of now (`:root`), read through\n * `data-lace-paper` on a region's root: `blueprint` is the paper a page drawn as of an earlier\n * revision is drawn on, its ground, threads and ink in one blue in every theme. */\nexport const PAPERS = ['blueprint'] as const;\n\n/** A paper, the value of a region's `data-lace-paper`. */\nexport type Paper = (typeof PAPERS)[number];\n\n/** Custom properties (a theme's colours, the text roles) as the declarations of one CSS rule,\n * `name:value` joined by `;`, for a page that declares the tokens in a rule of its own. */\nexport function themeDeclarations(theme: Readonly<Record<string, string>>): string {\n return Object.entries(theme)\n .map(([name, value]) => `${name}:${value}`)\n .join(';');\n}\n"],"mappings":";AASO,IAAM,YAAY;AAAA,EACvB,0BAA0B;AAAA,EAC1B,2BAA2B;AAAA,EAC3B,+BAA+B;AAAA,EAC/B,yBAAyB;AAAA,EACzB,gCAAgC;AAAA,EAChC,+BAA+B;AAAA,EAC/B,8BAA8B;AAAA,EAC9B,6BAA6B;AAAA,EAC7B,+BAA+B;AAAA,EAC/B,mCAAmC;AAAA,EACnC,6BAA6B;AAAA,EAC7B,2BAA2B;AAAA,EAC3B,2BAA2B;AAAA,EAC3B,iCAAiC;AAAA,EACjC,4BAA4B;AAAA,EAC5B,iCAAiC;AAAA,EACjC,0BAA0B;AAAA,EAC1B,uBAAuB;AAAA,EACvB,+BAA+B;AAAA,EAC/B,4BAA4B;AAAA,EAC5B,oBAAoB;AAAA,EACpB,oCAAoC;AAAA,EACpC,oCAAoC;AAAA,EACpC,8BAA8B;AAAA,EAC9B,wBAAwB;AAAA,EACxB,8BAA8B;AAAA,EAC9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