@alignui/cli 0.0.1-alpha.4 → 0.0.1-alpha.5
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/tokens.ts +16 -12
package/package.json
CHANGED
package/src/utils/tokens.ts
CHANGED
|
@@ -460,24 +460,28 @@ export const tailwindColorsHex = {
|
|
|
460
460
|
};
|
|
461
461
|
|
|
462
462
|
export const tailwindColorsRgb = Object.fromEntries(
|
|
463
|
-
Object.entries(tailwindColorsHex).map(([colorName,
|
|
463
|
+
Object.entries(tailwindColorsHex).map(([colorName, shadesOrString]) => [
|
|
464
464
|
colorName,
|
|
465
|
-
|
|
466
|
-
Object.
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
465
|
+
typeof shadesOrString === 'object'
|
|
466
|
+
? Object.fromEntries(
|
|
467
|
+
Object.entries(shadesOrString).map(([shade, channel]) => {
|
|
468
|
+
return [shade, `rgb(${channel})`];
|
|
469
|
+
}),
|
|
470
|
+
)
|
|
471
|
+
: shadesOrString,
|
|
470
472
|
]),
|
|
471
473
|
);
|
|
472
474
|
|
|
473
475
|
export const tailwindColorsHsl = Object.fromEntries(
|
|
474
|
-
Object.entries(tailwindColorsHex).map(([colorName,
|
|
476
|
+
Object.entries(tailwindColorsHex).map(([colorName, shadesOrString]) => [
|
|
475
477
|
colorName,
|
|
476
|
-
|
|
477
|
-
Object.
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
478
|
+
typeof shadesOrString === 'object'
|
|
479
|
+
? Object.fromEntries(
|
|
480
|
+
Object.entries(shadesOrString).map(([shade, channel]) => {
|
|
481
|
+
return [shade, `hsl(${channel})`];
|
|
482
|
+
}),
|
|
483
|
+
)
|
|
484
|
+
: shadesOrString,
|
|
481
485
|
]),
|
|
482
486
|
);
|
|
483
487
|
|