@alignui/cli 0.0.1-alpha.4 → 0.0.1-alpha.6
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 +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/templates.ts +5 -3
- package/src/utils/tokens.ts +16 -12
package/package.json
CHANGED
package/src/utils/templates.ts
CHANGED
|
@@ -60,9 +60,11 @@ import { PluginAPI } from 'tailwindcss/types/config';
|
|
|
60
60
|
import defaultTheme from 'tailwindcss/defaultTheme';
|
|
61
61
|
import tailwindcssAnimate from 'tailwindcss-animate';
|
|
62
62
|
|
|
63
|
-
export const texts = <%= texts
|
|
64
|
-
|
|
65
|
-
export const
|
|
63
|
+
export const texts = <%= texts %> as any;
|
|
64
|
+
|
|
65
|
+
export const shadows = <%= shadows %> as any;
|
|
66
|
+
|
|
67
|
+
export const borderRadii = <%= borderRadii %> as any;
|
|
66
68
|
|
|
67
69
|
const config = {
|
|
68
70
|
darkMode: ["class"],
|
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
|
|