snapshot-labs-theme 0.1.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,29 @@
1
+ name: Publish to NPM
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+
14
+ - name: Set up Node.js
15
+ uses: actions/setup-node@v4
16
+ with:
17
+ node-version: "20"
18
+ registry-url: "https://registry.npmjs.org/"
19
+
20
+ - name: Install dependencies
21
+ run: npm install
22
+
23
+ - name: Build
24
+ run: npm run build
25
+
26
+ - name: Publish to NPM
27
+ run: npm publish --access public
28
+ env:
29
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/build.js ADDED
@@ -0,0 +1,32 @@
1
+ import { globSync } from "glob";
2
+ import path from "path";
3
+
4
+ const tokenFiles = globSync("src/tokens/**/*.json");
5
+
6
+ import StyleDictionary from "style-dictionary";
7
+ // Configure Style Dictionary
8
+ const myStyleDictionary = new StyleDictionary({
9
+ source: tokenFiles,
10
+ platforms: {
11
+ css: {
12
+ transformGroup: "css",
13
+ buildPath: "build/css/",
14
+ files: tokenFiles.map((file) => {
15
+ const relativeFilePath = path
16
+ .relative("src/tokens", file)
17
+ .replace(/\\/g, "/");
18
+ return {
19
+ destination: relativeFilePath.replace(".json", ".css"),
20
+ format: "css/variables",
21
+ filter: (token) => token.filePath.endsWith(relativeFilePath),
22
+ options: {
23
+ outputReferences: file.includes("semantic"),
24
+ },
25
+ };
26
+ }),
27
+ },
28
+ },
29
+ });
30
+ // Build all platforms
31
+ myStyleDictionary.buildAllPlatforms();
32
+ console.log("Build completed!");
package/package.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "snapshot-labs-theme",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "scripts": {
6
+ "build": "node build.js"
7
+ },
8
+ "devDependencies": {
9
+ "style-dictionary": "^5.0.4"
10
+ },
11
+ "dependencies": {
12
+ "glob": "^11.0.3"
13
+ }
14
+ }
@@ -0,0 +1,476 @@
1
+ {
2
+ "color": {
3
+ "neutral": {
4
+ "50": {
5
+ "$type": "color",
6
+ "$value": "#f2f2f2"
7
+ },
8
+ "100": {
9
+ "$type": "color",
10
+ "$value": "#e5e5e5"
11
+ },
12
+ "200": {
13
+ "$type": "color",
14
+ "$value": "#dcdcdc"
15
+ },
16
+ "300": {
17
+ "$type": "color",
18
+ "$value": "#bdbdbd"
19
+ },
20
+ "400": {
21
+ "$type": "color",
22
+ "$value": "#949494"
23
+ },
24
+ "500": {
25
+ "$type": "color",
26
+ "$value": "#767676"
27
+ },
28
+ "600": {
29
+ "$type": "color",
30
+ "$value": "#6e6e6e"
31
+ },
32
+ "700": {
33
+ "$type": "color",
34
+ "$value": "#525252"
35
+ },
36
+ "800": {
37
+ "$type": "color",
38
+ "$value": "#464646"
39
+ },
40
+ "900": {
41
+ "$type": "color",
42
+ "$value": "#3d3d3d"
43
+ },
44
+ "950": {
45
+ "$type": "color",
46
+ "$value": "#292929"
47
+ },
48
+ "1000": {
49
+ "$type": "color",
50
+ "$value": "#121212"
51
+ },
52
+ "00": {
53
+ "$type": "color",
54
+ "$value": "#ffffff"
55
+ }
56
+ },
57
+ "purple": {
58
+ "50": {
59
+ "$type": "color",
60
+ "$value": "#fbf6fe"
61
+ },
62
+ "100": {
63
+ "$type": "color",
64
+ "$value": "#f6ebfc"
65
+ },
66
+ "200": {
67
+ "$type": "color",
68
+ "$value": "#eedbf9"
69
+ },
70
+ "300": {
71
+ "$type": "color",
72
+ "$value": "#e1bef4"
73
+ },
74
+ "400": {
75
+ "$type": "color",
76
+ "$value": "#cf94ec"
77
+ },
78
+ "500": {
79
+ "$type": "color",
80
+ "$value": "#c47de5"
81
+ },
82
+ "600": {
83
+ "$type": "color",
84
+ "$value": "#a94bd2"
85
+ },
86
+ "700": {
87
+ "$type": "color",
88
+ "$value": "#9139b7"
89
+ },
90
+ "800": {
91
+ "$type": "color",
92
+ "$value": "#7a3396"
93
+ },
94
+ "900": {
95
+ "$type": "color",
96
+ "$value": "#632a79"
97
+ },
98
+ "950": {
99
+ "$type": "color",
100
+ "$value": "#32123e"
101
+ },
102
+ "300_4": {
103
+ "$type": "color",
104
+ "$value": "#bdbdbd"
105
+ }
106
+ },
107
+ "magenta": {
108
+ "50": {
109
+ "$type": "color",
110
+ "$value": "#fcf2fb"
111
+ },
112
+ "100": {
113
+ "$type": "color",
114
+ "$value": "#fbe4fb"
115
+ },
116
+ "200": {
117
+ "$type": "color",
118
+ "$value": "#f8d3f5"
119
+ },
120
+ "300": {
121
+ "$type": "color",
122
+ "$value": "#f0b2ea"
123
+ },
124
+ "400": {
125
+ "$type": "color",
126
+ "$value": "#e273d5"
127
+ },
128
+ "500": {
129
+ "$type": "color",
130
+ "$value": "#d65cc8"
131
+ },
132
+ "600": {
133
+ "$type": "color",
134
+ "$value": "#b83da5"
135
+ },
136
+ "700": {
137
+ "$type": "color",
138
+ "$value": "#973086"
139
+ },
140
+ "800": {
141
+ "$type": "color",
142
+ "$value": "#7a296b"
143
+ },
144
+ "900": {
145
+ "$type": "color",
146
+ "$value": "#642656"
147
+ },
148
+ "950": {
149
+ "$type": "color",
150
+ "$value": "#3f0d35"
151
+ }
152
+ },
153
+ "red": {
154
+ "50": {
155
+ "$type": "color",
156
+ "$value": "#fef3f2"
157
+ },
158
+ "100": {
159
+ "$type": "color",
160
+ "$value": "#fde4e3"
161
+ },
162
+ "200": {
163
+ "$type": "color",
164
+ "$value": "#fdcdcb"
165
+ },
166
+ "300": {
167
+ "$type": "color",
168
+ "$value": "#faaba7"
169
+ },
170
+ "400": {
171
+ "$type": "color",
172
+ "$value": "#f57a74"
173
+ },
174
+ "500": {
175
+ "$type": "color",
176
+ "$value": "#eb524b"
177
+ },
178
+ "600": {
179
+ "$type": "color",
180
+ "$value": "#d7332b"
181
+ },
182
+ "700": {
183
+ "$type": "color",
184
+ "$value": "#b52720"
185
+ },
186
+ "800": {
187
+ "$type": "color",
188
+ "$value": "#96231e"
189
+ },
190
+ "900": {
191
+ "$type": "color",
192
+ "$value": "#7d231f"
193
+ },
194
+ "950": {
195
+ "$type": "color",
196
+ "$value": "#440d0b"
197
+ }
198
+ },
199
+ "orange": {
200
+ "50": {
201
+ "$type": "color",
202
+ "$value": "#fff7ed"
203
+ },
204
+ "100": {
205
+ "$type": "color",
206
+ "$value": "#feecd6"
207
+ },
208
+ "200": {
209
+ "$type": "color",
210
+ "$value": "#fcd5ac"
211
+ },
212
+ "300": {
213
+ "$type": "color",
214
+ "$value": "#f9b778"
215
+ },
216
+ "400": {
217
+ "$type": "color",
218
+ "$value": "#f58633"
219
+ },
220
+ "500": {
221
+ "$type": "color",
222
+ "$value": "#f36f1c"
223
+ },
224
+ "600": {
225
+ "$type": "color",
226
+ "$value": "#e45512"
227
+ },
228
+ "700": {
229
+ "$type": "color",
230
+ "$value": "#bd3f11"
231
+ },
232
+ "800": {
233
+ "$type": "color",
234
+ "$value": "#963316"
235
+ },
236
+ "900": {
237
+ "$type": "color",
238
+ "$value": "#792c15"
239
+ },
240
+ "950": {
241
+ "$type": "color",
242
+ "$value": "#492104"
243
+ }
244
+ },
245
+ "yellow": {
246
+ "50": {
247
+ "$type": "color",
248
+ "$value": "#fcfcea"
249
+ },
250
+ "100": {
251
+ "$type": "color",
252
+ "$value": "#faf9c7"
253
+ },
254
+ "200": {
255
+ "$type": "color",
256
+ "$value": "#f6f092"
257
+ },
258
+ "300": {
259
+ "$type": "color",
260
+ "$value": "#efde44"
261
+ },
262
+ "400": {
263
+ "$type": "color",
264
+ "$value": "#eace25"
265
+ },
266
+ "500": {
267
+ "$type": "color",
268
+ "$value": "#dab718"
269
+ },
270
+ "600": {
271
+ "$type": "color",
272
+ "$value": "#bc8f12"
273
+ },
274
+ "700": {
275
+ "$type": "color",
276
+ "$value": "#966812"
277
+ },
278
+ "800": {
279
+ "$type": "color",
280
+ "$value": "#7d5316"
281
+ },
282
+ "900": {
283
+ "$type": "color",
284
+ "$value": "#6a4419"
285
+ },
286
+ "950": {
287
+ "$type": "color",
288
+ "$value": "#3e240a"
289
+ }
290
+ },
291
+ "green": {
292
+ "50": {
293
+ "$type": "color",
294
+ "$value": "#ecfdf4"
295
+ },
296
+ "100": {
297
+ "$type": "color",
298
+ "$value": "#d1fae3"
299
+ },
300
+ "200": {
301
+ "$type": "color",
302
+ "$value": "#a7f3cc"
303
+ },
304
+ "300": {
305
+ "$type": "color",
306
+ "$value": "#6ee7b1"
307
+ },
308
+ "400": {
309
+ "$type": "color",
310
+ "$value": "#2dd28d"
311
+ },
312
+ "500": {
313
+ "$type": "color",
314
+ "$value": "#10b978"
315
+ },
316
+ "600": {
317
+ "$type": "color",
318
+ "$value": "#059661"
319
+ },
320
+ "700": {
321
+ "$type": "color",
322
+ "$value": "#047851"
323
+ },
324
+ "800": {
325
+ "$type": "color",
326
+ "$value": "#065f41"
327
+ },
328
+ "900": {
329
+ "$type": "color",
330
+ "$value": "#064e37"
331
+ },
332
+ "950": {
333
+ "$type": "color",
334
+ "$value": "#022c20"
335
+ }
336
+ },
337
+ "teal": {
338
+ "50": {
339
+ "$type": "color",
340
+ "$value": "#eafdf9"
341
+ },
342
+ "100": {
343
+ "$type": "color",
344
+ "$value": "#cef8ef"
345
+ },
346
+ "200": {
347
+ "$type": "color",
348
+ "$value": "#9ef0de"
349
+ },
350
+ "300": {
351
+ "$type": "color",
352
+ "$value": "#66e1cc"
353
+ },
354
+ "400": {
355
+ "$type": "color",
356
+ "$value": "#37c8b5"
357
+ },
358
+ "500": {
359
+ "$type": "color",
360
+ "$value": "#1fad9d"
361
+ },
362
+ "600": {
363
+ "$type": "color",
364
+ "$value": "#168d81"
365
+ },
366
+ "700": {
367
+ "$type": "color",
368
+ "$value": "#166f67"
369
+ },
370
+ "800": {
371
+ "$type": "color",
372
+ "$value": "#165a55"
373
+ },
374
+ "900": {
375
+ "$type": "color",
376
+ "$value": "#174a46"
377
+ },
378
+ "950": {
379
+ "$type": "color",
380
+ "$value": "#072c2b"
381
+ }
382
+ },
383
+ "cyan": {
384
+ "50": {
385
+ "$type": "color",
386
+ "$value": "#eefbfd"
387
+ },
388
+ "100": {
389
+ "$type": "color",
390
+ "$value": "#d3f4fa"
391
+ },
392
+ "200": {
393
+ "$type": "color",
394
+ "$value": "#adeaf4"
395
+ },
396
+ "300": {
397
+ "$type": "color",
398
+ "$value": "#74d9ec"
399
+ },
400
+ "400": {
401
+ "$type": "color",
402
+ "$value": "#4ec7e0"
403
+ },
404
+ "500": {
405
+ "$type": "color",
406
+ "$value": "#19a2c1"
407
+ },
408
+ "600": {
409
+ "$type": "color",
410
+ "$value": "#1783a3"
411
+ },
412
+ "700": {
413
+ "$type": "color",
414
+ "$value": "#1a6984"
415
+ },
416
+ "800": {
417
+ "$type": "color",
418
+ "$value": "#1e566c"
419
+ },
420
+ "900": {
421
+ "$type": "color",
422
+ "$value": "#1d495c"
423
+ },
424
+ "950": {
425
+ "$type": "color",
426
+ "$value": "#0d2f3f"
427
+ }
428
+ },
429
+ "blue": {
430
+ "50": {
431
+ "$type": "color",
432
+ "$value": "#f2f5fc"
433
+ },
434
+ "100": {
435
+ "$type": "color",
436
+ "$value": "#e1e8f9"
437
+ },
438
+ "200": {
439
+ "$type": "color",
440
+ "$value": "#c8d5f4"
441
+ },
442
+ "300": {
443
+ "$type": "color",
444
+ "$value": "#a1baec"
445
+ },
446
+ "400": {
447
+ "$type": "color",
448
+ "$value": "#7294e3"
449
+ },
450
+ "500": {
451
+ "$type": "color",
452
+ "$value": "#5d79df"
453
+ },
454
+ "600": {
455
+ "$type": "color",
456
+ "$value": "#4056ce"
457
+ },
458
+ "700": {
459
+ "$type": "color",
460
+ "$value": "#3c48b9"
461
+ },
462
+ "800": {
463
+ "$type": "color",
464
+ "$value": "#384094"
465
+ },
466
+ "900": {
467
+ "$type": "color",
468
+ "$value": "#353b73"
469
+ },
470
+ "950": {
471
+ "$type": "color",
472
+ "$value": "#252846"
473
+ }
474
+ }
475
+ }
476
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "spacing": {
3
+ "xs": {
4
+ "$value": "4px",
5
+ "$type": "dimension"
6
+ },
7
+ "sm": {
8
+ "$value": "8px",
9
+ "$type": "dimension"
10
+ },
11
+ "md": {
12
+ "$value": "16px",
13
+ "$type": "dimension"
14
+ },
15
+ "lg": {
16
+ "$value": "32px",
17
+ "$type": "dimension"
18
+ },
19
+ "xl": {
20
+ "$value": "64px",
21
+ "$type": "dimension"
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "color": {
3
+ "warning": {
4
+ "$value": "{color.red.400}",
5
+ "$type": "color"
6
+ }
7
+ }
8
+ }