@youcan/celeste-tokens 0.6.87 → 0.6.89
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/dist/preset.ts +10 -18
- package/package.json +1 -1
- package/src/unocss-formatter.ts +5 -0
package/dist/preset.ts
CHANGED
|
@@ -363,24 +363,16 @@ export const presetCeleste = definePreset((options: CelestePresetOptions = {}):
|
|
|
363
363
|
"full": "999px"
|
|
364
364
|
},
|
|
365
365
|
"boxShadow": {
|
|
366
|
-
"regular":
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
"buttons":
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
"
|
|
376
|
-
"neutral": "0 1px 2px 0 #1b1c1d7a, 0 0 0 1px #242628",
|
|
377
|
-
"primary": "0 1px 2px 0 #0e121b3d, 0 0 0 1px #e1116f",
|
|
378
|
-
"error": "0 1px 2px 0 #0e121b3d, 0 0 0 1px #fb3748",
|
|
379
|
-
"stroke": "0 1px 3px 0 #0e121b1f, 0 0 0 1px #e1e4ea"
|
|
380
|
-
},
|
|
381
|
-
"toggle": {
|
|
382
|
-
"switch": "0 6px 10px 0 #0e121b0f, 0 2px 4px 0 #0e121b08"
|
|
383
|
-
}
|
|
366
|
+
"regular-xs": "0 1px 2px 0 #0a0d1408",
|
|
367
|
+
"regular-md": "0 16px 32px -12px #0e121b1a",
|
|
368
|
+
"buttons-primary-focus": "0 0 0 2px #ffffff, 0 0 0 4px #fb4ba31a",
|
|
369
|
+
"buttons-important-focus": "0 0 0 2px #ffffff, 0 0 0 4px #99a0ae29",
|
|
370
|
+
"buttons-error-focus": "0 0 0 2px #ffffff, 0 0 0 4px #fb37481a",
|
|
371
|
+
"fancy-buttons-neutral": "0 1px 2px 0 #1b1c1d7a, 0 0 0 1px #242628",
|
|
372
|
+
"fancy-buttons-primary": "0 1px 2px 0 #0e121b3d, 0 0 0 1px #e1116f",
|
|
373
|
+
"fancy-buttons-error": "0 1px 2px 0 #0e121b3d, 0 0 0 1px #fb3748",
|
|
374
|
+
"fancy-buttons-stroke": "0 1px 3px 0 #0e121b1f, 0 0 0 1px #e1e4ea",
|
|
375
|
+
"toggle-switch": "0 6px 10px 0 #0e121b0f, 0 2px 4px 0 #0e121b08"
|
|
384
376
|
},
|
|
385
377
|
"spacing": {
|
|
386
378
|
"0": "0",
|
package/package.json
CHANGED
package/src/unocss-formatter.ts
CHANGED
|
@@ -79,6 +79,11 @@ export function unocssFormat({ dictionary }: { dictionary: any }): string {
|
|
|
79
79
|
return `${inset}${x}px ${y}px ${blur}px ${spread}px ${color}`;
|
|
80
80
|
}).join(', ');
|
|
81
81
|
}
|
|
82
|
+
|
|
83
|
+
const flatKey = subPath.join('-');
|
|
84
|
+
preset.theme.boxShadow[flatKey] = finalValue;
|
|
85
|
+
|
|
86
|
+
return;
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
set(preset.theme[themeKey], subPath, finalValue);
|