@tydavidson/design-system 1.0.5 → 1.1.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@tydavidson/design-system",
3
- "version": "1.0.5",
4
- "description": "Float Design System with email components",
3
+ "version": "1.1.1",
4
+ "description": "Float Design System with email components and theme system",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -12,9 +12,14 @@
12
12
  "./email": {
13
13
  "require": "./dist/email/index.js",
14
14
  "types": "./dist/email/index.d.ts"
15
- }
15
+ },
16
+ "./themes": {
17
+ "require": "./dist/themes/index.js",
18
+ "types": "./dist/themes/index.d.ts"
19
+ },
20
+ "./themes/theme.css": "./src/themes/theme.css"
16
21
  },
17
- "files": ["dist"],
22
+ "files": ["dist", "src/themes/theme.css"],
18
23
  "keywords": ["design-system", "components", "email", "react"],
19
24
  "author": "Float Technologies",
20
25
  "license": "ISC",
@@ -0,0 +1,281 @@
1
+ /**
2
+ * Float Design System Theme CSS
3
+ *
4
+ * Import this file in your project to get access to all theme variables.
5
+ * Usage: import '@tydavidson/design-system/themes/theme.css'
6
+ */
7
+
8
+ /* Foundational Colors: Light Theme */
9
+ :root {
10
+ /* Gray Scale */
11
+ --color-gray-25: #fcfcfc;
12
+ --color-gray-50: #fafafa;
13
+ --color-gray-100: #f4f4f5;
14
+ --color-gray-200: #e4e4e7;
15
+ --color-gray-300: #d1d1d6;
16
+ --color-gray-400: #a0a0ab;
17
+ --color-gray-500: #70707b;
18
+ --color-gray-600: #51515c;
19
+ --color-gray-700: #3f3f46;
20
+ --color-gray-800: #26262b;
21
+ --color-gray-900: #1a1a1e;
22
+ --color-gray-950: #131316;
23
+
24
+ /* Brand Colors */
25
+ --color-brand-25: #f8faff;
26
+ --color-brand-50: #edf2ff;
27
+ --color-brand-100: #dee4fa;
28
+ --color-brand-200: #c6cdf4;
29
+ --color-brand-300: #a6afec;
30
+ --color-brand-400: #8f97e0;
31
+ --color-brand-500: #7479d6;
32
+ --color-brand-600: #6063bd;
33
+ --color-brand-700: #4a49a6;
34
+ --color-brand-800: #343688;
35
+ --color-brand-900: #232469;
36
+ --color-brand-950: #15154d;
37
+
38
+ /* Error Colors */
39
+ --color-error-25: #fffbfa;
40
+ --color-error-50: #ffefeb;
41
+ --color-error-100: #fcdad1;
42
+ --color-error-200: #f7b8a8;
43
+ --color-error-300: #ef927a;
44
+ --color-error-400: #e37559;
45
+ --color-error-500: #d3593a;
46
+ --color-error-600: #bd3e1e;
47
+ --color-error-700: #99371e;
48
+ --color-error-800: #7a2e1e;
49
+ --color-error-900: #5c2a1e;
50
+ --color-error-950: #3d1e1e;
51
+
52
+ /* Warning Colors */
53
+ --color-warning-25: #fffbeb;
54
+ --color-warning-50: #fef3c7;
55
+ --color-warning-100: #fde68a;
56
+ --color-warning-200: #fcd34d;
57
+ --color-warning-300: #fbbf24;
58
+ --color-warning-400: #f59e0b;
59
+ --color-warning-500: #d97706;
60
+ --color-warning-600: #b45309;
61
+ --color-warning-700: #92400e;
62
+ --color-warning-800: #78350f;
63
+ --color-warning-900: #451a03;
64
+ --color-warning-950: #2d1b0b;
65
+
66
+ /* Success Colors */
67
+ --color-success-25: #f0fdf4;
68
+ --color-success-50: #dcfce7;
69
+ --color-success-100: #bbf7d0;
70
+ --color-success-200: #86efac;
71
+ --color-success-300: #4ade80;
72
+ --color-success-400: #22c55e;
73
+ --color-success-500: #16a34a;
74
+ --color-success-600: #15803d;
75
+ --color-success-700: #166534;
76
+ --color-success-800: #14532d;
77
+ --color-success-900: #052e16;
78
+ --color-success-950: #0a1f0a;
79
+
80
+ /* Semantic Variables: Light Theme */
81
+ --text-primary: #1a1a1e;
82
+ --text-secondary: #51515c;
83
+ --text-tertiary: #70707b;
84
+ --text-disabled: #a0a0ab;
85
+
86
+ --text-brand-primary: #4a49a6;
87
+ --text-brand-secondary: #6063bd;
88
+ --text-brand-tertiary: #7479d6;
89
+
90
+ --text-error-primary: #bd3e1e;
91
+ --text-warning-primary: #b45309;
92
+ --text-success-primary: #15803d;
93
+
94
+ /* Border Colors */
95
+ --border-primary: #e4e4e7;
96
+ --border-secondary: #f4f4f5;
97
+ --border-tertiary: #fafafa;
98
+ --border-disabled: #f4f4f5;
99
+
100
+ --border-brand: #a6afec;
101
+ --border-brand-solid: #6063bd;
102
+
103
+ --border-error: #f7b8a8;
104
+ --border-error-solid: #bd3e1e;
105
+
106
+ --border-warning: #fcd34d;
107
+ --border-warning-solid: #b45309;
108
+
109
+ --border-success: #86efac;
110
+ --border-success-solid: #15803d;
111
+
112
+ /* Background Colors */
113
+ --bg-primary: #ffffff;
114
+ --bg-secondary: #fafafa;
115
+ --bg-tertiary: #f4f4f5;
116
+ --bg-quaternary: #e4e4e7;
117
+ --bg-disabled: #f4f4f5;
118
+ --bg-overlay: #fafafa;
119
+
120
+ --bg-brand-primary: #f8faff;
121
+ --bg-brand-secondary: #edf2ff;
122
+ --bg-brand-solid: #6063bd;
123
+
124
+ --bg-error-primary: #fffbfa;
125
+ --bg-error-secondary: #ffefeb;
126
+ --bg-error-solid: #bd3e1e;
127
+
128
+ --bg-warning-primary: #fffbeb;
129
+ --bg-warning-secondary: #fef3c7;
130
+ --bg-warning-solid: #b45309;
131
+
132
+ --bg-success-primary: #f0fdf4;
133
+ --bg-success-secondary: #dcfce7;
134
+ --bg-success-solid: #15803d;
135
+
136
+ /* Foreground Colors */
137
+ --fg-primary: #1a1a1e;
138
+ --fg-secondary: #51515c;
139
+ --fg-tertiary: #70707b;
140
+ --fg-quaternary: #a0a0ab;
141
+ --fg-quinary: #d1d1d6;
142
+ --fg-disabled: #a0a0ab;
143
+
144
+ --fg-brand-primary: #4a49a6;
145
+ --fg-brand-secondary: #6063bd;
146
+
147
+ --fg-error-primary: #bd3e1e;
148
+ --fg-error-secondary: #d3593a;
149
+
150
+ --fg-warning-primary: #b45309;
151
+ --fg-warning-secondary: #d97706;
152
+
153
+ --fg-success-primary: #15803d;
154
+ --fg-success-secondary: #16a34a;
155
+
156
+ --fg-white: #ffffff;
157
+
158
+ /* shadcn Required Variables */
159
+ --background: 0 0% 100%;
160
+ --foreground: 240 10% 3.9%;
161
+ --card: 0 0% 100%;
162
+ --card-foreground: 240 10% 3.9%;
163
+ --popover: 0 0% 100%;
164
+ --popover-foreground: 240 10% 3.9%;
165
+ --primary: 240 5.9% 10%;
166
+ --primary-foreground: 0 0% 98%;
167
+ --secondary: 240 4.8% 95.9%;
168
+ --secondary-foreground: 240 5.9% 10%;
169
+ --muted: 240 4.8% 95.9%;
170
+ --muted-foreground: 240 3.8% 46.1%;
171
+ --accent: 240 4.8% 95.9%;
172
+ --accent-foreground: 240 5.9% 10%;
173
+ --destructive: 0 84.2% 60.2%;
174
+ --destructive-foreground: 0 0% 98%;
175
+ --border: 240 5.9% 90%;
176
+ --input: 240 5.9% 90%;
177
+ --ring: 240 5.9% 10%;
178
+ --radius: 0.5rem;
179
+ }
180
+
181
+ /* Dark theme variables */
182
+ .dark {
183
+ /* Text Colors - Adjusted for dark mode */
184
+ --text-primary: rgb(255 255 255 / 1);
185
+ --text-secondary: rgb(255 255 255 / 0.73);
186
+ --text-tertiary: rgb(255 255 255 / 0.60);
187
+ --text-disabled: rgb(255 255 255 / 0.38);
188
+
189
+ --text-brand-primary: #edf2ff;
190
+ --text-brand-secondary: #c6cdf4;
191
+ --text-brand-tertiary: #a6afec;
192
+
193
+ --text-error-primary: #ef927a;
194
+ --text-warning-primary: #fde272;
195
+ --text-success-primary: #73e2b2;
196
+
197
+ /* Border Colors - Adjusted for dark mode */
198
+ --border-primary: #3f3f46;
199
+ --border-secondary: #26262b;
200
+ --border-tertiary: #26262b;
201
+ --border-disabled: #3f3f46;
202
+
203
+ --border-brand: #7479d6;
204
+ --border-brand-solid: #a6afec;
205
+
206
+ --border-error: #e37559;
207
+ --border-error-solid: #ef927a;
208
+
209
+ --border-warning: #fac515;
210
+ --border-warning-solid: #fde272;
211
+
212
+ --border-success: #3ccb8d;
213
+ --border-success-solid: #73e2b2;
214
+
215
+ /* Background Colors - Adjusted for dark mode */
216
+ --bg-primary: #131316;
217
+ --bg-secondary: #1a1a1e;
218
+ --bg-tertiary: #26262b;
219
+ --bg-quaternary: #3f3f46;
220
+ --bg-disabled: #26262b;
221
+ --bg-overlay: #26262b;
222
+
223
+ --bg-brand-primary: #1a1a1e;
224
+ --bg-brand-secondary: #131316;
225
+ --bg-brand-solid: #4a49a6;
226
+
227
+ --bg-error-primary: #d3593a;
228
+ --bg-error-secondary: #ef927a;
229
+ --bg-error-solid: #bd3e1e;
230
+
231
+ --bg-warning-primary: #eaaa08;
232
+ --bg-warning-secondary: #fde272;
233
+ --bg-warning-solid: #ca8504;
234
+
235
+ --bg-success-primary: #36b37d;
236
+ --bg-success-secondary: #73e2b2;
237
+ --bg-success-solid: #2c9266;
238
+
239
+ /* Foreground Colors - Adjusted for dark mode */
240
+ --fg-primary: #ffffff;
241
+ --fg-secondary: #d1d1d6;
242
+ --fg-tertiary: #a0a0ab;
243
+ --fg-quaternary: #70707b;
244
+ --fg-quinary: #a0a0ab;
245
+ --fg-disabled: #70707b;
246
+
247
+ --fg-brand-primary: #a6afec;
248
+ --fg-brand-secondary: #7479d6;
249
+
250
+ --fg-error-primary: #ef927a;
251
+ --fg-error-secondary: #e37559;
252
+
253
+ --fg-warning-primary: #fde272;
254
+ --fg-warning-secondary: #fac515;
255
+
256
+ --fg-success-primary: #73e2b2;
257
+ --fg-success-secondary: #3ccb8d;
258
+
259
+ --fg-white: #ffffff;
260
+
261
+ /* shadcn Required Variables: Dark Theme */
262
+ --background: 240 10% 3.9%;
263
+ --foreground: 0 0% 98%;
264
+ --card: 240 10% 3.9%;
265
+ --card-foreground: 0 0% 98%;
266
+ --popover: 240 10% 3.9%;
267
+ --popover-foreground: 0 0% 98%;
268
+ --primary: 0 0% 98%;
269
+ --primary-foreground: 240 5.9% 10%;
270
+ --secondary: 240 3.7% 15.9%;
271
+ --secondary-foreground: 0 0% 98%;
272
+ --muted: 240 3.7% 15.9%;
273
+ --muted-foreground: 240 5% 64.9%;
274
+ --accent: 240 3.7% 15.9%;
275
+ --accent-foreground: 0 0% 98%;
276
+ --destructive: 0 62.8% 30.6%;
277
+ --destructive-foreground: 0 0% 98%;
278
+ --border: 240 3.7% 15.9%;
279
+ --input: 240 3.7% 15.9%;
280
+ --ring: 240 4.9% 83.9%;
281
+ }