@latty-ds/tokens 0.2.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.
@@ -0,0 +1,377 @@
1
+ {
2
+ "color": {
3
+ "primary": {
4
+ "50": "#f0e5df",
5
+ "100": "#ffd4b5",
6
+ "200": "#ffbb87",
7
+ "300": "#ffa860",
8
+ "400": "#ff9539",
9
+ "500": "#ff8200",
10
+ "600": "#d56400",
11
+ "700": "#963b00",
12
+ "800": "#5e3c25",
13
+ "900": "#3c1d05"
14
+ },
15
+ "primary-muted": {
16
+ "50": "#e9e7e6",
17
+ "100": "#e8dfda",
18
+ "200": "#dfd1c8",
19
+ "300": "#dac8bd",
20
+ "400": "#d2beb2",
21
+ "500": "#c6b1a5",
22
+ "600": "#a08e82",
23
+ "700": "#6b5c53",
24
+ "800": "#50453e",
25
+ "900": "#2b2521"
26
+ },
27
+ "secondary": {
28
+ "50": "#e5e7f1",
29
+ "100": "#cbd2ff",
30
+ "200": "#a3acf7",
31
+ "300": "#8a93f4",
32
+ "400": "#7076e5",
33
+ "500": "#5252c5",
34
+ "600": "#4544ad",
35
+ "700": "#333187",
36
+ "800": "#2e3254",
37
+ "900": "#202343"
38
+ },
39
+ "secondary-muted": {
40
+ "50": "#e7e8e9",
41
+ "100": "#d5d7df",
42
+ "200": "#b4b7c4",
43
+ "300": "#a0a3b3",
44
+ "400": "#898c9e",
45
+ "500": "#6c6f81",
46
+ "600": "#5a5d6d",
47
+ "700": "#414351",
48
+ "800": "#363742",
49
+ "900": "#25262c"
50
+ },
51
+ "success": {
52
+ "50": "#e1ebe2",
53
+ "100": "#beedc6",
54
+ "200": "#94e4a4",
55
+ "300": "#70df8b",
56
+ "400": "#4bd573",
57
+ "500": "#22c55e",
58
+ "600": "#00a244",
59
+ "700": "#006f22",
60
+ "800": "#2b4d32",
61
+ "900": "#0c2e16"
62
+ },
63
+ "success-muted": {
64
+ "50": "#e7e8e7",
65
+ "100": "#dbe3dc",
66
+ "200": "#cad7cc",
67
+ "300": "#bfcfc1",
68
+ "400": "#b3c5b6",
69
+ "500": "#a5b8a8",
70
+ "600": "#839586",
71
+ "700": "#546256",
72
+ "800": "#404a41",
73
+ "900": "#222823"
74
+ },
75
+ "warning": {
76
+ "50": "#ece7de",
77
+ "100": "#f5e0b5",
78
+ "200": "#f6d289",
79
+ "300": "#f9c962",
80
+ "400": "#f7bf3a",
81
+ "500": "#eeb308",
82
+ "600": "#c38e00",
83
+ "700": "#845a00",
84
+ "800": "#584720",
85
+ "900": "#332400"
86
+ },
87
+ "warning-muted": {
88
+ "50": "#e8e8e6",
89
+ "100": "#e7e4dc",
90
+ "200": "#e2dcd0",
91
+ "300": "#ded7c8",
92
+ "400": "#dad1c0",
93
+ "500": "#d2c9b8",
94
+ "600": "#a9a090",
95
+ "700": "#6d6659",
96
+ "800": "#504c42",
97
+ "900": "#292621"
98
+ },
99
+ "error": {
100
+ "50": "#f3e4e2",
101
+ "100": "#ffc8c1",
102
+ "200": "#ffa198",
103
+ "300": "#ff847b",
104
+ "400": "#ff6560",
105
+ "500": "#ef4444",
106
+ "600": "#cb2d31",
107
+ "700": "#950e18",
108
+ "800": "#5a312e",
109
+ "900": "#3f1917"
110
+ },
111
+ "error-muted": {
112
+ "50": "#e9e7e7",
113
+ "100": "#e6dad8",
114
+ "200": "#d6c3c1",
115
+ "300": "#cdb4b2",
116
+ "400": "#bfa4a1",
117
+ "500": "#ab908d",
118
+ "600": "#8d7572",
119
+ "700": "#624e4c",
120
+ "800": "#4c3d3b",
121
+ "900": "#2d2423"
122
+ },
123
+ "info": {
124
+ "50": "#e1e9ef",
125
+ "100": "#bce4fe",
126
+ "200": "#8fd2fd",
127
+ "300": "#6ac7ff",
128
+ "400": "#43b9fa",
129
+ "500": "#0ea5e9",
130
+ "600": "#0087c4",
131
+ "700": "#005c8d",
132
+ "800": "#1e465d",
133
+ "900": "#082a3c"
134
+ },
135
+ "info-muted": {
136
+ "50": "#e7e8e9",
137
+ "100": "#d9e0e5",
138
+ "200": "#c5d0d7",
139
+ "300": "#b8c6cf",
140
+ "400": "#aab9c4",
141
+ "500": "#99a9b3",
142
+ "600": "#7a8993",
143
+ "700": "#4f5b63",
144
+ "800": "#3d464c",
145
+ "900": "#22272a"
146
+ },
147
+ "neutral": {
148
+ "50": "#fafafa",
149
+ "100": "#f3f3f3",
150
+ "200": "#e4e4e4",
151
+ "300": "#cacaca",
152
+ "400": "#ababab",
153
+ "500": "#868686",
154
+ "600": "#696969",
155
+ "700": "#4d4d4d",
156
+ "800": "#333333",
157
+ "900": "#1b1b1b"
158
+ },
159
+ "white": "#FFFFFF",
160
+ "black": "#000000"
161
+ },
162
+ "spacing": {
163
+ "px": {
164
+ "0": "0px",
165
+ "1": "4px",
166
+ "2": "8px",
167
+ "3": "12px",
168
+ "4": "16px",
169
+ "5": "20px",
170
+ "6": "24px",
171
+ "7": "28px",
172
+ "8": "32px",
173
+ "9": "36px",
174
+ "10": "40px",
175
+ "11": "44px",
176
+ "12": "48px",
177
+ "13": "52px",
178
+ "14": "56px",
179
+ "15": "60px",
180
+ "16": "64px",
181
+ "17": "68px",
182
+ "18": "72px",
183
+ "19": "76px",
184
+ "20": "80px",
185
+ "21": "84px",
186
+ "22": "88px",
187
+ "23": "92px",
188
+ "24": "96px"
189
+ },
190
+ "rem": {
191
+ "0": "0rem",
192
+ "1": "0.25rem",
193
+ "2": "0.5rem",
194
+ "3": "0.75rem",
195
+ "4": "1rem",
196
+ "5": "1.25rem",
197
+ "6": "1.5rem",
198
+ "7": "1.75rem",
199
+ "8": "2rem",
200
+ "9": "2.25rem",
201
+ "10": "2.5rem",
202
+ "11": "2.75rem",
203
+ "12": "3rem",
204
+ "13": "3.25rem",
205
+ "14": "3.5rem",
206
+ "15": "3.75rem",
207
+ "16": "4rem",
208
+ "17": "4.25rem",
209
+ "18": "4.5rem",
210
+ "19": "4.75rem",
211
+ "20": "5rem",
212
+ "21": "5.25rem",
213
+ "22": "5.5rem",
214
+ "23": "5.75rem",
215
+ "24": "6rem"
216
+ }
217
+ },
218
+ "border": {
219
+ "radius": "0.5rem",
220
+ "square": false
221
+ },
222
+ "typography": {
223
+ "fontFamily": "\"Hanken Grotesk\", sans-serif"
224
+ },
225
+ "elevation": {
226
+ "0": "none",
227
+ "1": "0 1px 3px 0 rgb(27 27 27 / 0.1), 0 1px 2px 0 rgb(27 27 27 / 0.06)",
228
+ "2": "0 4px 6px -1px rgb(27 27 27 / 0.1), 0 2px 4px -1px rgb(27 27 27 / 0.06)",
229
+ "3": "0 10px 15px -3px rgb(27 27 27 / 0.1), 0 4px 6px -2px rgb(27 27 27 / 0.05)",
230
+ "4": "0 20px 25px -5px rgb(27 27 27 / 0.1), 0 10px 10px -5px rgb(27 27 27 / 0.04)",
231
+ "5": "0 25px 50px -12px rgb(27 27 27 / 0.25)"
232
+ },
233
+ "semantic": {
234
+ "text-default": "color-neutral-900",
235
+ "text-subtle": "color-neutral-600",
236
+ "text-muted": "color-neutral-400",
237
+ "text-disabled": "color-neutral-400",
238
+ "text-inverse": "color-white",
239
+ "text-neutral": "color-neutral-700",
240
+ "text-primary": "color-primary-700",
241
+ "text-on-primary": "color-neutral-900",
242
+ "text-on-warning": "color-warning-800",
243
+ "text-secondary": "color-secondary-700",
244
+ "text-on-secondary": "color-white",
245
+ "text-success": "color-success-700",
246
+ "text-on-success": "color-white",
247
+ "text-warning": "color-warning-700",
248
+ "text-error": "color-error-700",
249
+ "text-on-error": "color-white",
250
+ "text-info": "color-info-700",
251
+ "text-on-info": "color-white",
252
+ "bg-default": "color-white",
253
+ "bg-subtle": "color-neutral-50",
254
+ "bg-surface": "color-neutral-100",
255
+ "bg-overlay": "color-neutral-200",
256
+ "bg-inverse": "color-neutral-900",
257
+ "bg-neutral-subtle": "color-neutral-100",
258
+ "bg-primary": "color-primary-500",
259
+ "bg-primary-subtle": "color-primary-100",
260
+ "bg-secondary": "color-secondary-500",
261
+ "bg-secondary-subtle": "color-secondary-100",
262
+ "bg-success": "color-success-500",
263
+ "bg-success-subtle": "color-success-100",
264
+ "bg-warning": "color-warning-500",
265
+ "bg-warning-subtle": "color-warning-100",
266
+ "bg-error": "color-error-500",
267
+ "bg-error-subtle": "color-error-100",
268
+ "bg-info": "color-info-500",
269
+ "bg-info-subtle": "color-info-100",
270
+ "border-default": "color-neutral-200",
271
+ "border-strong": "color-neutral-400",
272
+ "border-subtle": "color-neutral-100",
273
+ "border-focus": "color-primary-200",
274
+ "border-primary": "color-primary-200",
275
+ "border-primary-strong": "color-primary-500",
276
+ "border-secondary": "color-secondary-200",
277
+ "border-secondary-strong": "color-secondary-500",
278
+ "border-success": "color-success-200",
279
+ "border-success-strong": "color-success-500",
280
+ "border-warning": "color-warning-200",
281
+ "border-warning-strong": "color-warning-500",
282
+ "border-error": "color-error-200",
283
+ "border-error-strong": "color-error-500",
284
+ "border-info": "color-info-200",
285
+ "border-info-strong": "color-info-500",
286
+ "interactive-primary-bg": "color-primary-500",
287
+ "interactive-primary-bg-hover": "color-primary-600",
288
+ "interactive-primary-bg-active": "color-primary-700",
289
+ "interactive-secondary-bg": "color-secondary-500",
290
+ "interactive-secondary-bg-hover": "color-secondary-600",
291
+ "interactive-secondary-bg-active": "color-secondary-700",
292
+ "interactive-success-bg": "color-success-500",
293
+ "interactive-success-bg-hover": "color-success-600",
294
+ "interactive-success-bg-active": "color-success-700",
295
+ "interactive-warning-bg": "color-warning-500",
296
+ "interactive-warning-bg-hover": "color-warning-600",
297
+ "interactive-warning-bg-active": "color-warning-700",
298
+ "interactive-error-bg": "color-error-500",
299
+ "interactive-error-bg-hover": "color-error-600",
300
+ "interactive-error-bg-active": "color-error-700",
301
+ "interactive-info-bg": "color-info-500",
302
+ "interactive-info-bg-hover": "color-info-600",
303
+ "interactive-info-bg-active": "color-info-700"
304
+ },
305
+ "semanticDark": {
306
+ "text-default": "color-neutral-100",
307
+ "text-subtle": "color-neutral-300",
308
+ "text-muted": "color-neutral-500",
309
+ "text-disabled": "color-neutral-600",
310
+ "text-inverse": "color-neutral-900",
311
+ "text-neutral": "color-neutral-200",
312
+ "text-primary": "color-primary-300",
313
+ "text-on-primary": "color-neutral-900",
314
+ "text-secondary": "color-secondary-300",
315
+ "text-on-secondary": "color-white",
316
+ "text-success": "color-success-300",
317
+ "text-on-success": "color-white",
318
+ "text-warning": "color-warning-300",
319
+ "text-on-warning": "color-white",
320
+ "text-error": "color-error-300",
321
+ "text-on-error": "color-white",
322
+ "text-info": "color-info-300",
323
+ "text-on-info": "color-white",
324
+ "bg-default": "color-neutral-900",
325
+ "bg-subtle": "color-neutral-800",
326
+ "bg-surface": "color-neutral-800",
327
+ "bg-overlay": "color-neutral-700",
328
+ "bg-inverse": "color-neutral-50",
329
+ "bg-neutral-subtle": "color-neutral-800",
330
+ "bg-primary": "color-primary-500",
331
+ "bg-primary-subtle": "color-primary-900",
332
+ "bg-secondary": "color-secondary-500",
333
+ "bg-secondary-subtle": "color-secondary-900",
334
+ "bg-success": "color-success-500",
335
+ "bg-success-subtle": "color-success-900",
336
+ "bg-warning": "color-warning-500",
337
+ "bg-warning-subtle": "color-warning-900",
338
+ "bg-error": "color-error-500",
339
+ "bg-error-subtle": "color-error-900",
340
+ "bg-info": "color-info-500",
341
+ "bg-info-subtle": "color-info-900",
342
+ "border-default": "color-neutral-700",
343
+ "border-strong": "color-neutral-500",
344
+ "border-subtle": "color-neutral-800",
345
+ "border-focus": "color-primary-400",
346
+ "border-primary": "color-primary-700",
347
+ "border-primary-strong": "color-primary-500",
348
+ "border-secondary": "color-secondary-700",
349
+ "border-secondary-strong": "color-secondary-500",
350
+ "border-success": "color-success-700",
351
+ "border-success-strong": "color-success-500",
352
+ "border-warning": "color-warning-700",
353
+ "border-warning-strong": "color-warning-500",
354
+ "border-error": "color-error-700",
355
+ "border-error-strong": "color-error-500",
356
+ "border-info": "color-info-700",
357
+ "border-info-strong": "color-info-500",
358
+ "interactive-primary-bg": "color-primary-400",
359
+ "interactive-primary-bg-hover": "color-primary-300",
360
+ "interactive-primary-bg-active": "color-primary-500",
361
+ "interactive-secondary-bg": "color-secondary-400",
362
+ "interactive-secondary-bg-hover": "color-secondary-300",
363
+ "interactive-secondary-bg-active": "color-secondary-500",
364
+ "interactive-success-bg": "color-success-400",
365
+ "interactive-success-bg-hover": "color-success-300",
366
+ "interactive-success-bg-active": "color-success-500",
367
+ "interactive-warning-bg": "color-warning-400",
368
+ "interactive-warning-bg-hover": "color-warning-300",
369
+ "interactive-warning-bg-active": "color-warning-500",
370
+ "interactive-error-bg": "color-error-400",
371
+ "interactive-error-bg-hover": "color-error-300",
372
+ "interactive-error-bg-active": "color-error-500",
373
+ "interactive-info-bg": "color-info-400",
374
+ "interactive-info-bg-hover": "color-info-300",
375
+ "interactive-info-bg-active": "color-info-500"
376
+ }
377
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Type definitions for design tokens.
3
+ * Exports all types related to color palettes and spacing scales.
4
+ *
5
+ * @module types
6
+ */
7
+ export * from './palette.types';
8
+ export * from './spacing.types';
@@ -0,0 +1,84 @@
1
+ import type { COLOR_NAMES, STEPS } from '../constants/';
2
+ /**
3
+ * Numeric step values in the color palette (50-900).
4
+ * Represents lightness levels from lightest (50) to darkest (900).
5
+ */
6
+ export type Step = (typeof STEPS)[number];
7
+ /**
8
+ * String representation of palette steps.
9
+ * Used as keys in color scale objects.
10
+ */
11
+ export type StepStr = `${Step}`;
12
+ /**
13
+ * Color palette mapping numeric steps to hex color values.
14
+ * Example: { 50: "#fef2f2", 100: "#fee2e2", ..., 900: "#7f1d1d" }
15
+ */
16
+ export type Palette = Record<Step, string>;
17
+ /**
18
+ * Flattened color palette with string keys.
19
+ * Example: { "50": "#fef2f2", "100": "#fee2e2", ..., "900": "#7f1d1d" }
20
+ */
21
+ export type PaletteFlat = Record<StepStr, string>;
22
+ /**
23
+ * Semantic color names available in the design system.
24
+ * - `error`: Error/danger states
25
+ * - `info`: Informational states
26
+ * - `primary`: Primary brand color
27
+ * - `secondary`: Secondary brand color
28
+ * - `success`: Success states
29
+ * - `warning`: Warning/caution states
30
+ */
31
+ export type ColorName = (typeof COLOR_NAMES)[number];
32
+ /**
33
+ * Muted (desaturated) variant of a semantic color.
34
+ * Example: "primary-muted", "error-muted"
35
+ */
36
+ export type MutedColorName = `${ColorName}-muted`;
37
+ /**
38
+ * System neutral color name.
39
+ * Used for grayscale values.
40
+ */
41
+ export type SystemColorName = 'neutral';
42
+ /**
43
+ * All available color token names in the design system.
44
+ * Includes semantic colors, their muted variants, and neutral.
45
+ */
46
+ export type TokenColorName = ColorName | MutedColorName | SystemColorName;
47
+ /**
48
+ * Design system configuration for color generation.
49
+ * Maps semantic color names to base hex values.
50
+ *
51
+ * @example
52
+ * ```typescript
53
+ * const config: Config = {
54
+ * color: {
55
+ * primary: "#3b82f6",
56
+ * error: "#ef4444",
57
+ * success: "#10b981",
58
+ * warning: "#f59e0b",
59
+ * info: "#06b6d4",
60
+ * secondary: "#8b5cf6"
61
+ * }
62
+ * };
63
+ * ```
64
+ */
65
+ export type Config = {
66
+ color: Record<string, string>;
67
+ };
68
+ /**
69
+ * OKLCH color space representation.
70
+ * Perceptually uniform color model for generating accessible color palettes.
71
+ *
72
+ * @property mode - Color space identifier (always "oklch")
73
+ * @property l - Lightness (0-1)
74
+ * @property c - Chroma/saturation (0-0.5 typically)
75
+ * @property h - Hue angle in degrees (0-360)
76
+ *
77
+ * @see https://oklch.com/
78
+ */
79
+ export type Oklch = {
80
+ mode: 'oklch';
81
+ l: number;
82
+ c: number;
83
+ h: number;
84
+ };
@@ -0,0 +1,68 @@
1
+ import type { PaletteFlat } from './palette.types';
2
+ import type { SpacingTokens } from './spacing.types';
3
+ import type { ElevationTokens } from '../elevation/';
4
+ /**
5
+ * Complete design system tokens.
6
+ * Includes color palettes, spacing scales, border properties, typography, and elevation.
7
+ *
8
+ * Elevation is automatically generated from the neutral color palette to ensure
9
+ * consistent shadows that match the design system's color scheme.
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * const tokens: Tokens = {
14
+ * color: {
15
+ * primary: { "50": "#eff6ff", ..., "900": "#1e3a8a" },
16
+ * neutral: { "50": "#fafafa", ..., "900": "#171717" },
17
+ * // ... other colors
18
+ * },
19
+ * spacing: {
20
+ * rem: { "0": "0rem", "1": "0.25rem", ... },
21
+ * px: { "0": "0px", "1": "4px", ... }
22
+ * },
23
+ * border: {
24
+ * radius: "0.375rem",
25
+ * square: false
26
+ * },
27
+ * typography: {
28
+ * fontFamily: "Hanken Grotesk, sans-serif"
29
+ * },
30
+ * elevation: {
31
+ * "0": "none",
32
+ * "1": "0 1px 3px 0 rgb(23 23 23 / 0.1), 0 1px 2px 0 rgb(23 23 23 / 0.06)",
33
+ * // ... other elevations (generated from neutral-900)
34
+ * }
35
+ * };
36
+ * ```
37
+ */
38
+ export type Tokens = {
39
+ color: Record<string, PaletteFlat | string>;
40
+ spacing: SpacingTokens;
41
+ border: {
42
+ radius: string;
43
+ square: false;
44
+ };
45
+ typography: {
46
+ fontFamily: string;
47
+ };
48
+ elevation: ElevationTokens;
49
+ };
50
+ export type { Config, TokenColorName } from './';
51
+ export interface LattyConfig {
52
+ /** Built-in names: primary, secondary, success, warning, error, info. Any additional name generates a new palette. */
53
+ colors?: Record<string, string>;
54
+ font?: {
55
+ family?: string;
56
+ };
57
+ border?: {
58
+ radius?: string;
59
+ };
60
+ /**
61
+ * Controls which semantic token layer is emitted.
62
+ * - `'light'` (default) — light tokens only; ignores OS preference
63
+ * - `'dark'` — dark tokens only; ignores OS preference
64
+ * - `'system'` — light at `:root`, dark inside `@media (prefers-color-scheme: dark)` + `[data-theme]` overrides
65
+ * - `'auto'` — alias for `'system'`, deprecated
66
+ */
67
+ theme?: 'light' | 'dark' | 'system' | 'auto';
68
+ }
@@ -0,0 +1,33 @@
1
+ import type { SPACE_STEPS } from '../constants/';
2
+ import type { EnumerateInclusive } from './utils';
3
+ /**
4
+ * Numeric index for spacing values (0-24).
5
+ * Represents multipliers of the base spacing unit (4px).
6
+ */
7
+ export type SpaceIndex = EnumerateInclusive<typeof SPACE_STEPS>;
8
+ /**
9
+ * String representation of spacing indices.
10
+ * Used as keys in spacing scale objects.
11
+ */
12
+ export type SpaceKey = `${SpaceIndex}`;
13
+ /**
14
+ * Complete spacing scale mapping indices to CSS values.
15
+ * Example: { "0": "0px", "1": "4px", "2": "8px", ... }
16
+ */
17
+ export type SpaceScale = Record<SpaceKey, string>;
18
+ /**
19
+ * Design system spacing tokens in both rem and px units.
20
+ * Provides a consistent spacing scale based on a 4px grid system.
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * const spacing: SpacingTokens = {
25
+ * rem: { "0": "0rem", "1": "0.25rem", "2": "0.5rem", ... },
26
+ * px: { "0": "0px", "1": "4px", "2": "8px", ... }
27
+ * };
28
+ * ```
29
+ */
30
+ export type SpacingTokens = {
31
+ rem: SpaceScale;
32
+ px: SpaceScale;
33
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Recursive helper to generate a union of numbers from 0 to N.
3
+ * It builds an array until its length reaches N,
4
+ * then returns the union of the array's elements plus N itself.
5
+ */
6
+ export type EnumerateInclusive<N extends number, Acc extends number[] = []> = Acc['length'] extends N ? [...Acc, N][number] : EnumerateInclusive<N, [...Acc, Acc['length']]>;
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@latty-ds/tokens",
3
+ "version": "0.2.0",
4
+ "description": "Design tokens for the Latty design system — generates CSS custom properties, JSON, and JavaScript exports from a single config file",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/penhold3r/latty-ds.git",
9
+ "directory": "packages/tokens"
10
+ },
11
+ "homepage": "https://penhold3r.github.io/latty-ds",
12
+ "keywords": [
13
+ "design-system",
14
+ "design-tokens",
15
+ "css-variables",
16
+ "css-custom-properties",
17
+ "tokens",
18
+ "latty"
19
+ ],
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "files": [
24
+ "dist",
25
+ "README.md",
26
+ "LICENSE"
27
+ ],
28
+ "sideEffects": [
29
+ "**/*.css"
30
+ ],
31
+ "type": "module",
32
+ "main": "./dist/index.js",
33
+ "types": "./dist/public-types.d.ts",
34
+ "exports": {
35
+ ".": {
36
+ "types": "./dist/public-types.d.ts",
37
+ "default": "./dist/index.js"
38
+ },
39
+ "./configure": {
40
+ "types": "./dist/configure.d.ts",
41
+ "default": "./dist/configure.js"
42
+ },
43
+ "./tokens.css": "./dist/tokens.css",
44
+ "./semantic.css": "./dist/semantic.css",
45
+ "./tokens.json": "./dist/tokens.json"
46
+ },
47
+ "scripts": {
48
+ "build": "pnpm run build:scripts && pnpm run build:tokens && pnpm run build:types",
49
+ "build:scripts": "tsup",
50
+ "build:tokens": "node ./dist-scripts/tokens.js",
51
+ "build:types": "tsc -p tsconfig.types.json",
52
+ "typecheck": "tsc --noEmit",
53
+ "clean": "rm -rf dist dist-scripts"
54
+ },
55
+ "devDependencies": {
56
+ "@types/culori": "^4.0.1",
57
+ "typescript": "^5.5.4"
58
+ },
59
+ "dependencies": {
60
+ "@latty-ds/utils": "0.2.0",
61
+ "culori": "^4.0.2"
62
+ },
63
+ "gitHead": "6fd1814cb17a56d6652c581fc349c4f8f426a4bc"
64
+ }