@trackunit/css-tailwind 0.0.60 → 0.0.64
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": "@trackunit/css-tailwind",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.64",
|
|
4
4
|
"main": "./index.cjs",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"types": "./src/index.d.ts",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@trackunit/css-component-tokens": "0.0.29",
|
|
11
|
-
"@trackunit/css-core": "0.0.
|
|
11
|
+
"@trackunit/css-core": "0.0.84",
|
|
12
12
|
"@trackunit/css-tailwind-custom-properties-plugin": "0.0.21",
|
|
13
|
-
"@trackunit/ui-design-tokens": "0.0.
|
|
13
|
+
"@trackunit/ui-design-tokens": "0.0.68"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {}
|
|
16
16
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { fontSizeKeys, themeFontSize } from "@trackunit/ui-design-tokens";
|
|
2
|
+
/**
|
|
3
|
+
* Generates the Tailwind config object for a given Design token object.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* Input: {
|
|
7
|
+
* "1": "0.25rem",
|
|
8
|
+
* "2": "0.5rem",
|
|
9
|
+
* }
|
|
10
|
+
*
|
|
11
|
+
* Output: {
|
|
12
|
+
* "1": "var(--spacing-1)",
|
|
13
|
+
* "2": "var(--spacing-2)"
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export declare const designTokensToTailwindConfig: (name: string, designTokens: object) => {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Converts a string to a css variable.
|
|
21
|
+
*
|
|
22
|
+
* @example valueInVar("--my-var-name") // var(--my-var-name)
|
|
23
|
+
*/
|
|
24
|
+
export declare const valueInVar: <T extends string>(value: T) => `var(${T})`;
|
|
25
|
+
/**
|
|
26
|
+
* If passed value includes "rem" the returned value will include the px value
|
|
27
|
+
*/
|
|
28
|
+
export declare const remToPx: (value: string, fontSize?: number) => string;
|
|
29
|
+
/**
|
|
30
|
+
* Uses the fontSize object to generate a Tailwind font configuration.
|
|
31
|
+
* **ATT: This relies on a set of line-height css variables matching the Font size keys**
|
|
32
|
+
*/
|
|
33
|
+
export declare const designTokensToFontSizeTailwindConfig: (fontSizes: typeof themeFontSize) => {
|
|
34
|
+
xs: [string, {
|
|
35
|
+
lineHeight: string;
|
|
36
|
+
}];
|
|
37
|
+
sm: [string, {
|
|
38
|
+
lineHeight: string;
|
|
39
|
+
}];
|
|
40
|
+
base: [string, {
|
|
41
|
+
lineHeight: string;
|
|
42
|
+
}];
|
|
43
|
+
lg: [string, {
|
|
44
|
+
lineHeight: string;
|
|
45
|
+
}];
|
|
46
|
+
xl: [string, {
|
|
47
|
+
lineHeight: string;
|
|
48
|
+
}];
|
|
49
|
+
"2xl": [string, {
|
|
50
|
+
lineHeight: string;
|
|
51
|
+
}];
|
|
52
|
+
"3xl": [string, {
|
|
53
|
+
lineHeight: string;
|
|
54
|
+
}];
|
|
55
|
+
"4xl": [string, {
|
|
56
|
+
lineHeight: string;
|
|
57
|
+
}];
|
|
58
|
+
"5xl": [string, {
|
|
59
|
+
lineHeight: string;
|
|
60
|
+
}];
|
|
61
|
+
"6xl": [string, {
|
|
62
|
+
lineHeight: string;
|
|
63
|
+
}];
|
|
64
|
+
"7xl": [string, {
|
|
65
|
+
lineHeight: string;
|
|
66
|
+
}];
|
|
67
|
+
"8xl": [string, {
|
|
68
|
+
lineHeight: string;
|
|
69
|
+
}];
|
|
70
|
+
"9xl": [string, {
|
|
71
|
+
lineHeight: string;
|
|
72
|
+
}];
|
|
73
|
+
};
|
|
@@ -7,89 +7,6 @@
|
|
|
7
7
|
/* node_modules/tailwindcss/utilities.css */
|
|
8
8
|
@tailwind utilities;
|
|
9
9
|
|
|
10
|
-
/* libs/css/core/src/lib/theme/tailwind-custom-properties.css */
|
|
11
|
-
:root {
|
|
12
|
-
--spacing-px: 1px;
|
|
13
|
-
--spacing-0: 0px;
|
|
14
|
-
--spacing-0-5: 0.125rem;
|
|
15
|
-
--spacing-1: 0.25rem;
|
|
16
|
-
--spacing-1-5: 0.375rem;
|
|
17
|
-
--spacing-2: 0.5rem;
|
|
18
|
-
--spacing-2-5: 0.625rem;
|
|
19
|
-
--spacing-3: 0.75rem;
|
|
20
|
-
--spacing-3-5: 0.875rem;
|
|
21
|
-
--spacing-4: 1rem;
|
|
22
|
-
--spacing-5: 1.25rem;
|
|
23
|
-
--spacing-6: 1.5rem;
|
|
24
|
-
--spacing-7: 1.75rem;
|
|
25
|
-
--spacing-8: 2rem;
|
|
26
|
-
--spacing-9: 2.25rem;
|
|
27
|
-
--spacing-10: 2.5rem;
|
|
28
|
-
--spacing-11: 2.75rem;
|
|
29
|
-
--spacing-12: 3rem;
|
|
30
|
-
--spacing-14: 3.5rem;
|
|
31
|
-
--spacing-16: 4rem;
|
|
32
|
-
--spacing-20: 5rem;
|
|
33
|
-
--spacing-24: 6rem;
|
|
34
|
-
--spacing-28: 7rem;
|
|
35
|
-
--spacing-32: 8rem;
|
|
36
|
-
--spacing-36: 9rem;
|
|
37
|
-
--spacing-40: 10rem;
|
|
38
|
-
--spacing-44: 11rem;
|
|
39
|
-
--spacing-48: 12rem;
|
|
40
|
-
--spacing-52: 13rem;
|
|
41
|
-
--spacing-56: 14rem;
|
|
42
|
-
--spacing-60: 15rem;
|
|
43
|
-
--spacing-64: 16rem;
|
|
44
|
-
--spacing-72: 18rem;
|
|
45
|
-
--spacing-80: 20rem;
|
|
46
|
-
--spacing-96: 24rem;
|
|
47
|
-
--border-radius-none: 0px;
|
|
48
|
-
--border-radius-sm: 0.125rem;
|
|
49
|
-
--border-radius-DEFAULT: 0.25rem;
|
|
50
|
-
--border-radius-md: 0.375rem;
|
|
51
|
-
--border-radius-lg: 0.5rem;
|
|
52
|
-
--border-radius-xl: 0.75rem;
|
|
53
|
-
--border-radius-2xl: 1rem;
|
|
54
|
-
--border-radius-3xl: 1.5rem;
|
|
55
|
-
--border-radius-full: 9999px;
|
|
56
|
-
--box-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
57
|
-
--box-shadow-DEFAULT: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
58
|
-
--box-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
59
|
-
--box-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
60
|
-
--box-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
61
|
-
--box-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
62
|
-
--box-shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
|
63
|
-
--box-shadow-none: none;
|
|
64
|
-
--box-shadow-popover: 0px 0px 1px 1px rgba(26, 27, 28, 0.13), 0px 1px 1px rgba(26, 27, 28, 0.15);
|
|
65
|
-
--font-size-xs: 0.75rem;
|
|
66
|
-
--font-size-sm: 0.875rem;
|
|
67
|
-
--font-size-base: 1rem;
|
|
68
|
-
--font-size-lg: 1.125rem;
|
|
69
|
-
--font-size-xl: 1.25rem;
|
|
70
|
-
--font-size-2xl: 1.5rem;
|
|
71
|
-
--font-size-3xl: 1.875rem;
|
|
72
|
-
--font-size-4xl: 2.25rem;
|
|
73
|
-
--font-size-5xl: 3rem;
|
|
74
|
-
--font-size-6xl: 3.75rem;
|
|
75
|
-
--font-size-7xl: 4.5rem;
|
|
76
|
-
--font-size-8xl: 6rem;
|
|
77
|
-
--font-size-9xl: 8rem;
|
|
78
|
-
--line-height-xs: 1rem;
|
|
79
|
-
--line-height-sm: 1.25rem;
|
|
80
|
-
--line-height-base: 1.5rem;
|
|
81
|
-
--line-height-lg: 1.75rem;
|
|
82
|
-
--line-height-xl: 1.75rem;
|
|
83
|
-
--line-height-2xl: 2rem;
|
|
84
|
-
--line-height-3xl: 2.25rem;
|
|
85
|
-
--line-height-4xl: 2.5rem;
|
|
86
|
-
--line-height-5xl: 1;
|
|
87
|
-
--line-height-6xl: 1;
|
|
88
|
-
--line-height-7xl: 1;
|
|
89
|
-
--line-height-8xl: 1;
|
|
90
|
-
--line-height-9xl: 1;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
10
|
/* libs/css/core/src/lib/theme/custom-properties.css */
|
|
94
11
|
:root {
|
|
95
12
|
--z-hidden: -1;
|
|
@@ -378,6 +378,19 @@ var ComponentTokensPlugin = (0, import_plugin2.default)(function({ addComponents
|
|
|
378
378
|
// libs/css/component-tokens/src/index.ts
|
|
379
379
|
var src_default = ComponentTokensPlugin;
|
|
380
380
|
|
|
381
|
+
// libs/ui/design-tokens/src/tokens/borderRadius.ts
|
|
382
|
+
var themeBorderRadius = {
|
|
383
|
+
none: "0",
|
|
384
|
+
sm: "0.125rem",
|
|
385
|
+
DEFAULT: "0.25rem",
|
|
386
|
+
md: "0.375rem",
|
|
387
|
+
lg: "0.5rem",
|
|
388
|
+
xl: "0.75rem",
|
|
389
|
+
"2xl": "1rem",
|
|
390
|
+
"3xl": "1.5rem",
|
|
391
|
+
full: "9999px"
|
|
392
|
+
};
|
|
393
|
+
|
|
381
394
|
// libs/ui/design-tokens/src/tokens/colors/tailwindPalette.ts
|
|
382
395
|
var tailwindPalette = {
|
|
383
396
|
slate: {
|
|
@@ -735,6 +748,171 @@ var themeColors = {
|
|
|
735
748
|
SITE: { name: "site", variants: trackunitPalette.SITE }
|
|
736
749
|
};
|
|
737
750
|
|
|
751
|
+
// libs/ui/design-tokens/src/tokens/elevation.ts
|
|
752
|
+
var themeBoxShadow = {
|
|
753
|
+
sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
754
|
+
DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
755
|
+
md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
756
|
+
lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
757
|
+
xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
|
|
758
|
+
"2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
|
|
759
|
+
inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
|
|
760
|
+
none: "none",
|
|
761
|
+
active: "0px 0px 1px 1px rgba(26, 27, 28, 0.13), 0px 1px 1px rgba(26, 27, 28, 0.15)"
|
|
762
|
+
};
|
|
763
|
+
var elevation = {
|
|
764
|
+
E05: themeBoxShadow.sm,
|
|
765
|
+
E10: themeBoxShadow.DEFAULT,
|
|
766
|
+
E10A: themeBoxShadow.md,
|
|
767
|
+
E20: themeBoxShadow.lg,
|
|
768
|
+
E30: themeBoxShadow.xl,
|
|
769
|
+
E40: themeBoxShadow["2xl"]
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
// libs/ui/design-tokens/src/tokens/screenSize.ts
|
|
773
|
+
var themeScreenSize = {
|
|
774
|
+
xs: "0px",
|
|
775
|
+
sm: "480px",
|
|
776
|
+
md: "768px",
|
|
777
|
+
lg: "1024px",
|
|
778
|
+
xl: "1200px",
|
|
779
|
+
"2xl": "1600px",
|
|
780
|
+
"3xl": "1900px"
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
// libs/ui/design-tokens/src/tokens/size.ts
|
|
784
|
+
var themeSpacing = {
|
|
785
|
+
px: "1px",
|
|
786
|
+
"0": "0px",
|
|
787
|
+
"0.5": "0.125rem",
|
|
788
|
+
"1": "0.25rem",
|
|
789
|
+
"1.5": "0.375rem",
|
|
790
|
+
"2": "0.5rem",
|
|
791
|
+
"2.5": "0.625rem",
|
|
792
|
+
"3": "0.75rem",
|
|
793
|
+
"3.5": "0.875rem",
|
|
794
|
+
"4": "1rem",
|
|
795
|
+
"5": "1.25rem",
|
|
796
|
+
"6": "1.5rem",
|
|
797
|
+
"7": "1.75rem",
|
|
798
|
+
"8": "2rem",
|
|
799
|
+
"9": "2.25rem",
|
|
800
|
+
"10": "2.5rem",
|
|
801
|
+
"11": "2.75rem",
|
|
802
|
+
"12": "3rem",
|
|
803
|
+
"14": "3.5rem",
|
|
804
|
+
"16": "4rem",
|
|
805
|
+
"20": "5rem",
|
|
806
|
+
"24": "6rem",
|
|
807
|
+
"28": "7rem",
|
|
808
|
+
"32": "8rem",
|
|
809
|
+
"36": "9rem",
|
|
810
|
+
"40": "10rem",
|
|
811
|
+
"44": "11rem",
|
|
812
|
+
"48": "12rem",
|
|
813
|
+
"52": "13rem",
|
|
814
|
+
"56": "14rem",
|
|
815
|
+
"60": "15rem",
|
|
816
|
+
"64": "16rem",
|
|
817
|
+
"72": "18rem",
|
|
818
|
+
"80": "20rem",
|
|
819
|
+
"96": "24rem"
|
|
820
|
+
};
|
|
821
|
+
var size = {
|
|
822
|
+
none: themeSpacing[0],
|
|
823
|
+
tiny: themeSpacing[1],
|
|
824
|
+
mini: themeSpacing[2],
|
|
825
|
+
small: themeSpacing[3],
|
|
826
|
+
medium: themeSpacing[4],
|
|
827
|
+
large: themeSpacing[6],
|
|
828
|
+
giant: themeSpacing[8],
|
|
829
|
+
enormous: themeSpacing[10]
|
|
830
|
+
};
|
|
831
|
+
|
|
832
|
+
// libs/ui/design-tokens/src/tokens/typography.ts
|
|
833
|
+
var themeFontSize = {
|
|
834
|
+
xs: "0.75rem",
|
|
835
|
+
sm: "0.875rem",
|
|
836
|
+
base: "1rem",
|
|
837
|
+
lg: "1.125rem",
|
|
838
|
+
xl: "1.25rem",
|
|
839
|
+
"2xl": "1.5rem",
|
|
840
|
+
"3xl": "1.875rem",
|
|
841
|
+
"4xl": "2.25rem",
|
|
842
|
+
"5xl": "3rem",
|
|
843
|
+
"6xl": "3.75rem",
|
|
844
|
+
"7xl": "4.5rem",
|
|
845
|
+
"8xl": "6rem",
|
|
846
|
+
"9xl": "8rem"
|
|
847
|
+
};
|
|
848
|
+
var themeLineHeight = {
|
|
849
|
+
xs: "1rem",
|
|
850
|
+
sm: "1.25rem",
|
|
851
|
+
base: "1.5rem",
|
|
852
|
+
lg: "1.75rem",
|
|
853
|
+
xl: "1.75rem",
|
|
854
|
+
"2xl": "2rem",
|
|
855
|
+
"3xl": "2.25rem",
|
|
856
|
+
"4xl": "2.5rem",
|
|
857
|
+
"5xl": "2.75rem",
|
|
858
|
+
"6xl": "3rem",
|
|
859
|
+
"7xl": "3.25rem",
|
|
860
|
+
"8xl": "3.5rem",
|
|
861
|
+
"9xl": "3.75rem"
|
|
862
|
+
};
|
|
863
|
+
var themeFontWeight = {
|
|
864
|
+
thin: 100,
|
|
865
|
+
extralight: 200,
|
|
866
|
+
light: 300,
|
|
867
|
+
normal: 400,
|
|
868
|
+
medium: 500,
|
|
869
|
+
bold: 600,
|
|
870
|
+
extrabold: 700,
|
|
871
|
+
black: 800
|
|
872
|
+
};
|
|
873
|
+
var fontSize = {
|
|
874
|
+
primary: themeFontSize["3xl"],
|
|
875
|
+
// 30px
|
|
876
|
+
secondary: themeFontSize.lg,
|
|
877
|
+
// 18px
|
|
878
|
+
tertiary: themeFontSize.base,
|
|
879
|
+
// 16px
|
|
880
|
+
subtitle: themeFontSize.base,
|
|
881
|
+
// 16px
|
|
882
|
+
body: themeFontSize.sm,
|
|
883
|
+
// 14px
|
|
884
|
+
small: themeFontSize.xs
|
|
885
|
+
// 12px
|
|
886
|
+
};
|
|
887
|
+
var fontWeight = {
|
|
888
|
+
thin: themeFontWeight.thin,
|
|
889
|
+
extralight: themeFontWeight.extralight,
|
|
890
|
+
light: themeFontWeight.light,
|
|
891
|
+
normal: themeFontWeight.normal,
|
|
892
|
+
medium: themeFontWeight.medium,
|
|
893
|
+
bold: themeFontWeight.bold,
|
|
894
|
+
extrabold: themeFontWeight.extrabold,
|
|
895
|
+
black: themeFontWeight.black
|
|
896
|
+
};
|
|
897
|
+
|
|
898
|
+
// libs/ui/design-tokens/src/tokens/zIndex.ts
|
|
899
|
+
var themeZIndex = {
|
|
900
|
+
hidden: -1,
|
|
901
|
+
default: 1,
|
|
902
|
+
top: 5,
|
|
903
|
+
overlay: 10,
|
|
904
|
+
popover: 20,
|
|
905
|
+
toast: 100
|
|
906
|
+
};
|
|
907
|
+
var zIndex = {
|
|
908
|
+
hidden: themeZIndex.hidden,
|
|
909
|
+
default: themeZIndex.default,
|
|
910
|
+
top: themeZIndex.top,
|
|
911
|
+
overlay: themeZIndex.overlay,
|
|
912
|
+
popover: themeZIndex.popover,
|
|
913
|
+
toast: themeZIndex.toast
|
|
914
|
+
};
|
|
915
|
+
|
|
738
916
|
// libs/css/tailwind/src/lib/animations.ts
|
|
739
917
|
var animations = {
|
|
740
918
|
animation: {
|
|
@@ -818,6 +996,34 @@ var grids = {
|
|
|
818
996
|
}
|
|
819
997
|
};
|
|
820
998
|
|
|
999
|
+
// libs/css/tailwind/src/lib/utilities/designTokensToTailwindConfig.ts
|
|
1000
|
+
var designTokensToTailwindConfig = (name, designTokens) => {
|
|
1001
|
+
const entries = Object.entries(designTokens).map(([key, value]) => [
|
|
1002
|
+
key,
|
|
1003
|
+
`/* ${remToPx(value)} */ ${valueInVar(keysToCssVariableName([name, key]))}`
|
|
1004
|
+
]);
|
|
1005
|
+
return Object.fromEntries(entries);
|
|
1006
|
+
};
|
|
1007
|
+
var valueInVar = (value) => `var(${value})`;
|
|
1008
|
+
var remToPx = (value, fontSize2 = 16) => {
|
|
1009
|
+
try {
|
|
1010
|
+
if (value && typeof value === "string" && value.includes("rem")) {
|
|
1011
|
+
return `${value} / ${parseFloat(value) * fontSize2}px`;
|
|
1012
|
+
} else {
|
|
1013
|
+
return value;
|
|
1014
|
+
}
|
|
1015
|
+
} catch (e) {
|
|
1016
|
+
return value;
|
|
1017
|
+
}
|
|
1018
|
+
};
|
|
1019
|
+
var designTokensToFontSizeTailwindConfig = (fontSizes) => {
|
|
1020
|
+
const entries = Object.keys(fontSizes).map((key) => [
|
|
1021
|
+
key,
|
|
1022
|
+
[valueInVar(`--font-size-${key}`), { lineHeight: valueInVar(`--line-height-${key}`) }]
|
|
1023
|
+
]);
|
|
1024
|
+
return Object.fromEntries(entries);
|
|
1025
|
+
};
|
|
1026
|
+
|
|
821
1027
|
// libs/css/tailwind/src/lib/utilities/themeColorsToVariableObjectDefinition.ts
|
|
822
1028
|
function themeColorsToVariableObjectDefinition(themeColors2) {
|
|
823
1029
|
return Object.fromEntries(
|
|
@@ -880,15 +1086,7 @@ var tailwindBaseConfig = {
|
|
|
880
1086
|
files: []
|
|
881
1087
|
},
|
|
882
1088
|
theme: {
|
|
883
|
-
screens:
|
|
884
|
-
xs: "0px",
|
|
885
|
-
sm: "480px",
|
|
886
|
-
md: "768px",
|
|
887
|
-
lg: "1024px",
|
|
888
|
-
xl: "1200px",
|
|
889
|
-
"2xl": "1600px",
|
|
890
|
-
"3xl": "1900px"
|
|
891
|
-
},
|
|
1089
|
+
screens: themeScreenSize,
|
|
892
1090
|
colors: ({ colors }) => {
|
|
893
1091
|
const customColors = Object.fromEntries(
|
|
894
1092
|
Object.entries(themeColors).map(([_, value]) => {
|
|
@@ -910,129 +1108,14 @@ var tailwindBaseConfig = {
|
|
|
910
1108
|
transparent: colors.transparent
|
|
911
1109
|
}, tailwindDefaults), customColors);
|
|
912
1110
|
},
|
|
913
|
-
spacing: {
|
|
914
|
-
px: withCustomPropertyValueAsComment("--spacing-px"),
|
|
915
|
-
0: withCustomPropertyValueAsComment("--spacing-0"),
|
|
916
|
-
0.5: withCustomPropertyValueAsComment("--spacing-0-5"),
|
|
917
|
-
1: withCustomPropertyValueAsComment("--spacing-1"),
|
|
918
|
-
1.5: withCustomPropertyValueAsComment("--spacing-1-5"),
|
|
919
|
-
2: withCustomPropertyValueAsComment("--spacing-2"),
|
|
920
|
-
2.5: withCustomPropertyValueAsComment("--spacing-2-5"),
|
|
921
|
-
3: withCustomPropertyValueAsComment("--spacing-3"),
|
|
922
|
-
3.5: withCustomPropertyValueAsComment("--spacing-3-5"),
|
|
923
|
-
4: withCustomPropertyValueAsComment("--spacing-4"),
|
|
924
|
-
5: withCustomPropertyValueAsComment("--spacing-5"),
|
|
925
|
-
6: withCustomPropertyValueAsComment("--spacing-6"),
|
|
926
|
-
7: withCustomPropertyValueAsComment("--spacing-7"),
|
|
927
|
-
8: withCustomPropertyValueAsComment("--spacing-8"),
|
|
928
|
-
9: withCustomPropertyValueAsComment("--spacing-9"),
|
|
929
|
-
10: withCustomPropertyValueAsComment("--spacing-10"),
|
|
930
|
-
11: withCustomPropertyValueAsComment("--spacing-11"),
|
|
931
|
-
12: withCustomPropertyValueAsComment("--spacing-12"),
|
|
932
|
-
14: withCustomPropertyValueAsComment("--spacing-14"),
|
|
933
|
-
16: withCustomPropertyValueAsComment("--spacing-16"),
|
|
934
|
-
20: withCustomPropertyValueAsComment("--spacing-20"),
|
|
935
|
-
24: withCustomPropertyValueAsComment("--spacing-24"),
|
|
936
|
-
28: withCustomPropertyValueAsComment("--spacing-28"),
|
|
937
|
-
32: withCustomPropertyValueAsComment("--spacing-32"),
|
|
938
|
-
36: withCustomPropertyValueAsComment("--spacing-36"),
|
|
939
|
-
40: withCustomPropertyValueAsComment("--spacing-40"),
|
|
940
|
-
44: withCustomPropertyValueAsComment("--spacing-44"),
|
|
941
|
-
48: withCustomPropertyValueAsComment("--spacing-48"),
|
|
942
|
-
52: withCustomPropertyValueAsComment("--spacing-52"),
|
|
943
|
-
56: withCustomPropertyValueAsComment("--spacing-56"),
|
|
944
|
-
60: withCustomPropertyValueAsComment("--spacing-60"),
|
|
945
|
-
64: withCustomPropertyValueAsComment("--spacing-64"),
|
|
946
|
-
72: withCustomPropertyValueAsComment("--spacing-72"),
|
|
947
|
-
80: withCustomPropertyValueAsComment("--spacing-80"),
|
|
948
|
-
96: withCustomPropertyValueAsComment("--spacing-96"),
|
|
1111
|
+
spacing: __spreadProps(__spreadValues({}, designTokensToTailwindConfig("spacing", themeSpacing)), {
|
|
949
1112
|
"responsive-space": withCustomPropertyValueAsComment("--spacing-responsive-space")
|
|
950
|
-
},
|
|
951
|
-
borderRadius:
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
DEFAULT: withCustomPropertyValueAsComment("--border-radius-DEFAULT"),
|
|
955
|
-
md: withCustomPropertyValueAsComment("--border-radius-md"),
|
|
956
|
-
lg: withCustomPropertyValueAsComment("--border-radius-lg"),
|
|
957
|
-
xl: withCustomPropertyValueAsComment("--border-radius-xl"),
|
|
958
|
-
"2xl": withCustomPropertyValueAsComment("--border-radius-2xl"),
|
|
959
|
-
"3xl": withCustomPropertyValueAsComment("--border-radius-3xl"),
|
|
960
|
-
full: withCustomPropertyValueAsComment("--border-radius-full")
|
|
961
|
-
},
|
|
962
|
-
boxShadow: {
|
|
963
|
-
sm: withCustomPropertyValueAsComment("--box-shadow-sm"),
|
|
964
|
-
DEFAULT: withCustomPropertyValueAsComment("--box-shadow-DEFAULT"),
|
|
965
|
-
md: withCustomPropertyValueAsComment("--box-shadow-md"),
|
|
966
|
-
lg: withCustomPropertyValueAsComment("--box-shadow-lg"),
|
|
967
|
-
xl: withCustomPropertyValueAsComment("--box-shadow-xl"),
|
|
968
|
-
"2xl": withCustomPropertyValueAsComment("--box-shadow-2xl"),
|
|
969
|
-
inner: withCustomPropertyValueAsComment("--box-shadow-inner"),
|
|
970
|
-
none: withCustomPropertyValueAsComment("--box-shadow-none"),
|
|
971
|
-
active: withCustomPropertyValueAsComment("--box-shadow-active")
|
|
972
|
-
},
|
|
973
|
-
fontSize: {
|
|
974
|
-
xs: [
|
|
975
|
-
withCustomPropertyValueAsComment("--font-size-xs"),
|
|
976
|
-
{ lineHeight: withCustomPropertyValueAsComment("--line-height-xs") }
|
|
977
|
-
],
|
|
978
|
-
sm: [
|
|
979
|
-
withCustomPropertyValueAsComment("--font-size-sm"),
|
|
980
|
-
{ lineHeight: withCustomPropertyValueAsComment("--line-height-sm") }
|
|
981
|
-
],
|
|
982
|
-
base: [
|
|
983
|
-
withCustomPropertyValueAsComment("--font-size-base"),
|
|
984
|
-
{ lineHeight: withCustomPropertyValueAsComment("--line-height-base") }
|
|
985
|
-
],
|
|
986
|
-
lg: [
|
|
987
|
-
withCustomPropertyValueAsComment("--font-size-lg"),
|
|
988
|
-
{ lineHeight: withCustomPropertyValueAsComment("--line-height-lg") }
|
|
989
|
-
],
|
|
990
|
-
xl: [
|
|
991
|
-
withCustomPropertyValueAsComment("--font-size-xl"),
|
|
992
|
-
{ lineHeight: withCustomPropertyValueAsComment("--line-height-xl") }
|
|
993
|
-
],
|
|
994
|
-
"2xl": [
|
|
995
|
-
withCustomPropertyValueAsComment("--font-size-2xl"),
|
|
996
|
-
{ lineHeight: withCustomPropertyValueAsComment("--line-height-2xl") }
|
|
997
|
-
],
|
|
998
|
-
"3xl": [
|
|
999
|
-
withCustomPropertyValueAsComment("--font-size-3xl"),
|
|
1000
|
-
{ lineHeight: withCustomPropertyValueAsComment("--line-height-3xl") }
|
|
1001
|
-
],
|
|
1002
|
-
"4xl": [
|
|
1003
|
-
withCustomPropertyValueAsComment("--font-size-4xl"),
|
|
1004
|
-
{ lineHeight: withCustomPropertyValueAsComment("--line-height-4xl") }
|
|
1005
|
-
],
|
|
1006
|
-
"5xl": [
|
|
1007
|
-
withCustomPropertyValueAsComment("--font-size-5xl"),
|
|
1008
|
-
{ lineHeight: withCustomPropertyValueAsComment("--line-height-5xl") }
|
|
1009
|
-
],
|
|
1010
|
-
"6xl": [
|
|
1011
|
-
withCustomPropertyValueAsComment("--font-size-6xl"),
|
|
1012
|
-
{ lineHeight: withCustomPropertyValueAsComment("--line-height-6xl") }
|
|
1013
|
-
],
|
|
1014
|
-
"7xl": [
|
|
1015
|
-
withCustomPropertyValueAsComment("--font-size-7xl"),
|
|
1016
|
-
{ lineHeight: withCustomPropertyValueAsComment("--line-height-7xl") }
|
|
1017
|
-
],
|
|
1018
|
-
"8xl": [
|
|
1019
|
-
withCustomPropertyValueAsComment("--font-size-8xl"),
|
|
1020
|
-
{ lineHeight: withCustomPropertyValueAsComment("--line-height-8xl") }
|
|
1021
|
-
],
|
|
1022
|
-
"9xl": [
|
|
1023
|
-
withCustomPropertyValueAsComment("--font-size-9xl"),
|
|
1024
|
-
{ lineHeight: withCustomPropertyValueAsComment("--line-height-9xl") }
|
|
1025
|
-
]
|
|
1026
|
-
},
|
|
1113
|
+
}),
|
|
1114
|
+
borderRadius: designTokensToTailwindConfig("border-radius", themeBorderRadius),
|
|
1115
|
+
boxShadow: designTokensToTailwindConfig("box-shadow", themeBoxShadow),
|
|
1116
|
+
fontSize: designTokensToFontSizeTailwindConfig(themeFontSize),
|
|
1027
1117
|
extend: __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, animations), grids), containers), {
|
|
1028
|
-
zIndex:
|
|
1029
|
-
hidden: withCustomPropertyValueAsComment("--z-hidden"),
|
|
1030
|
-
default: withCustomPropertyValueAsComment("--z-default"),
|
|
1031
|
-
top: withCustomPropertyValueAsComment("--z-top"),
|
|
1032
|
-
overlay: withCustomPropertyValueAsComment("--z-overlay"),
|
|
1033
|
-
popover: withCustomPropertyValueAsComment("--z-popover"),
|
|
1034
|
-
toast: withCustomPropertyValueAsComment("--z-toast")
|
|
1035
|
-
}
|
|
1118
|
+
zIndex: designTokensToTailwindConfig("z", themeZIndex)
|
|
1036
1119
|
}),
|
|
1037
1120
|
variables: {
|
|
1038
1121
|
"theme-marketing": {
|
|
@@ -1088,7 +1171,13 @@ var tailwindBaseConfig = {
|
|
|
1088
1171
|
})
|
|
1089
1172
|
},
|
|
1090
1173
|
DEFAULT: {
|
|
1091
|
-
|
|
1174
|
+
"border-radius": themeBorderRadius,
|
|
1175
|
+
"box-shadow": themeBoxShadow,
|
|
1176
|
+
color: __spreadValues(__spreadValues({}, tailwindPalette), themeColorsToVariableObjectDefinition(themeColors)),
|
|
1177
|
+
"font-size": themeFontSize,
|
|
1178
|
+
"line-height": themeLineHeight,
|
|
1179
|
+
spacing: themeSpacing,
|
|
1180
|
+
z: themeZIndex
|
|
1092
1181
|
}
|
|
1093
1182
|
}
|
|
1094
1183
|
},
|