@stratixlabs/core 1.7.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/substrata.d.ts ADDED
@@ -0,0 +1,123 @@
1
+ export type TokenType =
2
+ | 'color'
3
+ | 'spacing'
4
+ | 'typography'
5
+ | 'radius'
6
+ | 'border'
7
+ | 'elevation'
8
+ | 'motion'
9
+ | 'opacity'
10
+ | 'breakpoint'
11
+ | 'semantic'
12
+ | 'unknown';
13
+
14
+ export interface TokenLeaf {
15
+ value: string;
16
+ type: TokenType;
17
+ originalVariable: string;
18
+ }
19
+
20
+ export type Tokens = {
21
+ "breakpoint": {
22
+ "lg": TokenLeaf;
23
+ "md": TokenLeaf;
24
+ "sm": TokenLeaf;
25
+ };
26
+ "brand": {
27
+ "300": TokenLeaf;
28
+ "500": TokenLeaf;
29
+ "700": TokenLeaf;
30
+ };
31
+ "color": {
32
+ "danger": TokenLeaf;
33
+ "success": TokenLeaf;
34
+ "warning": TokenLeaf;
35
+ "bg": TokenLeaf;
36
+ "border": TokenLeaf;
37
+ "brand": {
38
+ "hover": TokenLeaf;
39
+ "primary": TokenLeaf;
40
+ };
41
+ "surface": TokenLeaf;
42
+ "text": {
43
+ "inverse": TokenLeaf;
44
+ "primary": TokenLeaf;
45
+ "secondary": TokenLeaf;
46
+ };
47
+ };
48
+ "neutral": {
49
+ "0": TokenLeaf;
50
+ "50": TokenLeaf;
51
+ "100": TokenLeaf;
52
+ "200": TokenLeaf;
53
+ "300": TokenLeaf;
54
+ "400": TokenLeaf;
55
+ "500": TokenLeaf;
56
+ "600": TokenLeaf;
57
+ "700": TokenLeaf;
58
+ "800": TokenLeaf;
59
+ "900": TokenLeaf;
60
+ };
61
+ "shadow": {
62
+ "lg": TokenLeaf;
63
+ "md": TokenLeaf;
64
+ "sm": TokenLeaf;
65
+ };
66
+ "motion": {
67
+ "fast": TokenLeaf;
68
+ "normal": TokenLeaf;
69
+ "slow": TokenLeaf;
70
+ };
71
+ "opacity": {
72
+ "disabled": TokenLeaf;
73
+ "muted": TokenLeaf;
74
+ "overlay": TokenLeaf;
75
+ };
76
+ "border": {
77
+ "color": TokenLeaf;
78
+ "width": TokenLeaf;
79
+ };
80
+ "radius": {
81
+ "lg": TokenLeaf;
82
+ "md": TokenLeaf;
83
+ "sm": TokenLeaf;
84
+ };
85
+ "space": {
86
+ "1": TokenLeaf;
87
+ "2": TokenLeaf;
88
+ "3": TokenLeaf;
89
+ "4": TokenLeaf;
90
+ "5": TokenLeaf;
91
+ "6": TokenLeaf;
92
+ };
93
+ "font": {
94
+ "family": {
95
+ "base": TokenLeaf;
96
+ };
97
+ "size": {
98
+ "2xl": TokenLeaf;
99
+ "lg": TokenLeaf;
100
+ "md": TokenLeaf;
101
+ "sm": TokenLeaf;
102
+ "xl": TokenLeaf;
103
+ "xs": TokenLeaf;
104
+ };
105
+ "weight": {
106
+ "bold": TokenLeaf;
107
+ "medium": TokenLeaf;
108
+ "regular": TokenLeaf;
109
+ "semibold": TokenLeaf;
110
+ };
111
+ };
112
+ "line": {
113
+ "height": {
114
+ "normal": TokenLeaf;
115
+ "relaxed": TokenLeaf;
116
+ "tight": TokenLeaf;
117
+ };
118
+ };
119
+ };
120
+
121
+ declare const tokens: Tokens;
122
+
123
+ export default tokens;
package/tokens.json ADDED
@@ -0,0 +1,348 @@
1
+ {
2
+ "breakpoint": {
3
+ "lg": {
4
+ "value": "1024px",
5
+ "type": "breakpoint",
6
+ "originalVariable": "--breakpoint-lg"
7
+ },
8
+ "md": {
9
+ "value": "768px",
10
+ "type": "breakpoint",
11
+ "originalVariable": "--breakpoint-md"
12
+ },
13
+ "sm": {
14
+ "value": "640px",
15
+ "type": "breakpoint",
16
+ "originalVariable": "--breakpoint-sm"
17
+ }
18
+ },
19
+ "brand": {
20
+ "300": {
21
+ "value": "#93c5fd",
22
+ "type": "color",
23
+ "originalVariable": "--brand-300"
24
+ },
25
+ "500": {
26
+ "value": "#3b82f6",
27
+ "type": "color",
28
+ "originalVariable": "--brand-500"
29
+ },
30
+ "700": {
31
+ "value": "#1d4ed8",
32
+ "type": "color",
33
+ "originalVariable": "--brand-700"
34
+ }
35
+ },
36
+ "color": {
37
+ "danger": {
38
+ "value": "#ef4444",
39
+ "type": "color",
40
+ "originalVariable": "--color-danger"
41
+ },
42
+ "success": {
43
+ "value": "#22c55e",
44
+ "type": "color",
45
+ "originalVariable": "--color-success"
46
+ },
47
+ "warning": {
48
+ "value": "#eab308",
49
+ "type": "color",
50
+ "originalVariable": "--color-warning"
51
+ },
52
+ "bg": {
53
+ "value": "var(--neutral-50)",
54
+ "type": "semantic",
55
+ "originalVariable": "--color-bg"
56
+ },
57
+ "border": {
58
+ "value": "var(--neutral-200)",
59
+ "type": "semantic",
60
+ "originalVariable": "--color-border"
61
+ },
62
+ "brand": {
63
+ "hover": {
64
+ "value": "var(--brand-700)",
65
+ "type": "semantic",
66
+ "originalVariable": "--color-brand-hover"
67
+ },
68
+ "primary": {
69
+ "value": "var(--brand-500)",
70
+ "type": "semantic",
71
+ "originalVariable": "--color-brand-primary"
72
+ }
73
+ },
74
+ "surface": {
75
+ "value": "var(--neutral-50)",
76
+ "type": "semantic",
77
+ "originalVariable": "--color-surface"
78
+ },
79
+ "text": {
80
+ "inverse": {
81
+ "value": "var(--neutral-0)",
82
+ "type": "semantic",
83
+ "originalVariable": "--color-text-inverse"
84
+ },
85
+ "primary": {
86
+ "value": "var(--neutral-900)",
87
+ "type": "semantic",
88
+ "originalVariable": "--color-text-primary"
89
+ },
90
+ "secondary": {
91
+ "value": "var(--neutral-700)",
92
+ "type": "semantic",
93
+ "originalVariable": "--color-text-secondary"
94
+ }
95
+ }
96
+ },
97
+ "neutral": {
98
+ "0": {
99
+ "value": "#ffffff",
100
+ "type": "color",
101
+ "originalVariable": "--neutral-0"
102
+ },
103
+ "50": {
104
+ "value": "#f8fafc",
105
+ "type": "color",
106
+ "originalVariable": "--neutral-50"
107
+ },
108
+ "100": {
109
+ "value": "#f1f5f9",
110
+ "type": "color",
111
+ "originalVariable": "--neutral-100"
112
+ },
113
+ "200": {
114
+ "value": "#e2e8f0",
115
+ "type": "color",
116
+ "originalVariable": "--neutral-200"
117
+ },
118
+ "300": {
119
+ "value": "#cbd5e1",
120
+ "type": "color",
121
+ "originalVariable": "--neutral-300"
122
+ },
123
+ "400": {
124
+ "value": "#94a3b8",
125
+ "type": "color",
126
+ "originalVariable": "--neutral-400"
127
+ },
128
+ "500": {
129
+ "value": "#64748b",
130
+ "type": "color",
131
+ "originalVariable": "--neutral-500"
132
+ },
133
+ "600": {
134
+ "value": "#475569",
135
+ "type": "color",
136
+ "originalVariable": "--neutral-600"
137
+ },
138
+ "700": {
139
+ "value": "#334155",
140
+ "type": "color",
141
+ "originalVariable": "--neutral-700"
142
+ },
143
+ "800": {
144
+ "value": "#1e293b",
145
+ "type": "color",
146
+ "originalVariable": "--neutral-800"
147
+ },
148
+ "900": {
149
+ "value": "#0f172a",
150
+ "type": "color",
151
+ "originalVariable": "--neutral-900"
152
+ }
153
+ },
154
+ "shadow": {
155
+ "lg": {
156
+ "value": "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.2)",
157
+ "type": "elevation",
158
+ "originalVariable": "--shadow-lg"
159
+ },
160
+ "md": {
161
+ "value": "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)",
162
+ "type": "elevation",
163
+ "originalVariable": "--shadow-md"
164
+ },
165
+ "sm": {
166
+ "value": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
167
+ "type": "elevation",
168
+ "originalVariable": "--shadow-sm"
169
+ }
170
+ },
171
+ "motion": {
172
+ "fast": {
173
+ "value": "200ms",
174
+ "type": "motion",
175
+ "originalVariable": "--motion-fast"
176
+ },
177
+ "normal": {
178
+ "value": "300ms",
179
+ "type": "motion",
180
+ "originalVariable": "--motion-normal"
181
+ },
182
+ "slow": {
183
+ "value": "400ms",
184
+ "type": "motion",
185
+ "originalVariable": "--motion-slow"
186
+ }
187
+ },
188
+ "opacity": {
189
+ "disabled": {
190
+ "value": "0.4",
191
+ "type": "opacity",
192
+ "originalVariable": "--opacity-disabled"
193
+ },
194
+ "muted": {
195
+ "value": "0.6",
196
+ "type": "opacity",
197
+ "originalVariable": "--opacity-muted"
198
+ },
199
+ "overlay": {
200
+ "value": "0.9",
201
+ "type": "opacity",
202
+ "originalVariable": "--opacity-overlay"
203
+ }
204
+ },
205
+ "border": {
206
+ "color": {
207
+ "value": "var(--neutral-200)",
208
+ "type": "radius",
209
+ "originalVariable": "--border-color"
210
+ },
211
+ "width": {
212
+ "value": "1px",
213
+ "type": "radius",
214
+ "originalVariable": "--border-width"
215
+ }
216
+ },
217
+ "radius": {
218
+ "lg": {
219
+ "value": "0.75rem",
220
+ "type": "radius",
221
+ "originalVariable": "--radius-lg"
222
+ },
223
+ "md": {
224
+ "value": "0.5rem",
225
+ "type": "radius",
226
+ "originalVariable": "--radius-md"
227
+ },
228
+ "sm": {
229
+ "value": "0.375rem",
230
+ "type": "radius",
231
+ "originalVariable": "--radius-sm"
232
+ }
233
+ },
234
+ "space": {
235
+ "1": {
236
+ "value": "0.25rem",
237
+ "type": "spacing",
238
+ "originalVariable": "--space-1"
239
+ },
240
+ "2": {
241
+ "value": "0.5rem",
242
+ "type": "spacing",
243
+ "originalVariable": "--space-2"
244
+ },
245
+ "3": {
246
+ "value": "0.75rem",
247
+ "type": "spacing",
248
+ "originalVariable": "--space-3"
249
+ },
250
+ "4": {
251
+ "value": "1rem",
252
+ "type": "spacing",
253
+ "originalVariable": "--space-4"
254
+ },
255
+ "5": {
256
+ "value": "1.5rem",
257
+ "type": "spacing",
258
+ "originalVariable": "--space-5"
259
+ },
260
+ "6": {
261
+ "value": "2rem",
262
+ "type": "spacing",
263
+ "originalVariable": "--space-6"
264
+ }
265
+ },
266
+ "font": {
267
+ "family": {
268
+ "base": {
269
+ "value": "system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif",
270
+ "type": "typography",
271
+ "originalVariable": "--font-family-base"
272
+ }
273
+ },
274
+ "size": {
275
+ "2xl": {
276
+ "value": "2rem",
277
+ "type": "typography",
278
+ "originalVariable": "--font-size-2xl"
279
+ },
280
+ "lg": {
281
+ "value": "1.25rem",
282
+ "type": "typography",
283
+ "originalVariable": "--font-size-lg"
284
+ },
285
+ "md": {
286
+ "value": "1rem",
287
+ "type": "typography",
288
+ "originalVariable": "--font-size-md"
289
+ },
290
+ "sm": {
291
+ "value": "0.875rem",
292
+ "type": "typography",
293
+ "originalVariable": "--font-size-sm"
294
+ },
295
+ "xl": {
296
+ "value": "1.5rem",
297
+ "type": "typography",
298
+ "originalVariable": "--font-size-xl"
299
+ },
300
+ "xs": {
301
+ "value": "0.75rem",
302
+ "type": "typography",
303
+ "originalVariable": "--font-size-xs"
304
+ }
305
+ },
306
+ "weight": {
307
+ "bold": {
308
+ "value": "700",
309
+ "type": "typography",
310
+ "originalVariable": "--font-weight-bold"
311
+ },
312
+ "medium": {
313
+ "value": "500",
314
+ "type": "typography",
315
+ "originalVariable": "--font-weight-medium"
316
+ },
317
+ "regular": {
318
+ "value": "400",
319
+ "type": "typography",
320
+ "originalVariable": "--font-weight-regular"
321
+ },
322
+ "semibold": {
323
+ "value": "600",
324
+ "type": "typography",
325
+ "originalVariable": "--font-weight-semibold"
326
+ }
327
+ }
328
+ },
329
+ "line": {
330
+ "height": {
331
+ "normal": {
332
+ "value": "1.5",
333
+ "type": "typography",
334
+ "originalVariable": "--line-height-normal"
335
+ },
336
+ "relaxed": {
337
+ "value": "1.75",
338
+ "type": "typography",
339
+ "originalVariable": "--line-height-relaxed"
340
+ },
341
+ "tight": {
342
+ "value": "1.25",
343
+ "type": "typography",
344
+ "originalVariable": "--line-height-tight"
345
+ }
346
+ }
347
+ }
348
+ }