@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alignui/cli",
3
- "version": "0.0.1-alpha.4",
3
+ "version": "0.0.1-alpha.5",
4
4
  "description": "A command line interface to setup AlignUI",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -460,24 +460,28 @@ export const tailwindColorsHex = {
460
460
  };
461
461
 
462
462
  export const tailwindColorsRgb = Object.fromEntries(
463
- Object.entries(tailwindColorsHex).map(([colorName, shades]) => [
463
+ Object.entries(tailwindColorsHex).map(([colorName, shadesOrString]) => [
464
464
  colorName,
465
- Object.fromEntries(
466
- Object.entries(shades).map(([shade, channel]) => {
467
- return [shade, `rgb(${channel})`];
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, shades]) => [
476
+ Object.entries(tailwindColorsHex).map(([colorName, shadesOrString]) => [
475
477
  colorName,
476
- Object.fromEntries(
477
- Object.entries(shades).map(([shade, channel]) => {
478
- return [shade, `hsl(${channel})`];
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