doom-design-system 0.1.0
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/README.md +50 -0
- package/dist/DesignSystemProvider.d.ts +7 -0
- package/dist/DesignSystemProvider.js +13 -0
- package/dist/components/ActionRow/ActionRow.d.ts +9 -0
- package/dist/components/ActionRow/ActionRow.js +47 -0
- package/dist/components/ActionRow/index.d.ts +1 -0
- package/dist/components/ActionRow/index.js +1 -0
- package/dist/components/Badge/Badge.d.ts +8 -0
- package/dist/components/Badge/Badge.js +57 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Badge/index.js +1 -0
- package/dist/components/Button/Button.d.ts +9 -0
- package/dist/components/Button/Button.js +110 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button/index.js +1 -0
- package/dist/components/Card/Card.d.ts +8 -0
- package/dist/components/Card/Card.js +28 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Card/index.js +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +11 -0
- package/dist/components/Dropdown/Dropdown.js +47 -0
- package/dist/components/Dropdown/index.d.ts +1 -0
- package/dist/components/Dropdown/index.js +1 -0
- package/dist/components/Form/Form.d.ts +14 -0
- package/dist/components/Form/Form.js +24 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Form/index.js +1 -0
- package/dist/components/Icon/index.d.ts +25 -0
- package/dist/components/Icon/index.js +41 -0
- package/dist/components/Input/Input.d.ts +12 -0
- package/dist/components/Input/Input.js +129 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Input/index.js +1 -0
- package/dist/components/Layout/Layout.d.ts +17 -0
- package/dist/components/Layout/Layout.js +37 -0
- package/dist/components/Layout/index.d.ts +1 -0
- package/dist/components/Layout/index.js +1 -0
- package/dist/components/Link/Link.d.ts +11 -0
- package/dist/components/Link/Link.js +78 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Link/index.js +1 -0
- package/dist/components/Modal/Modal.d.ts +22 -0
- package/dist/components/Modal/Modal.js +89 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Modal/index.js +1 -0
- package/dist/components/Page/Page.d.ts +13 -0
- package/dist/components/Page/Page.js +27 -0
- package/dist/components/Page/index.d.ts +1 -0
- package/dist/components/Page/index.js +1 -0
- package/dist/components/Popover/Popover.d.ts +11 -0
- package/dist/components/Popover/Popover.js +91 -0
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Popover/index.js +1 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +12 -0
- package/dist/components/ProgressBar/ProgressBar.js +42 -0
- package/dist/components/ProgressBar/index.d.ts +1 -0
- package/dist/components/ProgressBar/index.js +1 -0
- package/dist/components/Select/Select.d.ts +12 -0
- package/dist/components/Select/Select.js +202 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/index.js +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +8 -0
- package/dist/components/Skeleton/Skeleton.js +65 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Skeleton/index.js +1 -0
- package/dist/components/SplitButton/SplitButton.d.ts +12 -0
- package/dist/components/SplitButton/SplitButton.js +90 -0
- package/dist/components/SplitButton/index.d.ts +1 -0
- package/dist/components/SplitButton/index.js +1 -0
- package/dist/components/Table/Table.d.ts +19 -0
- package/dist/components/Table/Table.js +176 -0
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Table/index.js +1 -0
- package/dist/components/Tabs/Tabs.d.ts +34 -0
- package/dist/components/Tabs/Tabs.js +94 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/index.js +1 -0
- package/dist/components/Text/Text.d.ts +14 -0
- package/dist/components/Text/Text.js +123 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text/index.js +1 -0
- package/dist/components/Textarea/Textarea.d.ts +3 -0
- package/dist/components/Textarea/Textarea.js +30 -0
- package/dist/components/Textarea/index.d.ts +1 -0
- package/dist/components/Textarea/index.js +1 -0
- package/dist/components/Toast/Toast.d.ts +14 -0
- package/dist/components/Toast/Toast.js +109 -0
- package/dist/components/Toast/index.d.ts +1 -0
- package/dist/components/Toast/index.js +1 -0
- package/dist/fonts.d.ts +1 -0
- package/dist/fonts.js +6 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +24 -0
- package/dist/styles/index.d.ts +3 -0
- package/dist/styles/index.js +3 -0
- package/dist/styles/reset.d.ts +1 -0
- package/dist/styles/reset.js +29 -0
- package/dist/styles/theme.d.ts +1 -0
- package/dist/styles/theme.js +11 -0
- package/dist/styles/themes/ThemeProvider.d.ts +13 -0
- package/dist/styles/themes/ThemeProvider.js +37 -0
- package/dist/styles/themes/actions.d.ts +3 -0
- package/dist/styles/themes/actions.js +16 -0
- package/dist/styles/themes/definitions.d.ts +211 -0
- package/dist/styles/themes/definitions.js +48 -0
- package/dist/styles/themes/index.d.ts +3 -0
- package/dist/styles/themes/index.js +3 -0
- package/dist/styles/utilities.d.ts +1 -0
- package/dist/styles/utilities.js +184 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
export declare const themes: {
|
|
2
|
+
readonly default: {
|
|
3
|
+
readonly name: "Default";
|
|
4
|
+
readonly variables: {
|
|
5
|
+
readonly '--background': "#e0e7ff";
|
|
6
|
+
readonly '--foreground': "#000000";
|
|
7
|
+
readonly '--card-bg': "#ffffff";
|
|
8
|
+
readonly '--card-border': "#000000";
|
|
9
|
+
readonly '--primary': "#a855f7";
|
|
10
|
+
readonly '--primary-hover': "#9333ea";
|
|
11
|
+
readonly '--primary-foreground': "#000000";
|
|
12
|
+
readonly '--secondary': "#fbbf24";
|
|
13
|
+
readonly '--secondary-foreground': "#000000";
|
|
14
|
+
readonly '--accent': "#ec4899";
|
|
15
|
+
readonly '--muted': "#94a3b8";
|
|
16
|
+
readonly '--muted-foreground': "#334155";
|
|
17
|
+
readonly '--success': "#22c55e";
|
|
18
|
+
readonly '--warning': "#f59e0b";
|
|
19
|
+
readonly '--error': "#ef4444";
|
|
20
|
+
readonly '--border-width': "3px";
|
|
21
|
+
readonly '--radius': "8px";
|
|
22
|
+
readonly '--shadow-hard': "5px 5px 0px 0px #000000";
|
|
23
|
+
readonly '--shadow-hover': "7px 7px 0px 0px #000000";
|
|
24
|
+
readonly '--font-heading': "var(--font-montserrat)";
|
|
25
|
+
readonly '--heading-transform': "uppercase";
|
|
26
|
+
readonly '--heading-weight': "900";
|
|
27
|
+
readonly '--text-xs': string;
|
|
28
|
+
readonly '--text-sm': string;
|
|
29
|
+
readonly '--text-base': string;
|
|
30
|
+
readonly '--text-lg': string;
|
|
31
|
+
readonly '--text-xl': string;
|
|
32
|
+
readonly '--text-2xl': string;
|
|
33
|
+
readonly '--text-3xl': string;
|
|
34
|
+
readonly '--text-4xl': string;
|
|
35
|
+
readonly '--text-5xl': string;
|
|
36
|
+
readonly '--text-6xl': string;
|
|
37
|
+
readonly '--font-thin': string;
|
|
38
|
+
readonly '--font-extralight': string;
|
|
39
|
+
readonly '--font-light': string;
|
|
40
|
+
readonly '--font-regular': string;
|
|
41
|
+
readonly '--font-medium': string;
|
|
42
|
+
readonly '--font-semibold': string;
|
|
43
|
+
readonly '--font-bold': string;
|
|
44
|
+
readonly '--font-extrabold': string;
|
|
45
|
+
readonly '--font-black': string;
|
|
46
|
+
readonly '--z-base': string;
|
|
47
|
+
readonly '--z-elevated': string;
|
|
48
|
+
readonly '--z-header': string;
|
|
49
|
+
readonly '--z-dropdown': string;
|
|
50
|
+
readonly '--z-modal': string;
|
|
51
|
+
readonly '--z-tooltip': string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
readonly doom: {
|
|
55
|
+
readonly name: "DOOMSDAY";
|
|
56
|
+
readonly variables: {
|
|
57
|
+
readonly '--background': "#020617";
|
|
58
|
+
readonly '--foreground': "#e2e8f0";
|
|
59
|
+
readonly '--card-bg': "#0f172a";
|
|
60
|
+
readonly '--card-border': "#1e293b";
|
|
61
|
+
readonly '--primary': "#10b981";
|
|
62
|
+
readonly '--primary-hover': "#059669";
|
|
63
|
+
readonly '--primary-foreground': "#020617";
|
|
64
|
+
readonly '--secondary': "#334155";
|
|
65
|
+
readonly '--secondary-foreground': "#f8fafc";
|
|
66
|
+
readonly '--accent': "#fbbf24";
|
|
67
|
+
readonly '--muted': "#64748b";
|
|
68
|
+
readonly '--muted-foreground': "#94a3b8";
|
|
69
|
+
readonly '--success': "#10b981";
|
|
70
|
+
readonly '--warning': "#fbbf24";
|
|
71
|
+
readonly '--error': "#ef4444";
|
|
72
|
+
readonly '--border-width': "2px";
|
|
73
|
+
readonly '--radius': "2px";
|
|
74
|
+
readonly '--shadow-hard': "5px 5px 0px 0px #000000";
|
|
75
|
+
readonly '--shadow-hover': "7px 7px 0px 0px #000000";
|
|
76
|
+
readonly '--font-heading': "var(--font-montserrat)";
|
|
77
|
+
readonly '--heading-transform': "uppercase";
|
|
78
|
+
readonly '--heading-weight': "700";
|
|
79
|
+
readonly '--text-xs': string;
|
|
80
|
+
readonly '--text-sm': string;
|
|
81
|
+
readonly '--text-base': string;
|
|
82
|
+
readonly '--text-lg': string;
|
|
83
|
+
readonly '--text-xl': string;
|
|
84
|
+
readonly '--text-2xl': string;
|
|
85
|
+
readonly '--text-3xl': string;
|
|
86
|
+
readonly '--text-4xl': string;
|
|
87
|
+
readonly '--text-5xl': string;
|
|
88
|
+
readonly '--text-6xl': string;
|
|
89
|
+
readonly '--font-thin': string;
|
|
90
|
+
readonly '--font-extralight': string;
|
|
91
|
+
readonly '--font-light': string;
|
|
92
|
+
readonly '--font-regular': string;
|
|
93
|
+
readonly '--font-medium': string;
|
|
94
|
+
readonly '--font-semibold': string;
|
|
95
|
+
readonly '--font-bold': string;
|
|
96
|
+
readonly '--font-extrabold': string;
|
|
97
|
+
readonly '--font-black': string;
|
|
98
|
+
readonly '--z-base': string;
|
|
99
|
+
readonly '--z-elevated': string;
|
|
100
|
+
readonly '--z-header': string;
|
|
101
|
+
readonly '--z-dropdown': string;
|
|
102
|
+
readonly '--z-modal': string;
|
|
103
|
+
readonly '--z-tooltip': string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
readonly neighbor: {
|
|
107
|
+
readonly name: "THE CAPTAIN";
|
|
108
|
+
readonly variables: {
|
|
109
|
+
readonly '--background': "#F8FAFC";
|
|
110
|
+
readonly '--foreground': "#0F172A";
|
|
111
|
+
readonly '--card-bg': "#FFFFFF";
|
|
112
|
+
readonly '--card-border': "#002D72";
|
|
113
|
+
readonly '--primary': "#002D72";
|
|
114
|
+
readonly '--primary-hover': "#1E3A8A";
|
|
115
|
+
readonly '--primary-foreground': "#FFFFFF";
|
|
116
|
+
readonly '--secondary': "#B91C1C";
|
|
117
|
+
readonly '--secondary-foreground': "#FFFFFF";
|
|
118
|
+
readonly '--accent': "#C0C0C0";
|
|
119
|
+
readonly '--muted': "#64748B";
|
|
120
|
+
readonly '--muted-foreground': "#475569";
|
|
121
|
+
readonly '--success': "#15803D";
|
|
122
|
+
readonly '--warning': "#B45309";
|
|
123
|
+
readonly '--error': "#B91C1C";
|
|
124
|
+
readonly '--border-width': "3px";
|
|
125
|
+
readonly '--radius': "8px";
|
|
126
|
+
readonly '--shadow-hard': "6px 6px 0px 0px #0F172A";
|
|
127
|
+
readonly '--shadow-hover': "8px 8px 0px 0px #0F172A";
|
|
128
|
+
readonly '--font-heading': "var(--font-montserrat)";
|
|
129
|
+
readonly '--heading-transform': "uppercase";
|
|
130
|
+
readonly '--heading-weight': "900";
|
|
131
|
+
readonly '--text-xs': string;
|
|
132
|
+
readonly '--text-sm': string;
|
|
133
|
+
readonly '--text-base': string;
|
|
134
|
+
readonly '--text-lg': string;
|
|
135
|
+
readonly '--text-xl': string;
|
|
136
|
+
readonly '--text-2xl': string;
|
|
137
|
+
readonly '--text-3xl': string;
|
|
138
|
+
readonly '--text-4xl': string;
|
|
139
|
+
readonly '--text-5xl': string;
|
|
140
|
+
readonly '--text-6xl': string;
|
|
141
|
+
readonly '--font-thin': string;
|
|
142
|
+
readonly '--font-extralight': string;
|
|
143
|
+
readonly '--font-light': string;
|
|
144
|
+
readonly '--font-regular': string;
|
|
145
|
+
readonly '--font-medium': string;
|
|
146
|
+
readonly '--font-semibold': string;
|
|
147
|
+
readonly '--font-bold': string;
|
|
148
|
+
readonly '--font-extrabold': string;
|
|
149
|
+
readonly '--font-black': string;
|
|
150
|
+
readonly '--z-base': string;
|
|
151
|
+
readonly '--z-elevated': string;
|
|
152
|
+
readonly '--z-header': string;
|
|
153
|
+
readonly '--z-dropdown': string;
|
|
154
|
+
readonly '--z-modal': string;
|
|
155
|
+
readonly '--z-tooltip': string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
readonly vigilante: {
|
|
159
|
+
readonly name: "DARK KNIGHT";
|
|
160
|
+
readonly variables: {
|
|
161
|
+
readonly '--background': "#0F1419";
|
|
162
|
+
readonly '--foreground': "#E8E9ED";
|
|
163
|
+
readonly '--card-bg': "#1A1F29";
|
|
164
|
+
readonly '--card-border': "#2D3748";
|
|
165
|
+
readonly '--primary': "#F7B731";
|
|
166
|
+
readonly '--primary-hover': "#F5A623";
|
|
167
|
+
readonly '--primary-foreground': "#0F1419";
|
|
168
|
+
readonly '--secondary': "#4A5568";
|
|
169
|
+
readonly '--secondary-foreground': "#E8E9ED";
|
|
170
|
+
readonly '--accent': "#3B82F6";
|
|
171
|
+
readonly '--muted': "#718096";
|
|
172
|
+
readonly '--muted-foreground': "#A0AEC0";
|
|
173
|
+
readonly '--success': "#48BB78";
|
|
174
|
+
readonly '--warning': "#ED8936";
|
|
175
|
+
readonly '--error': "#F56565";
|
|
176
|
+
readonly '--border-width': "2px";
|
|
177
|
+
readonly '--radius': "6px";
|
|
178
|
+
readonly '--shadow-hard': "5px 5px 0px 0px #000000";
|
|
179
|
+
readonly '--shadow-hover': "7px 7px 0px 0px #000000";
|
|
180
|
+
readonly '--font-heading': "var(--font-montserrat)";
|
|
181
|
+
readonly '--heading-transform': "uppercase";
|
|
182
|
+
readonly '--heading-weight': "700";
|
|
183
|
+
readonly '--text-xs': string;
|
|
184
|
+
readonly '--text-sm': string;
|
|
185
|
+
readonly '--text-base': string;
|
|
186
|
+
readonly '--text-lg': string;
|
|
187
|
+
readonly '--text-xl': string;
|
|
188
|
+
readonly '--text-2xl': string;
|
|
189
|
+
readonly '--text-3xl': string;
|
|
190
|
+
readonly '--text-4xl': string;
|
|
191
|
+
readonly '--text-5xl': string;
|
|
192
|
+
readonly '--text-6xl': string;
|
|
193
|
+
readonly '--font-thin': string;
|
|
194
|
+
readonly '--font-extralight': string;
|
|
195
|
+
readonly '--font-light': string;
|
|
196
|
+
readonly '--font-regular': string;
|
|
197
|
+
readonly '--font-medium': string;
|
|
198
|
+
readonly '--font-semibold': string;
|
|
199
|
+
readonly '--font-bold': string;
|
|
200
|
+
readonly '--font-extrabold': string;
|
|
201
|
+
readonly '--font-black': string;
|
|
202
|
+
readonly '--z-base': string;
|
|
203
|
+
readonly '--z-elevated': string;
|
|
204
|
+
readonly '--z-header': string;
|
|
205
|
+
readonly '--z-dropdown': string;
|
|
206
|
+
readonly '--z-modal': string;
|
|
207
|
+
readonly '--z-tooltip': string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
export type ThemeKey = keyof typeof themes;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const baseVariables = {
|
|
2
|
+
// Typography Scale
|
|
3
|
+
'--text-xs': '0.75rem',
|
|
4
|
+
'--text-sm': '0.875rem',
|
|
5
|
+
'--text-base': '1rem',
|
|
6
|
+
'--text-lg': '1.125rem',
|
|
7
|
+
'--text-xl': '1.25rem',
|
|
8
|
+
'--text-2xl': '1.5rem',
|
|
9
|
+
'--text-3xl': '1.875rem',
|
|
10
|
+
'--text-4xl': '2.25rem',
|
|
11
|
+
'--text-5xl': '3rem',
|
|
12
|
+
'--text-6xl': '3.75rem',
|
|
13
|
+
// Font Weights
|
|
14
|
+
'--font-thin': '100',
|
|
15
|
+
'--font-extralight': '200',
|
|
16
|
+
'--font-light': '300',
|
|
17
|
+
'--font-regular': '400',
|
|
18
|
+
'--font-medium': '500',
|
|
19
|
+
'--font-semibold': '600',
|
|
20
|
+
'--font-bold': '700',
|
|
21
|
+
'--font-extrabold': '800',
|
|
22
|
+
'--font-black': '900',
|
|
23
|
+
// Z-Indices
|
|
24
|
+
'--z-base': '0',
|
|
25
|
+
'--z-elevated': '10',
|
|
26
|
+
'--z-header': '40',
|
|
27
|
+
'--z-dropdown': '50',
|
|
28
|
+
'--z-modal': '100',
|
|
29
|
+
'--z-tooltip': '200',
|
|
30
|
+
};
|
|
31
|
+
export const themes = {
|
|
32
|
+
default: {
|
|
33
|
+
name: 'Default',
|
|
34
|
+
variables: Object.assign(Object.assign({}, baseVariables), { '--background': '#e0e7ff', '--foreground': '#000000', '--card-bg': '#ffffff', '--card-border': '#000000', '--primary': '#a855f7', '--primary-hover': '#9333ea', '--primary-foreground': '#000000', '--secondary': '#fbbf24', '--secondary-foreground': '#000000', '--accent': '#ec4899', '--muted': '#94a3b8', '--muted-foreground': '#334155', '--success': '#22c55e', '--warning': '#f59e0b', '--error': '#ef4444', '--border-width': '3px', '--radius': '8px', '--shadow-hard': '5px 5px 0px 0px #000000', '--shadow-hover': '7px 7px 0px 0px #000000', '--font-heading': 'var(--font-montserrat)', '--heading-transform': 'uppercase', '--heading-weight': '900' })
|
|
35
|
+
},
|
|
36
|
+
doom: {
|
|
37
|
+
name: 'DOOMSDAY',
|
|
38
|
+
variables: Object.assign(Object.assign({}, baseVariables), { '--background': '#020617', '--foreground': '#e2e8f0', '--card-bg': '#0f172a', '--card-border': '#1e293b', '--primary': '#10b981', '--primary-hover': '#059669', '--primary-foreground': '#020617', '--secondary': '#334155', '--secondary-foreground': '#f8fafc', '--accent': '#fbbf24', '--muted': '#64748b', '--muted-foreground': '#94a3b8', '--success': '#10b981', '--warning': '#fbbf24', '--error': '#ef4444', '--border-width': '2px', '--radius': '2px', '--shadow-hard': '5px 5px 0px 0px #000000', '--shadow-hover': '7px 7px 0px 0px #000000', '--font-heading': 'var(--font-montserrat)', '--heading-transform': 'uppercase', '--heading-weight': '700' })
|
|
39
|
+
},
|
|
40
|
+
neighbor: {
|
|
41
|
+
name: 'THE CAPTAIN',
|
|
42
|
+
variables: Object.assign(Object.assign({}, baseVariables), { '--background': '#F8FAFC', '--foreground': '#0F172A', '--card-bg': '#FFFFFF', '--card-border': '#002D72', '--primary': '#002D72', '--primary-hover': '#1E3A8A', '--primary-foreground': '#FFFFFF', '--secondary': '#B91C1C', '--secondary-foreground': '#FFFFFF', '--accent': '#C0C0C0', '--muted': '#64748B', '--muted-foreground': '#475569', '--success': '#15803D', '--warning': '#B45309', '--error': '#B91C1C', '--border-width': '3px', '--radius': '8px', '--shadow-hard': '6px 6px 0px 0px #0F172A', '--shadow-hover': '8px 8px 0px 0px #0F172A', '--font-heading': 'var(--font-montserrat)', '--heading-transform': 'uppercase', '--heading-weight': '900' })
|
|
43
|
+
},
|
|
44
|
+
vigilante: {
|
|
45
|
+
name: 'DARK KNIGHT',
|
|
46
|
+
variables: Object.assign(Object.assign({}, baseVariables), { '--background': '#0F1419', '--foreground': '#E8E9ED', '--card-bg': '#1A1F29', '--card-border': '#2D3748', '--primary': '#F7B731', '--primary-hover': '#F5A623', '--primary-foreground': '#0F1419', '--secondary': '#4A5568', '--secondary-foreground': '#E8E9ED', '--accent': '#3B82F6', '--muted': '#718096', '--muted-foreground': '#A0AEC0', '--success': '#48BB78', '--warning': '#ED8936', '--error': '#F56565', '--border-width': '2px', '--radius': '6px', '--shadow-hard': '5px 5px 0px 0px #000000', '--shadow-hover': '7px 7px 0px 0px #000000', '--font-heading': 'var(--font-montserrat)', '--heading-transform': 'uppercase', '--heading-weight': '700' })
|
|
47
|
+
}
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const utilityStyles: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
|
+
export const utilityStyles = css `
|
|
3
|
+
/* Typography Base Styles */
|
|
4
|
+
h1, h2, h3, h4, h5, h6 {
|
|
5
|
+
font-family: var(--font-heading, var(--font-montserrat)), sans-serif;
|
|
6
|
+
font-weight: var(--heading-weight, 700);
|
|
7
|
+
text-transform: var(--heading-transform, none);
|
|
8
|
+
line-height: 1.1;
|
|
9
|
+
letter-spacing: 0.02em;
|
|
10
|
+
margin-bottom: 0.5em;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
h1 { font-size: var(--text-5xl); }
|
|
14
|
+
h2 { font-size: var(--text-4xl); }
|
|
15
|
+
h3 { font-size: var(--text-3xl); }
|
|
16
|
+
h4 { font-size: var(--text-2xl); }
|
|
17
|
+
h5 { font-size: var(--text-xl); }
|
|
18
|
+
h6 { font-size: var(--text-lg); }
|
|
19
|
+
|
|
20
|
+
p {
|
|
21
|
+
margin-bottom: 1em;
|
|
22
|
+
line-height: 1.6;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Generated Utilities */
|
|
26
|
+
${(() => {
|
|
27
|
+
const utils = [];
|
|
28
|
+
// Typography Sizes
|
|
29
|
+
const textSizes = ['xs', 'sm', 'base', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl'];
|
|
30
|
+
textSizes.forEach(size => {
|
|
31
|
+
utils.push(`.text-${size} { font-size: var(--text-${size}); }`);
|
|
32
|
+
});
|
|
33
|
+
// Font Weights
|
|
34
|
+
const weights = ['thin', 'extralight', 'light', 'regular', 'medium', 'semibold', 'bold', 'extrabold', 'black'];
|
|
35
|
+
weights.forEach(weight => {
|
|
36
|
+
utils.push(`.font-${weight} { font-weight: var(--font-${weight}); }`);
|
|
37
|
+
});
|
|
38
|
+
// Colors (Text & Background)
|
|
39
|
+
const colors = ['primary', 'secondary', 'muted', 'success', 'warning', 'error', 'background', 'foreground'];
|
|
40
|
+
colors.forEach(color => {
|
|
41
|
+
// Text Colors
|
|
42
|
+
utils.push(`.text-${color} { color: var(--${color}); }`);
|
|
43
|
+
// Background Colors
|
|
44
|
+
utils.push(`.bg-${color} { background-color: var(--${color}); }`);
|
|
45
|
+
});
|
|
46
|
+
// Special Text Colors
|
|
47
|
+
utils.push('.text-muted { color: var(--muted-foreground); }');
|
|
48
|
+
// Z-Index
|
|
49
|
+
const zIndices = {
|
|
50
|
+
'0': 'var(--z-base)',
|
|
51
|
+
'10': 'var(--z-elevated)',
|
|
52
|
+
'40': 'var(--z-header)',
|
|
53
|
+
'50': 'var(--z-dropdown)',
|
|
54
|
+
'modal': 'var(--z-modal)',
|
|
55
|
+
'tooltip': 'var(--z-tooltip)'
|
|
56
|
+
};
|
|
57
|
+
Object.entries(zIndices).forEach(([key, value]) => {
|
|
58
|
+
utils.push(`.z-${key} { z-index: ${value}; }`);
|
|
59
|
+
});
|
|
60
|
+
// Opacity (0-100, step 10)
|
|
61
|
+
for (let i = 0; i <= 100; i += 10) {
|
|
62
|
+
utils.push(`.opacity-${i} { opacity: ${i / 100}; }`);
|
|
63
|
+
}
|
|
64
|
+
// Spacing (Margin, Padding, Width, Height)
|
|
65
|
+
const MAX_SPACING = 10;
|
|
66
|
+
for (let i = 0; i <= MAX_SPACING; i++) {
|
|
67
|
+
const value = i === 0 ? '0' : `${i * 0.25}rem`;
|
|
68
|
+
// Margin & Padding
|
|
69
|
+
utils.push(`
|
|
70
|
+
.m-${i} { margin: ${value}; }
|
|
71
|
+
.mt-${i} { margin-top: ${value}; }
|
|
72
|
+
.mb-${i} { margin-bottom: ${value}; }
|
|
73
|
+
.ml-${i} { margin-left: ${value}; }
|
|
74
|
+
.mr-${i} { margin-right: ${value}; }
|
|
75
|
+
.mx-${i} { margin-left: ${value}; margin-right: ${value}; }
|
|
76
|
+
.my-${i} { margin-top: ${value}; margin-bottom: ${value}; }
|
|
77
|
+
|
|
78
|
+
.p-${i} { padding: ${value}; }
|
|
79
|
+
.pt-${i} { padding-top: ${value}; }
|
|
80
|
+
.pb-${i} { padding-bottom: ${value}; }
|
|
81
|
+
.pl-${i} { padding-left: ${value}; }
|
|
82
|
+
.pr-${i} { padding-right: ${value}; }
|
|
83
|
+
.px-${i} { padding-left: ${value}; padding-right: ${value}; }
|
|
84
|
+
.py-${i} { padding-top: ${value}; padding-bottom: ${value}; }
|
|
85
|
+
`);
|
|
86
|
+
// Width & Height (Spacing Scale)
|
|
87
|
+
utils.push(`
|
|
88
|
+
.w-${i} { width: ${value}; }
|
|
89
|
+
.h-${i} { height: ${value}; }
|
|
90
|
+
`);
|
|
91
|
+
}
|
|
92
|
+
// Width Percentages
|
|
93
|
+
const widthPercentages = {
|
|
94
|
+
'1/4': '25%',
|
|
95
|
+
'2/4': '50%',
|
|
96
|
+
'1/2': '50%',
|
|
97
|
+
'3/4': '75%',
|
|
98
|
+
'full': '100%'
|
|
99
|
+
};
|
|
100
|
+
Object.entries(widthPercentages).forEach(([key, value]) => {
|
|
101
|
+
utils.push(`.w-${key} { width: ${value}; }`);
|
|
102
|
+
});
|
|
103
|
+
return utils.join('\n');
|
|
104
|
+
})()}
|
|
105
|
+
|
|
106
|
+
/* Manual Overrides & Extras */
|
|
107
|
+
|
|
108
|
+
/* Text Extras */
|
|
109
|
+
.italic { font-style: italic; }
|
|
110
|
+
.uppercase { text-transform: uppercase; }
|
|
111
|
+
.capitalize { text-transform: capitalize; }
|
|
112
|
+
.block { display: block; }
|
|
113
|
+
.tracking-wide { letter-spacing: 0.05em; }
|
|
114
|
+
.tracking-widest { letter-spacing: 0.1em; }
|
|
115
|
+
.leading-none { line-height: 1; }
|
|
116
|
+
.text-left { text-align: left; }
|
|
117
|
+
.text-center { text-align: center; }
|
|
118
|
+
.text-right { text-align: right; }
|
|
119
|
+
|
|
120
|
+
/* Flex */
|
|
121
|
+
.flex { display: flex; }
|
|
122
|
+
.flex-wrap { flex-wrap: wrap; }
|
|
123
|
+
.align-self-start { align-self: flex-start; }
|
|
124
|
+
.items-center { align-items: center; }
|
|
125
|
+
.justify-center { justify-content: center; }
|
|
126
|
+
.justify-between { justify-content: space-between; }
|
|
127
|
+
|
|
128
|
+
/* Grid */
|
|
129
|
+
.grid { display: grid; }
|
|
130
|
+
.col-span-full { grid-column: 1 / -1; }
|
|
131
|
+
|
|
132
|
+
/* Layout & Sizing Extras */
|
|
133
|
+
.w-fit { width: fit-content; }
|
|
134
|
+
.min-w-fit { min-width: fit-content;}
|
|
135
|
+
.w-32 { width: 8rem; } /* Kept for compatibility, though covered by w-32 generator if we went that high */
|
|
136
|
+
.h-full { height: 100%; }
|
|
137
|
+
.hidden { display: none; }
|
|
138
|
+
|
|
139
|
+
/* Positioning */
|
|
140
|
+
.relative { position: relative; }
|
|
141
|
+
.absolute { position: absolute; }
|
|
142
|
+
.fixed { position: fixed; }
|
|
143
|
+
.top-0 { top: 0; }
|
|
144
|
+
.top-4 { top: 1rem; }
|
|
145
|
+
.right-0 { right: 0; }
|
|
146
|
+
.right-4 { right: 1rem; }
|
|
147
|
+
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
|
|
148
|
+
|
|
149
|
+
/* Backgrounds & Borders Extras */
|
|
150
|
+
.bg-black-50 { background-color: rgba(0, 0, 0, 0.5); }
|
|
151
|
+
.bg-slate-50 { background-color: #f8fafc; }
|
|
152
|
+
.bg-transparent { background-color: transparent; }
|
|
153
|
+
.bg-amber-100 { background-color: #fef3c7; }
|
|
154
|
+
.bg-blue-100 { background-color: #dbeafe; }
|
|
155
|
+
|
|
156
|
+
.border-slate-100 { border-color: #f1f5f9; }
|
|
157
|
+
.border-b-2 { border-bottom-width: 2px; }
|
|
158
|
+
.border-t-2 { border-top-width: 2px; }
|
|
159
|
+
.border-2 { border-width: 2px; }
|
|
160
|
+
.border-brand { border-width: var(--border-width); }
|
|
161
|
+
.border-black { border-color: #000000; }
|
|
162
|
+
.rounded-lg { border-radius: var(--radius); }
|
|
163
|
+
|
|
164
|
+
/* Effects */
|
|
165
|
+
.backdrop-blur-sm { backdrop-filter: blur(4px); }
|
|
166
|
+
.shadow-hard { box-shadow: var(--shadow-hard); }
|
|
167
|
+
.shadow-hover { box-shadow: var(--shadow-hover); }
|
|
168
|
+
|
|
169
|
+
/* Overflow */
|
|
170
|
+
.overflow-hidden { overflow: hidden; }
|
|
171
|
+
|
|
172
|
+
/* Max Width */
|
|
173
|
+
.max-w-md { max-width: 500px; }
|
|
174
|
+
|
|
175
|
+
/* Transforms & Transitions */
|
|
176
|
+
.transition-all { transition: all 0.2s ease; }
|
|
177
|
+
.duration-200 { transition-duration: 200ms; }
|
|
178
|
+
.translate-x-\[-2px\] { transform: translateX(-2px); }
|
|
179
|
+
.translate-y-\[-2px\] { transform: translateY(-2px); }
|
|
180
|
+
.hover\:translate-y-\[-2px\]:hover { transform: translateY(-2px); }
|
|
181
|
+
.hover\:shadow-hover:hover { box-shadow: var(--shadow-hover); }
|
|
182
|
+
.cursor-pointer { cursor: pointer; }
|
|
183
|
+
.cursor-not-allowed { cursor: not-allowed; }
|
|
184
|
+
`;
|