@dloizides/design-tokens 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/LICENSE +21 -0
- package/README.md +129 -0
- package/dist/index.d.mts +413 -0
- package/dist/index.d.ts +413 -0
- package/dist/index.js +425 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +415 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +78 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
// src/varNames.ts
|
|
2
|
+
var DEFAULT_CSS_VAR_NAMES = {
|
|
3
|
+
primary: "--primary",
|
|
4
|
+
secondary: "--secondary",
|
|
5
|
+
accent: "--accent",
|
|
6
|
+
success: "--success",
|
|
7
|
+
warning: "--warning",
|
|
8
|
+
error: "--error",
|
|
9
|
+
info: "--info",
|
|
10
|
+
lightBackground: "--background",
|
|
11
|
+
lightSurface: "--surface",
|
|
12
|
+
lightSurfaceElevated: "--surface-elevated",
|
|
13
|
+
lightText: "--text",
|
|
14
|
+
lightTextSecondary: "--text-secondary",
|
|
15
|
+
lightBorder: "--border",
|
|
16
|
+
lightDivider: "--divider",
|
|
17
|
+
darkBackground: "--background",
|
|
18
|
+
darkSurface: "--surface",
|
|
19
|
+
darkSurfaceElevated: "--surface-elevated",
|
|
20
|
+
darkText: "--text",
|
|
21
|
+
darkTextSecondary: "--text-secondary",
|
|
22
|
+
darkBorder: "--border",
|
|
23
|
+
darkDivider: "--divider",
|
|
24
|
+
radiusXs: "--radius-xs",
|
|
25
|
+
radiusSm: "--radius-sm",
|
|
26
|
+
radiusMd: "--radius",
|
|
27
|
+
radiusLg: "--radius-lg",
|
|
28
|
+
radiusPill: "--radius-pill",
|
|
29
|
+
shadowSm: "--shadow-sm",
|
|
30
|
+
shadowMd: "--shadow",
|
|
31
|
+
shadowPop: "--shadow-pop",
|
|
32
|
+
fontFamily: "--font",
|
|
33
|
+
monoFamily: "--font-mono"
|
|
34
|
+
};
|
|
35
|
+
var AML_CSS_VAR_NAMES = {
|
|
36
|
+
primary: "--brand",
|
|
37
|
+
// secondary/accent intentionally omitted (single-brand console)
|
|
38
|
+
// semantic emitted via verdict extension; info has no AML variable
|
|
39
|
+
lightBackground: "--bg",
|
|
40
|
+
lightSurface: "--surface",
|
|
41
|
+
// lightSurfaceElevated via workspace.surfaceAlt (--surface-2)
|
|
42
|
+
// lightText via ink.base (--ink); lightTextSecondary via ink.soft (--ink-soft)
|
|
43
|
+
lightBorder: "--line",
|
|
44
|
+
// lightDivider reuses --line
|
|
45
|
+
// dark* omitted (no dark-mode toggle)
|
|
46
|
+
radiusXs: "--r-xs",
|
|
47
|
+
radiusSm: "--r-sm",
|
|
48
|
+
radiusMd: "--r",
|
|
49
|
+
radiusLg: "--r-lg",
|
|
50
|
+
radiusPill: "--r-pill",
|
|
51
|
+
shadowSm: "--sh-1",
|
|
52
|
+
shadowMd: "--sh-2",
|
|
53
|
+
shadowPop: "--sh-pop",
|
|
54
|
+
fontFamily: "--font",
|
|
55
|
+
monoFamily: "--mono",
|
|
56
|
+
shellBackground: "--shell",
|
|
57
|
+
shellBackgroundAlt: "--shell-2",
|
|
58
|
+
shellLine: "--shell-line",
|
|
59
|
+
shellOn: "--on-shell",
|
|
60
|
+
shellOnDim: "--on-shell-dim",
|
|
61
|
+
brandPress: "--brand-press",
|
|
62
|
+
brandSoft: "--brand-soft",
|
|
63
|
+
brandRing: "--brand-ring",
|
|
64
|
+
inkBase: "--ink",
|
|
65
|
+
inkSoft: "--ink-soft",
|
|
66
|
+
inkFaint: "--ink-faint",
|
|
67
|
+
inkOverlay: "--ink-2",
|
|
68
|
+
surfaceAlt: "--surface-2",
|
|
69
|
+
lineStrong: "--line-strong",
|
|
70
|
+
ok: "--ok",
|
|
71
|
+
okSoft: "--ok-soft",
|
|
72
|
+
okInk: "--ok-ink",
|
|
73
|
+
warn: "--warn",
|
|
74
|
+
warnSoft: "--warn-soft",
|
|
75
|
+
warnInk: "--warn-ink",
|
|
76
|
+
bad: "--bad",
|
|
77
|
+
badSoft: "--bad-soft",
|
|
78
|
+
badSoft2: "--bad-soft2",
|
|
79
|
+
badInk: "--bad-ink"
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
// src/emit/toCssVars.ts
|
|
83
|
+
var INDENT = " ";
|
|
84
|
+
var DEFAULT_DARK_SELECTOR = ':root[data-theme="dark"]';
|
|
85
|
+
function declaration(name, value) {
|
|
86
|
+
if (name === void 0 || value === void 0) {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
return `${INDENT}${name}: ${value};`;
|
|
90
|
+
}
|
|
91
|
+
function isLine(entry) {
|
|
92
|
+
return entry !== null;
|
|
93
|
+
}
|
|
94
|
+
function block(selector, lines) {
|
|
95
|
+
return `${selector} {
|
|
96
|
+
${lines.join("\n")}
|
|
97
|
+
}`;
|
|
98
|
+
}
|
|
99
|
+
function toCssVars(tokens, names, options) {
|
|
100
|
+
const ext = tokens.extensions;
|
|
101
|
+
const baseEntries = [
|
|
102
|
+
declaration(names.primary, tokens.primary),
|
|
103
|
+
declaration(names.secondary, tokens.secondary),
|
|
104
|
+
declaration(names.accent, tokens.accent),
|
|
105
|
+
declaration(names.success, tokens.semantic.success),
|
|
106
|
+
declaration(names.warning, tokens.semantic.warning),
|
|
107
|
+
declaration(names.error, tokens.semantic.error),
|
|
108
|
+
declaration(names.info, tokens.semantic.info),
|
|
109
|
+
declaration(names.lightBackground, tokens.light.background),
|
|
110
|
+
declaration(names.lightSurface, tokens.light.surface),
|
|
111
|
+
declaration(names.lightSurfaceElevated, tokens.light.surfaceElevated),
|
|
112
|
+
declaration(names.lightText, tokens.light.text),
|
|
113
|
+
declaration(names.lightTextSecondary, tokens.light.textSecondary),
|
|
114
|
+
declaration(names.lightBorder, tokens.light.border),
|
|
115
|
+
declaration(names.lightDivider, tokens.light.divider),
|
|
116
|
+
declaration(names.radiusXs, tokens.radii?.xs),
|
|
117
|
+
declaration(names.radiusSm, tokens.radii?.sm),
|
|
118
|
+
declaration(names.radiusMd, tokens.radii?.md),
|
|
119
|
+
declaration(names.radiusLg, tokens.radii?.lg),
|
|
120
|
+
declaration(names.radiusPill, tokens.radii?.pill),
|
|
121
|
+
declaration(names.shadowSm, tokens.shadows?.sm),
|
|
122
|
+
declaration(names.shadowMd, tokens.shadows?.md),
|
|
123
|
+
declaration(names.shadowPop, tokens.shadows?.pop),
|
|
124
|
+
declaration(names.fontFamily, tokens.typography?.fontFamily),
|
|
125
|
+
declaration(names.monoFamily, tokens.typography?.monoFamily),
|
|
126
|
+
declaration(names.shellBackground, ext?.shell?.background),
|
|
127
|
+
declaration(names.shellBackgroundAlt, ext?.shell?.backgroundAlt),
|
|
128
|
+
declaration(names.shellLine, ext?.shell?.line),
|
|
129
|
+
declaration(names.shellOn, ext?.shell?.on),
|
|
130
|
+
declaration(names.shellOnDim, ext?.shell?.onDim),
|
|
131
|
+
declaration(names.brandPress, ext?.brand?.press),
|
|
132
|
+
declaration(names.brandSoft, ext?.brand?.soft),
|
|
133
|
+
declaration(names.brandRing, ext?.brand?.ring),
|
|
134
|
+
declaration(names.inkBase, ext?.ink?.base),
|
|
135
|
+
declaration(names.inkSoft, ext?.ink?.soft),
|
|
136
|
+
declaration(names.inkFaint, ext?.ink?.faint),
|
|
137
|
+
declaration(names.inkOverlay, ext?.ink?.overlay),
|
|
138
|
+
declaration(names.surfaceAlt, ext?.workspace?.surfaceAlt),
|
|
139
|
+
declaration(names.lineStrong, ext?.workspace?.lineStrong),
|
|
140
|
+
declaration(names.ok, ext?.verdict?.ok),
|
|
141
|
+
declaration(names.okSoft, ext?.verdict?.okSoft),
|
|
142
|
+
declaration(names.okInk, ext?.verdict?.okInk),
|
|
143
|
+
declaration(names.warn, ext?.verdict?.warn),
|
|
144
|
+
declaration(names.warnSoft, ext?.verdict?.warnSoft),
|
|
145
|
+
declaration(names.warnInk, ext?.verdict?.warnInk),
|
|
146
|
+
declaration(names.bad, ext?.verdict?.bad),
|
|
147
|
+
declaration(names.badSoft, ext?.verdict?.badSoft),
|
|
148
|
+
declaration(names.badSoft2, ext?.verdict?.badSoft2),
|
|
149
|
+
declaration(names.badInk, ext?.verdict?.badInk)
|
|
150
|
+
];
|
|
151
|
+
const baseBlock = block(":root", baseEntries.filter(isLine));
|
|
152
|
+
const darkEntries = [
|
|
153
|
+
declaration(names.darkBackground, tokens.dark.background),
|
|
154
|
+
declaration(names.darkSurface, tokens.dark.surface),
|
|
155
|
+
declaration(names.darkSurfaceElevated, tokens.dark.surfaceElevated),
|
|
156
|
+
declaration(names.darkText, tokens.dark.text),
|
|
157
|
+
declaration(names.darkTextSecondary, tokens.dark.textSecondary),
|
|
158
|
+
declaration(names.darkBorder, tokens.dark.border),
|
|
159
|
+
declaration(names.darkDivider, tokens.dark.divider)
|
|
160
|
+
];
|
|
161
|
+
const darkLines = darkEntries.filter(isLine);
|
|
162
|
+
if (darkLines.length === 0) {
|
|
163
|
+
return baseBlock;
|
|
164
|
+
}
|
|
165
|
+
const selector = options?.darkSelector ?? DEFAULT_DARK_SELECTOR;
|
|
166
|
+
return `${baseBlock}
|
|
167
|
+
|
|
168
|
+
${block(selector, darkLines)}`;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// src/emit/toRnTheme.ts
|
|
172
|
+
function toRnTheme(tokens) {
|
|
173
|
+
const config = {
|
|
174
|
+
primary: tokens.primary,
|
|
175
|
+
secondary: tokens.secondary,
|
|
176
|
+
accent: tokens.accent,
|
|
177
|
+
semantic: { ...tokens.semantic },
|
|
178
|
+
light: { ...tokens.light },
|
|
179
|
+
dark: { ...tokens.dark },
|
|
180
|
+
branding: { ...tokens.branding }
|
|
181
|
+
};
|
|
182
|
+
if (tokens.typography !== void 0) {
|
|
183
|
+
config.typography = {
|
|
184
|
+
fontFamily: tokens.typography.fontFamily,
|
|
185
|
+
headingScale: tokens.typography.headingScale
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
return config;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// src/emit/toTailwindPreset.ts
|
|
192
|
+
function toTailwindPreset(tokens) {
|
|
193
|
+
const colors = {
|
|
194
|
+
primary: tokens.primary,
|
|
195
|
+
secondary: tokens.secondary,
|
|
196
|
+
accent: tokens.accent,
|
|
197
|
+
success: tokens.semantic.success,
|
|
198
|
+
warning: tokens.semantic.warning,
|
|
199
|
+
error: tokens.semantic.error,
|
|
200
|
+
info: tokens.semantic.info,
|
|
201
|
+
background: tokens.light.background,
|
|
202
|
+
surface: tokens.light.surface,
|
|
203
|
+
"surface-elevated": tokens.light.surfaceElevated,
|
|
204
|
+
text: tokens.light.text,
|
|
205
|
+
"text-secondary": tokens.light.textSecondary,
|
|
206
|
+
border: tokens.light.border,
|
|
207
|
+
divider: tokens.light.divider,
|
|
208
|
+
dark: {
|
|
209
|
+
background: tokens.dark.background,
|
|
210
|
+
surface: tokens.dark.surface,
|
|
211
|
+
"surface-elevated": tokens.dark.surfaceElevated,
|
|
212
|
+
text: tokens.dark.text,
|
|
213
|
+
"text-secondary": tokens.dark.textSecondary,
|
|
214
|
+
border: tokens.dark.border,
|
|
215
|
+
divider: tokens.dark.divider
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
const extend = { colors };
|
|
219
|
+
if (tokens.radii !== void 0) {
|
|
220
|
+
extend.borderRadius = {
|
|
221
|
+
xs: tokens.radii.xs,
|
|
222
|
+
sm: tokens.radii.sm,
|
|
223
|
+
DEFAULT: tokens.radii.md,
|
|
224
|
+
lg: tokens.radii.lg,
|
|
225
|
+
pill: tokens.radii.pill
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
if (tokens.shadows !== void 0) {
|
|
229
|
+
extend.boxShadow = {
|
|
230
|
+
sm: tokens.shadows.sm,
|
|
231
|
+
DEFAULT: tokens.shadows.md,
|
|
232
|
+
pop: tokens.shadows.pop
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
if (tokens.typography !== void 0) {
|
|
236
|
+
const fontFamily = { sans: [tokens.typography.fontFamily] };
|
|
237
|
+
if (tokens.typography.monoFamily !== void 0) {
|
|
238
|
+
fontFamily.mono = [tokens.typography.monoFamily];
|
|
239
|
+
}
|
|
240
|
+
extend.fontFamily = fontFamily;
|
|
241
|
+
}
|
|
242
|
+
return { theme: { extend } };
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// src/presets/aml.ts
|
|
246
|
+
var AML_TOKENS = {
|
|
247
|
+
primary: "#4f46e5",
|
|
248
|
+
secondary: "#4f46e5",
|
|
249
|
+
accent: "#4f46e5",
|
|
250
|
+
semantic: {
|
|
251
|
+
success: "#0c9d6c",
|
|
252
|
+
warning: "#b9690a",
|
|
253
|
+
error: "#d4302b",
|
|
254
|
+
info: "#4f46e5"
|
|
255
|
+
},
|
|
256
|
+
light: {
|
|
257
|
+
background: "#f4f6fa",
|
|
258
|
+
surface: "#ffffff",
|
|
259
|
+
surfaceElevated: "#f8fafc",
|
|
260
|
+
text: "#0d1526",
|
|
261
|
+
textSecondary: "#4a5567",
|
|
262
|
+
border: "#e6e9f0",
|
|
263
|
+
divider: "#e6e9f0"
|
|
264
|
+
},
|
|
265
|
+
dark: {
|
|
266
|
+
background: "#0b1220",
|
|
267
|
+
surface: "#111a2c",
|
|
268
|
+
surfaceElevated: "#111a2c",
|
|
269
|
+
text: "#e8edf6",
|
|
270
|
+
textSecondary: "#95a3bb",
|
|
271
|
+
border: "rgba(255, 255, 255, .09)",
|
|
272
|
+
divider: "rgba(255, 255, 255, .09)"
|
|
273
|
+
},
|
|
274
|
+
typography: {
|
|
275
|
+
fontFamily: '"IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
|
|
276
|
+
monoFamily: '"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace',
|
|
277
|
+
headingScale: 1
|
|
278
|
+
},
|
|
279
|
+
radii: {
|
|
280
|
+
xs: "7px",
|
|
281
|
+
sm: "9px",
|
|
282
|
+
md: "12px",
|
|
283
|
+
lg: "16px",
|
|
284
|
+
pill: "999px"
|
|
285
|
+
},
|
|
286
|
+
shadows: {
|
|
287
|
+
sm: "0 1px 2px rgba(13, 21, 38, .06)",
|
|
288
|
+
md: "0 6px 20px -8px rgba(13, 21, 38, .14), 0 1px 2px rgba(13, 21, 38, .05)",
|
|
289
|
+
pop: "0 24px 60px -16px rgba(13, 21, 38, .32)"
|
|
290
|
+
},
|
|
291
|
+
branding: {
|
|
292
|
+
logoContentId: null,
|
|
293
|
+
faviconContentId: null,
|
|
294
|
+
presetId: "aml"
|
|
295
|
+
},
|
|
296
|
+
extensions: {
|
|
297
|
+
shell: {
|
|
298
|
+
background: "#0b1220",
|
|
299
|
+
backgroundAlt: "#111a2c",
|
|
300
|
+
line: "rgba(255, 255, 255, .09)",
|
|
301
|
+
on: "#e8edf6",
|
|
302
|
+
onDim: "#95a3bb"
|
|
303
|
+
},
|
|
304
|
+
brand: {
|
|
305
|
+
press: "#4035c9",
|
|
306
|
+
soft: "#eef0fe",
|
|
307
|
+
ring: "rgba(79, 70, 229, .16)"
|
|
308
|
+
},
|
|
309
|
+
ink: {
|
|
310
|
+
base: "#0d1526",
|
|
311
|
+
soft: "#4a5567",
|
|
312
|
+
faint: "#75839a",
|
|
313
|
+
overlay: "#46506220"
|
|
314
|
+
},
|
|
315
|
+
workspace: {
|
|
316
|
+
surfaceAlt: "#f8fafc",
|
|
317
|
+
lineStrong: "#d7dce6"
|
|
318
|
+
},
|
|
319
|
+
verdict: {
|
|
320
|
+
ok: "#0c9d6c",
|
|
321
|
+
okSoft: "#e4f6ef",
|
|
322
|
+
okInk: "#0a7a55",
|
|
323
|
+
warn: "#b9690a",
|
|
324
|
+
warnSoft: "#fcf1e3",
|
|
325
|
+
warnInk: "#985608",
|
|
326
|
+
bad: "#d4302b",
|
|
327
|
+
badSoft: "#fcebea",
|
|
328
|
+
badSoft2: "#fdecec",
|
|
329
|
+
badInk: "#b21f1f"
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
// src/presets/erevna.ts
|
|
335
|
+
var EREVNA_TOKENS = {
|
|
336
|
+
primary: "#005f73",
|
|
337
|
+
secondary: "#94d2bd",
|
|
338
|
+
accent: "#008d5c",
|
|
339
|
+
semantic: {
|
|
340
|
+
success: "#0a9396",
|
|
341
|
+
warning: "#ee9b00",
|
|
342
|
+
error: "#ae2012",
|
|
343
|
+
info: "#005f73"
|
|
344
|
+
},
|
|
345
|
+
light: {
|
|
346
|
+
background: "#ffffff",
|
|
347
|
+
surface: "#f7f7f7",
|
|
348
|
+
surfaceElevated: "#ffffff",
|
|
349
|
+
text: "#001219",
|
|
350
|
+
textSecondary: "#777777",
|
|
351
|
+
border: "#e6e6e6",
|
|
352
|
+
divider: "#e6e6e6"
|
|
353
|
+
},
|
|
354
|
+
dark: {
|
|
355
|
+
background: "#001219",
|
|
356
|
+
surface: "#052f33",
|
|
357
|
+
surfaceElevated: "#073b40",
|
|
358
|
+
text: "#e9d8a6",
|
|
359
|
+
textSecondary: "#a8a090",
|
|
360
|
+
border: "#053f40",
|
|
361
|
+
divider: "#053f40"
|
|
362
|
+
},
|
|
363
|
+
branding: {
|
|
364
|
+
logoContentId: null,
|
|
365
|
+
faviconContentId: null,
|
|
366
|
+
presetId: "default"
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
// src/presets/katalogos.ts
|
|
371
|
+
var KATALOGOS_TOKENS = {
|
|
372
|
+
primary: "#005f73",
|
|
373
|
+
secondary: "#94d2bd",
|
|
374
|
+
accent: "#008d5c",
|
|
375
|
+
semantic: {
|
|
376
|
+
success: "#0a9396",
|
|
377
|
+
warning: "#ee9b00",
|
|
378
|
+
error: "#ae2012",
|
|
379
|
+
info: "#005f73"
|
|
380
|
+
},
|
|
381
|
+
light: {
|
|
382
|
+
background: "#ffffff",
|
|
383
|
+
surface: "#f7f7f7",
|
|
384
|
+
surfaceElevated: "#ffffff",
|
|
385
|
+
text: "#001219",
|
|
386
|
+
textSecondary: "#777777",
|
|
387
|
+
border: "#e6e6e6",
|
|
388
|
+
divider: "#e6e6e6"
|
|
389
|
+
},
|
|
390
|
+
dark: {
|
|
391
|
+
background: "#001219",
|
|
392
|
+
surface: "#052f33",
|
|
393
|
+
surfaceElevated: "#073b40",
|
|
394
|
+
text: "#e9d8a6",
|
|
395
|
+
textSecondary: "#a8a090",
|
|
396
|
+
border: "#053f40",
|
|
397
|
+
divider: "#053f40"
|
|
398
|
+
},
|
|
399
|
+
branding: {
|
|
400
|
+
logoContentId: null,
|
|
401
|
+
faviconContentId: null,
|
|
402
|
+
presetId: "default"
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
// src/presets/index.ts
|
|
407
|
+
var PRESETS = {
|
|
408
|
+
aml: AML_TOKENS,
|
|
409
|
+
erevna: EREVNA_TOKENS,
|
|
410
|
+
katalogos: KATALOGOS_TOKENS
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
export { AML_CSS_VAR_NAMES, AML_TOKENS, DEFAULT_CSS_VAR_NAMES, EREVNA_TOKENS, KATALOGOS_TOKENS, PRESETS, toCssVars, toRnTheme, toTailwindPreset };
|
|
414
|
+
//# sourceMappingURL=index.mjs.map
|
|
415
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/varNames.ts","../src/emit/toCssVars.ts","../src/emit/toRnTheme.ts","../src/emit/toTailwindPreset.ts","../src/presets/aml.ts","../src/presets/erevna.ts","../src/presets/katalogos.ts","../src/presets/index.ts"],"names":[],"mappings":";AA+FO,IAAM,qBAAA,GAAqC;AAAA,EAChD,OAAA,EAAS,WAAA;AAAA,EACT,SAAA,EAAW,aAAA;AAAA,EACX,MAAA,EAAQ,UAAA;AAAA,EACR,OAAA,EAAS,WAAA;AAAA,EACT,OAAA,EAAS,WAAA;AAAA,EACT,KAAA,EAAO,SAAA;AAA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ACjB,IAAA,EAAM,SAAA;AAAA,IACN,aAAA,EAAe,SAAA;AAAA,IACf,MAAA,EAAQ,SAAA;AAAA,IACR,OAAA,EAAS;AAAA,GACX;AAAA,EAEA,IAAA,EAAM;AAAA,IACJ,UAAA,EAAY,SAAA;AAAA,IACZ,OAAA,EAAS,SAAA;AAAA,IACT,eAAA,EAAiB,SAAA;AAAA,IACjB,IAAA,EAAM,SAAA;AAAA,IACN,aAAA,EAAe,SAAA;AAAA,IACf,MAAA,EAAQ,SAAA;AAAA,IACR,OAAA,EAAS;AAAA,GACX;AAAA,EAEA,QAAA,EAAU;AAAA,IACR,aAAA,EAAe,IAAA;AAAA,IACf,gBAAA,EAAkB,IAAA;AAAA,IAClB,QAAA,EAAU;AAAA;AAEd;;;ACrCO,IAAM,OAAA,GAAkD;AAAA,EAC7D,GAAA,EAAK,UAAA;AAAA,EACL,MAAA,EAAQ,aAAA;AAAA,EACR,SAAA,EAAW;AACb","file":"index.mjs","sourcesContent":["/**\n * CSS custom-property NAME MAPS — the cross-stack naming contract.\n *\n * `toCssVars(tokens, names)` reads a {@link DesignTokens} and a {@link CssVarNames}\n * map that says which CSS variable each token field is emitted as. A field whose\n * name is `undefined` in the map is skipped, which lets a stack emit only the\n * variables it actually consumes.\n *\n * Two maps ship:\n * - {@link DEFAULT_CSS_VAR_NAMES} — canonical kebab names (`--primary`, `--bg`, …).\n * The dark-mode fields have names, so a dark-mode block is emitted.\n * - {@link AML_CSS_VAR_NAMES} — the vanilla-JS AML console's existing variable\n * names (`--brand`, `--shell`, `--ok`, `--r`, …), so `wwwroot/shared/ui.css`\n * keeps working byte-for-byte. Core fields that AML expresses via an extension\n * variable are mapped to `undefined` (skipped) to avoid emitting duplicates,\n * and the dark-mode fields are `undefined` (AML has no light/dark toggle — its\n * dark app-shell is captured in the `shell*` extension inside `:root`).\n */\n\n/** Maps each {@link DesignTokens} field to the CSS variable it is emitted as (or `undefined` to skip). */\nexport interface CssVarNames {\n // brand\n primary?: string;\n secondary?: string;\n accent?: string;\n // semantic\n success?: string;\n warning?: string;\n error?: string;\n info?: string;\n // light-mode colours (emitted in :root)\n lightBackground?: string;\n lightSurface?: string;\n lightSurfaceElevated?: string;\n lightText?: string;\n lightTextSecondary?: string;\n lightBorder?: string;\n lightDivider?: string;\n // dark-mode colours (emitted in the dark selector block; omit all to skip the block)\n darkBackground?: string;\n darkSurface?: string;\n darkSurfaceElevated?: string;\n darkText?: string;\n darkTextSecondary?: string;\n darkBorder?: string;\n darkDivider?: string;\n // radii\n radiusXs?: string;\n radiusSm?: string;\n radiusMd?: string;\n radiusLg?: string;\n radiusPill?: string;\n // shadows\n shadowSm?: string;\n shadowMd?: string;\n shadowPop?: string;\n // fonts\n fontFamily?: string;\n monoFamily?: string;\n // extensions — shell\n shellBackground?: string;\n shellBackgroundAlt?: string;\n shellLine?: string;\n shellOn?: string;\n shellOnDim?: string;\n // extensions — brand extras\n brandPress?: string;\n brandSoft?: string;\n brandRing?: string;\n // extensions — ink scale\n inkBase?: string;\n inkSoft?: string;\n inkFaint?: string;\n inkOverlay?: string;\n // extensions — workspace extras\n surfaceAlt?: string;\n lineStrong?: string;\n // extensions — verdict palette\n ok?: string;\n okSoft?: string;\n okInk?: string;\n warn?: string;\n warnSoft?: string;\n warnInk?: string;\n bad?: string;\n badSoft?: string;\n badSoft2?: string;\n badInk?: string;\n}\n\n/**\n * Canonical kebab-case variable names. A stack with no existing CSS-variable\n * convention (or a fresh consumer) should adopt these. Extension fields are\n * omitted because the RN/DOM presets carry no extensions.\n */\nexport const DEFAULT_CSS_VAR_NAMES: CssVarNames = {\n primary: '--primary',\n secondary: '--secondary',\n accent: '--accent',\n success: '--success',\n warning: '--warning',\n error: '--error',\n info: '--info',\n lightBackground: '--background',\n lightSurface: '--surface',\n lightSurfaceElevated: '--surface-elevated',\n lightText: '--text',\n lightTextSecondary: '--text-secondary',\n lightBorder: '--border',\n lightDivider: '--divider',\n darkBackground: '--background',\n darkSurface: '--surface',\n darkSurfaceElevated: '--surface-elevated',\n darkText: '--text',\n darkTextSecondary: '--text-secondary',\n darkBorder: '--border',\n darkDivider: '--divider',\n radiusXs: '--radius-xs',\n radiusSm: '--radius-sm',\n radiusMd: '--radius',\n radiusLg: '--radius-lg',\n radiusPill: '--radius-pill',\n shadowSm: '--shadow-sm',\n shadowMd: '--shadow',\n shadowPop: '--shadow-pop',\n fontFamily: '--font',\n monoFamily: '--font-mono',\n};\n\n/**\n * The AML console's existing `wwwroot/shared/ui.css` variable names. Emitting the\n * `aml` preset with this map reproduces AML's current `:root` byte-for-byte, so\n * ui.css keeps working with zero visual change.\n *\n * Core fields that AML already expresses through an extension variable are mapped\n * to `undefined` to avoid duplicate declarations:\n * - `secondary`/`accent` — AML has a single brand; ui.css never reads them.\n * - `success`/`warning`/`error`/`info` — emitted via the verdict extension\n * (`--ok`/`--warn`/`--bad`); `info` has no AML variable.\n * - `light.surfaceElevated` → via `workspace.surfaceAlt` (`--surface-2`).\n * - `light.text` → via `ink.base` (`--ink`); `light.textSecondary` → `ink.soft`.\n * - `light.divider` — AML reuses `--line`, so no separate variable.\n * - all `dark*` — AML has no dark-mode toggle (its shell lives in the extension).\n */\nexport const AML_CSS_VAR_NAMES: CssVarNames = {\n primary: '--brand',\n // secondary/accent intentionally omitted (single-brand console)\n // semantic emitted via verdict extension; info has no AML variable\n lightBackground: '--bg',\n lightSurface: '--surface',\n // lightSurfaceElevated via workspace.surfaceAlt (--surface-2)\n // lightText via ink.base (--ink); lightTextSecondary via ink.soft (--ink-soft)\n lightBorder: '--line',\n // lightDivider reuses --line\n // dark* omitted (no dark-mode toggle)\n radiusXs: '--r-xs',\n radiusSm: '--r-sm',\n radiusMd: '--r',\n radiusLg: '--r-lg',\n radiusPill: '--r-pill',\n shadowSm: '--sh-1',\n shadowMd: '--sh-2',\n shadowPop: '--sh-pop',\n fontFamily: '--font',\n monoFamily: '--mono',\n shellBackground: '--shell',\n shellBackgroundAlt: '--shell-2',\n shellLine: '--shell-line',\n shellOn: '--on-shell',\n shellOnDim: '--on-shell-dim',\n brandPress: '--brand-press',\n brandSoft: '--brand-soft',\n brandRing: '--brand-ring',\n inkBase: '--ink',\n inkSoft: '--ink-soft',\n inkFaint: '--ink-faint',\n inkOverlay: '--ink-2',\n surfaceAlt: '--surface-2',\n lineStrong: '--line-strong',\n ok: '--ok',\n okSoft: '--ok-soft',\n okInk: '--ok-ink',\n warn: '--warn',\n warnSoft: '--warn-soft',\n warnInk: '--warn-ink',\n bad: '--bad',\n badSoft: '--bad-soft',\n badSoft2: '--bad-soft2',\n badInk: '--bad-ink',\n};\n","import type { DesignTokens } from '../types';\nimport type { CssVarNames } from '../varNames';\n\n/** Options for {@link toCssVars}. */\nexport interface ToCssVarsOptions {\n /**\n * Selector for the dark-mode block. Only used when the name map defines any\n * `dark*` variables. Defaults to `:root[data-theme=\"dark\"]`.\n */\n darkSelector?: string;\n}\n\nconst INDENT = ' ';\nconst DEFAULT_DARK_SELECTOR = ':root[data-theme=\"dark\"]';\n\n/** A single ` --name: value;` line, or `null` when the name or value is absent. */\nfunction declaration(name: string | undefined, value: string | undefined): string | null {\n if (name === undefined || value === undefined) {\n return null;\n }\n return `${INDENT}${name}: ${value};`;\n}\n\nfunction isLine(entry: string | null): entry is string {\n return entry !== null;\n}\n\nfunction block(selector: string, lines: readonly string[]): string {\n return `${selector} {\\n${lines.join('\\n')}\\n}`;\n}\n\n/**\n * Emit a {@link DesignTokens} as CSS custom properties. Base tokens (brand,\n * semantic, light-mode, radii, shadows, fonts and any extensions) go in a\n * `:root {}` block; dark-mode tokens go in a separate selector block, emitted\n * only when the name map defines at least one `dark*` variable.\n */\nexport function toCssVars(\n tokens: DesignTokens,\n names: CssVarNames,\n options?: ToCssVarsOptions,\n): string {\n const ext = tokens.extensions;\n const baseEntries: Array<string | null> = [\n declaration(names.primary, tokens.primary),\n declaration(names.secondary, tokens.secondary),\n declaration(names.accent, tokens.accent),\n declaration(names.success, tokens.semantic.success),\n declaration(names.warning, tokens.semantic.warning),\n declaration(names.error, tokens.semantic.error),\n declaration(names.info, tokens.semantic.info),\n declaration(names.lightBackground, tokens.light.background),\n declaration(names.lightSurface, tokens.light.surface),\n declaration(names.lightSurfaceElevated, tokens.light.surfaceElevated),\n declaration(names.lightText, tokens.light.text),\n declaration(names.lightTextSecondary, tokens.light.textSecondary),\n declaration(names.lightBorder, tokens.light.border),\n declaration(names.lightDivider, tokens.light.divider),\n declaration(names.radiusXs, tokens.radii?.xs),\n declaration(names.radiusSm, tokens.radii?.sm),\n declaration(names.radiusMd, tokens.radii?.md),\n declaration(names.radiusLg, tokens.radii?.lg),\n declaration(names.radiusPill, tokens.radii?.pill),\n declaration(names.shadowSm, tokens.shadows?.sm),\n declaration(names.shadowMd, tokens.shadows?.md),\n declaration(names.shadowPop, tokens.shadows?.pop),\n declaration(names.fontFamily, tokens.typography?.fontFamily),\n declaration(names.monoFamily, tokens.typography?.monoFamily),\n declaration(names.shellBackground, ext?.shell?.background),\n declaration(names.shellBackgroundAlt, ext?.shell?.backgroundAlt),\n declaration(names.shellLine, ext?.shell?.line),\n declaration(names.shellOn, ext?.shell?.on),\n declaration(names.shellOnDim, ext?.shell?.onDim),\n declaration(names.brandPress, ext?.brand?.press),\n declaration(names.brandSoft, ext?.brand?.soft),\n declaration(names.brandRing, ext?.brand?.ring),\n declaration(names.inkBase, ext?.ink?.base),\n declaration(names.inkSoft, ext?.ink?.soft),\n declaration(names.inkFaint, ext?.ink?.faint),\n declaration(names.inkOverlay, ext?.ink?.overlay),\n declaration(names.surfaceAlt, ext?.workspace?.surfaceAlt),\n declaration(names.lineStrong, ext?.workspace?.lineStrong),\n declaration(names.ok, ext?.verdict?.ok),\n declaration(names.okSoft, ext?.verdict?.okSoft),\n declaration(names.okInk, ext?.verdict?.okInk),\n declaration(names.warn, ext?.verdict?.warn),\n declaration(names.warnSoft, ext?.verdict?.warnSoft),\n declaration(names.warnInk, ext?.verdict?.warnInk),\n declaration(names.bad, ext?.verdict?.bad),\n declaration(names.badSoft, ext?.verdict?.badSoft),\n declaration(names.badSoft2, ext?.verdict?.badSoft2),\n declaration(names.badInk, ext?.verdict?.badInk),\n ];\n const baseBlock = block(':root', baseEntries.filter(isLine));\n\n const darkEntries: Array<string | null> = [\n declaration(names.darkBackground, tokens.dark.background),\n declaration(names.darkSurface, tokens.dark.surface),\n declaration(names.darkSurfaceElevated, tokens.dark.surfaceElevated),\n declaration(names.darkText, tokens.dark.text),\n declaration(names.darkTextSecondary, tokens.dark.textSecondary),\n declaration(names.darkBorder, tokens.dark.border),\n declaration(names.darkDivider, tokens.dark.divider),\n ];\n const darkLines = darkEntries.filter(isLine);\n if (darkLines.length === 0) {\n return baseBlock;\n }\n\n const selector = options?.darkSelector ?? DEFAULT_DARK_SELECTOR;\n return `${baseBlock}\\n\\n${block(selector, darkLines)}`;\n}\n","import type { Branding, DesignTokens, ModeColors } from '../types';\n\n/**\n * The RN-web theme-config shape. Structurally compatible with\n * `@dloizides/tenant-theme-web`'s `TenantThemeConfig` (and each RN app's local\n * `TenantThemeConfig`), so a preset can be dropped in as the `defaultThemeConfig`\n * fallback without any mapping. Semantic and typography are optional (an RN app\n * may leave them unset, exactly as the current `default` preset does).\n */\nexport interface RnThemeConfig {\n primary: string;\n secondary: string;\n accent: string;\n semantic?: { success?: string; warning?: string; error?: string; info?: string };\n light: ModeColors;\n dark: ModeColors;\n typography?: { fontFamily?: string; headingScale?: number };\n branding: Branding;\n}\n\n/**\n * Emit a {@link DesignTokens} as an RN-web `TenantThemeConfig`-compatible object.\n * Only the core fields are projected; the `radii`/`shadows`/`extensions`\n * supersets are intentionally dropped (RN-web has no centralized token for them).\n * `typography` is included only when the preset defines it, so a preset with no\n * typography yields a config with no `typography` key — byte-identical to the RN\n * apps' current `DEFAULT_THEME_CONFIG`.\n */\nexport function toRnTheme(tokens: DesignTokens): RnThemeConfig {\n const config: RnThemeConfig = {\n primary: tokens.primary,\n secondary: tokens.secondary,\n accent: tokens.accent,\n semantic: { ...tokens.semantic },\n light: { ...tokens.light },\n dark: { ...tokens.dark },\n branding: { ...tokens.branding },\n };\n if (tokens.typography !== undefined) {\n config.typography = {\n fontFamily: tokens.typography.fontFamily,\n headingScale: tokens.typography.headingScale,\n };\n }\n return config;\n}\n","import type { DesignTokens } from '../types';\n\n/** Nested colour scale emitted under `theme.extend.colors`. */\nexport interface TailwindColors {\n primary: string;\n secondary: string;\n accent: string;\n success: string;\n warning: string;\n error: string;\n info: string;\n background: string;\n surface: string;\n 'surface-elevated': string;\n text: string;\n 'text-secondary': string;\n border: string;\n divider: string;\n dark: {\n background: string;\n surface: string;\n 'surface-elevated': string;\n text: string;\n 'text-secondary': string;\n border: string;\n divider: string;\n };\n}\n\n/** A Tailwind preset object: `{ theme: { extend: { … } } }`. Spread into a `tailwind.config`'s `presets`. */\nexport interface TailwindPreset {\n theme: {\n extend: {\n colors: TailwindColors;\n borderRadius?: Record<string, string>;\n boxShadow?: Record<string, string>;\n fontFamily?: Record<string, string[]>;\n };\n };\n}\n\n/**\n * Emit a {@link DesignTokens} as a Tailwind preset for the DOM-React ThemeStudio.\n * Colours are always present; `borderRadius`/`boxShadow`/`fontFamily` are emitted\n * only when the preset defines the corresponding token group.\n */\nexport function toTailwindPreset(tokens: DesignTokens): TailwindPreset {\n const colors: TailwindColors = {\n primary: tokens.primary,\n secondary: tokens.secondary,\n accent: tokens.accent,\n success: tokens.semantic.success,\n warning: tokens.semantic.warning,\n error: tokens.semantic.error,\n info: tokens.semantic.info,\n background: tokens.light.background,\n surface: tokens.light.surface,\n 'surface-elevated': tokens.light.surfaceElevated,\n text: tokens.light.text,\n 'text-secondary': tokens.light.textSecondary,\n border: tokens.light.border,\n divider: tokens.light.divider,\n dark: {\n background: tokens.dark.background,\n surface: tokens.dark.surface,\n 'surface-elevated': tokens.dark.surfaceElevated,\n text: tokens.dark.text,\n 'text-secondary': tokens.dark.textSecondary,\n border: tokens.dark.border,\n divider: tokens.dark.divider,\n },\n };\n\n const extend: TailwindPreset['theme']['extend'] = { colors };\n\n if (tokens.radii !== undefined) {\n extend.borderRadius = {\n xs: tokens.radii.xs,\n sm: tokens.radii.sm,\n DEFAULT: tokens.radii.md,\n lg: tokens.radii.lg,\n pill: tokens.radii.pill,\n };\n }\n if (tokens.shadows !== undefined) {\n extend.boxShadow = {\n sm: tokens.shadows.sm,\n DEFAULT: tokens.shadows.md,\n pop: tokens.shadows.pop,\n };\n }\n if (tokens.typography !== undefined) {\n const fontFamily: Record<string, string[]> = { sans: [tokens.typography.fontFamily] };\n if (tokens.typography.monoFamily !== undefined) {\n fontFamily.mono = [tokens.typography.monoFamily];\n }\n extend.fontFamily = fontFamily;\n }\n\n return { theme: { extend } };\n}\n","import type { DesignTokens } from '../types';\n\n/**\n * PROOViD AML console (Stack A — vanilla JS) tokens.\n *\n * Seeded byte-for-byte from `PROOViD/AMLService/AMLService/wwwroot/shared/ui.css`\n * `:root`. Emitting via `toCssVars(AML_TOKENS, AML_CSS_VAR_NAMES)` reproduces that\n * `:root` block exactly, so ui.css keeps working with zero visual change.\n *\n * Name-mapping notes (AML has no `TenantThemeConfig`-style secondary/accent or\n * light/dark toggle):\n * - `primary` = `--brand`. `secondary`/`accent` mirror it (ui.css reads neither);\n * they exist only so the core shape is complete.\n * - `semantic` mirrors the verdict palette (`--ok`/`--warn`/`--bad`); `info` has\n * no AML variable, so it mirrors `--brand`.\n * - `light` = the light workspace (`--bg`/`--surface`/…); `dark` = the dark app\n * SHELL (`--shell`/`--shell-2`/…) so the shape is complete. The AML name map\n * omits all `dark*` names, so no dark-mode block is emitted; the shell is\n * emitted from the `extensions.shell` group inside `:root`, matching ui.css.\n */\nexport const AML_TOKENS: DesignTokens = {\n primary: '#4f46e5',\n secondary: '#4f46e5',\n accent: '#4f46e5',\n\n semantic: {\n success: '#0c9d6c',\n warning: '#b9690a',\n error: '#d4302b',\n info: '#4f46e5',\n },\n\n light: {\n background: '#f4f6fa',\n surface: '#ffffff',\n surfaceElevated: '#f8fafc',\n text: '#0d1526',\n textSecondary: '#4a5567',\n border: '#e6e9f0',\n divider: '#e6e9f0',\n },\n\n dark: {\n background: '#0b1220',\n surface: '#111a2c',\n surfaceElevated: '#111a2c',\n text: '#e8edf6',\n textSecondary: '#95a3bb',\n border: 'rgba(255, 255, 255, .09)',\n divider: 'rgba(255, 255, 255, .09)',\n },\n\n typography: {\n fontFamily: '\"IBM Plex Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif',\n monoFamily: '\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, monospace',\n headingScale: 1,\n },\n\n radii: {\n xs: '7px',\n sm: '9px',\n md: '12px',\n lg: '16px',\n pill: '999px',\n },\n\n shadows: {\n sm: '0 1px 2px rgba(13, 21, 38, .06)',\n md: '0 6px 20px -8px rgba(13, 21, 38, .14), 0 1px 2px rgba(13, 21, 38, .05)',\n pop: '0 24px 60px -16px rgba(13, 21, 38, .32)',\n },\n\n branding: {\n logoContentId: null,\n faviconContentId: null,\n presetId: 'aml',\n },\n\n extensions: {\n shell: {\n background: '#0b1220',\n backgroundAlt: '#111a2c',\n line: 'rgba(255, 255, 255, .09)',\n on: '#e8edf6',\n onDim: '#95a3bb',\n },\n brand: {\n press: '#4035c9',\n soft: '#eef0fe',\n ring: 'rgba(79, 70, 229, .16)',\n },\n ink: {\n base: '#0d1526',\n soft: '#4a5567',\n faint: '#75839a',\n overlay: '#46506220',\n },\n workspace: {\n surfaceAlt: '#f8fafc',\n lineStrong: '#d7dce6',\n },\n verdict: {\n ok: '#0c9d6c',\n okSoft: '#e4f6ef',\n okInk: '#0a7a55',\n warn: '#b9690a',\n warnSoft: '#fcf1e3',\n warnInk: '#985608',\n bad: '#d4302b',\n badSoft: '#fcebea',\n badSoft2: '#fdecec',\n badInk: '#b21f1f',\n },\n },\n};\n","import type { DesignTokens } from '../types';\n\n/**\n * Erevna (surveys/forms — realm `questioner`) tokens.\n *\n * Seeded byte-for-byte from `erevna-web/src/theme/presets/default.ts`\n * (`DEFAULT_THEME_CONFIG`) and `erevna-web/src/theme/utils/palette.ts`\n * (`basePalette`). Adopting this preset via `toRnTheme(EREVNA_TOKENS)` yields the\n * app's current `DEFAULT_THEME_CONFIG` unchanged. No `typography`/`radii`/\n * `shadows` — the RN theme has no centralized tokens for those today, so they are\n * omitted (nothing to emit → zero visual change).\n */\nexport const EREVNA_TOKENS: DesignTokens = {\n primary: '#005f73',\n secondary: '#94d2bd',\n accent: '#008d5c',\n\n semantic: {\n success: '#0a9396',\n warning: '#ee9b00',\n error: '#ae2012',\n info: '#005f73',\n },\n\n light: {\n background: '#ffffff',\n surface: '#f7f7f7',\n surfaceElevated: '#ffffff',\n text: '#001219',\n textSecondary: '#777777',\n border: '#e6e6e6',\n divider: '#e6e6e6',\n },\n\n dark: {\n background: '#001219',\n surface: '#052f33',\n surfaceElevated: '#073b40',\n text: '#e9d8a6',\n textSecondary: '#a8a090',\n border: '#053f40',\n divider: '#053f40',\n },\n\n branding: {\n logoContentId: null,\n faviconContentId: null,\n presetId: 'default',\n },\n};\n","import type { DesignTokens } from '../types';\n\n/**\n * Katalogos (online menus — realm `onlinemenu`) tokens.\n *\n * Seeded byte-for-byte from `katalogos-web/src/theme/presets/default.ts`\n * (`DEFAULT_THEME_CONFIG`), which is currently identical to Erevna's default.\n * Kept as a separate preset so the two apps can diverge later without touching\n * the other. Adopting via `toRnTheme(KATALOGOS_TOKENS)` yields the app's current\n * `DEFAULT_THEME_CONFIG` unchanged.\n */\nexport const KATALOGOS_TOKENS: DesignTokens = {\n primary: '#005f73',\n secondary: '#94d2bd',\n accent: '#008d5c',\n\n semantic: {\n success: '#0a9396',\n warning: '#ee9b00',\n error: '#ae2012',\n info: '#005f73',\n },\n\n light: {\n background: '#ffffff',\n surface: '#f7f7f7',\n surfaceElevated: '#ffffff',\n text: '#001219',\n textSecondary: '#777777',\n border: '#e6e6e6',\n divider: '#e6e6e6',\n },\n\n dark: {\n background: '#001219',\n surface: '#052f33',\n surfaceElevated: '#073b40',\n text: '#e9d8a6',\n textSecondary: '#a8a090',\n border: '#053f40',\n divider: '#053f40',\n },\n\n branding: {\n logoContentId: null,\n faviconContentId: null,\n presetId: 'default',\n },\n};\n","import type { DesignTokens } from '../types';\n\nimport { AML_TOKENS } from './aml';\nimport { EREVNA_TOKENS } from './erevna';\nimport { KATALOGOS_TOKENS } from './katalogos';\n\nexport { AML_TOKENS } from './aml';\nexport { EREVNA_TOKENS } from './erevna';\nexport { KATALOGOS_TOKENS } from './katalogos';\n\n/** Every shipped app preset keyed by app slug. */\nexport const PRESETS: Readonly<Record<string, DesignTokens>> = {\n aml: AML_TOKENS,\n erevna: EREVNA_TOKENS,\n katalogos: KATALOGOS_TOKENS,\n};\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dloizides/design-tokens",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Framework-agnostic design-token SOURCE for the dloizides.com portfolio. One typed token set per app (aml / erevna / katalogos), seeded byte-for-byte from each app's CURRENT values, emitted in three forms from one source: CSS custom properties (:root) for the vanilla-JS AML console, a TenantThemeConfig-shaped JS/TS object for the RN-web apps, and a Tailwind preset for the DOM-React ThemeStudio. Values only, no components. Token names align with @dloizides/tenant-theme-web's TenantThemeConfig so per-tenant overrides layer cleanly.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"design-tokens",
|
|
7
|
+
"theme",
|
|
8
|
+
"css-variables",
|
|
9
|
+
"tailwind-preset",
|
|
10
|
+
"tenant-theme",
|
|
11
|
+
"dloizides"
|
|
12
|
+
],
|
|
13
|
+
"author": "dloizides",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/openmindednewby/design-tokens.git"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://github.com/openmindednewby/design-tokens#readme",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/openmindednewby/design-tokens/issues"
|
|
22
|
+
},
|
|
23
|
+
"main": "./dist/index.js",
|
|
24
|
+
"module": "./dist/index.mjs",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"require": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"default": "./dist/index.js"
|
|
31
|
+
},
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/index.d.mts",
|
|
34
|
+
"default": "./dist/index.mjs"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"dist",
|
|
40
|
+
"README.md",
|
|
41
|
+
"CHANGELOG.md"
|
|
42
|
+
],
|
|
43
|
+
"sideEffects": false,
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18.0.0"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "rimraf dist && tsup",
|
|
49
|
+
"build:watch": "tsup --watch",
|
|
50
|
+
"test": "jest",
|
|
51
|
+
"test:watch": "jest --watch",
|
|
52
|
+
"test:coverage": "jest --coverage",
|
|
53
|
+
"lint": "eslint src --ext .ts",
|
|
54
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
55
|
+
"typecheck": "tsc --noEmit",
|
|
56
|
+
"clean": "rimraf dist",
|
|
57
|
+
"security:audit": "npm audit --audit-level=high",
|
|
58
|
+
"deps:outdated": "npm outdated || exit 0",
|
|
59
|
+
"deps:unused": "npx depcheck --ignores \"@types/jest,@types/node,rimraf\"",
|
|
60
|
+
"deps:licenses": "npx license-checker --onlyAllow \"MIT;Apache-2.0;ISC;BSD-2-Clause;BSD-3-Clause;0BSD;Unlicense;CC0-1.0\"",
|
|
61
|
+
"deps:health": "npm run deps:outdated && npm run deps:unused",
|
|
62
|
+
"prepublishOnly": "npm run clean && npm run build && npm run test"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@types/jest": "^29.5.0",
|
|
66
|
+
"@types/node": "^20.19.32",
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
68
|
+
"@typescript-eslint/parser": "^7.0.0",
|
|
69
|
+
"eslint": "^8.57.0",
|
|
70
|
+
"eslint-plugin-sonarjs": "^4.0.3",
|
|
71
|
+
"jest": "^29.7.0",
|
|
72
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
73
|
+
"rimraf": "^5.0.0",
|
|
74
|
+
"ts-jest": "^29.1.0",
|
|
75
|
+
"tsup": "^8.0.0",
|
|
76
|
+
"typescript": "^5.4.0"
|
|
77
|
+
}
|
|
78
|
+
}
|