@indico-data/design-system 3.2.1 → 3.4.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.
@@ -1,19 +1,147 @@
1
+ // Type definitions for color palettes
2
+ interface ColorPalette {
3
+ base: string;
4
+ 50: string;
5
+ 100: string;
6
+ 150: string;
7
+ 200: string;
8
+ 250: string;
9
+ 300: string;
10
+ 400: string;
11
+ 450: string;
12
+ 500: string;
13
+ 550?: string; // Optional since not all colors have this shade
14
+ 600: string;
15
+ 700: string;
16
+ 800: string;
17
+ 900: string;
18
+ }
19
+
20
+ interface UtilityColors {
21
+ success: string;
22
+ info: string;
23
+ neutral: string;
24
+ warning: string;
25
+ error: string;
26
+ brand: string;
27
+ }
28
+
29
+ interface ThemeColors {
30
+ [key: string]: ColorPalette | UtilityColors;
31
+ utilityDark: UtilityColors;
32
+ utilityLight: UtilityColors;
33
+ }
34
+
1
35
  export const colorList = [
2
36
  'primary',
3
37
  'secondary',
4
38
  'tertiary',
39
+ 'blue',
5
40
  'gray',
6
- 'red',
7
- 'orange',
8
- 'yellow',
9
41
  'green',
10
- 'purple',
42
+ 'orange',
11
43
  'pink',
44
+ 'purple',
45
+ 'red',
12
46
  'teal',
47
+ 'yellow',
48
+ ] as const;
49
+
50
+ export const utilityColorList = [
51
+ 'success',
52
+ 'info',
53
+ 'neutral',
54
+ 'warning',
55
+ 'error',
13
56
  'brand',
14
- ];
15
- export const utilityColorList = ['success', 'info', 'neutral', 'warning', 'error', 'brand'];
16
- export const lightThemeColors = {
57
+ ] as const;
58
+
59
+ export const themeColors: ThemeColors = {
60
+ blue: {
61
+ base: '#2989ff',
62
+ 50: '#f6fafd',
63
+ 100: '#eef4fc',
64
+ 150: '#e5effa',
65
+ 200: '#d8e9fd',
66
+ 250: '#bbd8fb',
67
+ 300: '#9ec7fa',
68
+ 400: '#2989ff',
69
+ 450: '#0070f5',
70
+ 500: '#005ccc',
71
+ 550: '#0054b8',
72
+ 600: '#004599',
73
+ 700: '#06356f',
74
+ 800: '#082345',
75
+ 900: '#061323',
76
+ },
77
+ gray: {
78
+ base: '#808080',
79
+ 50: '#ffffff',
80
+ 100: '#f7f7f7',
81
+ 150: '#f2f2f2',
82
+ 200: '#e6e6e6',
83
+ 250: '#d9d9d9',
84
+ 300: '#cccccc',
85
+ 400: '#b2b2b2',
86
+ 450: '#949494',
87
+ 500: '#808080',
88
+ 550: '#666666',
89
+ 600: '#606060',
90
+ 700: '#4d4d4d',
91
+ 800: '#333333',
92
+ 900: '#000000',
93
+ },
94
+ green: {
95
+ base: '#14b869',
96
+ 50: '#f7fdfa',
97
+ 100: '#effbf5',
98
+ 150: '#e7f9f0',
99
+ 200: '#def7eb',
100
+ 250: '#c2f4dc',
101
+ 300: '#a8f0cd',
102
+ 400: '#3eea97',
103
+ 450: '#18dc7e',
104
+ 500: '#14b869',
105
+ 550: '#129e45',
106
+ 600: '#17824e',
107
+ 700: '#175e3c',
108
+ 800: '#173627',
109
+ 900: '#0e1b15',
110
+ },
111
+ orange: {
112
+ base: '#994733',
113
+ 50: '#fffbfa',
114
+ 100: '#faf2f0',
115
+ 150: '#f7ebe8',
116
+ 200: '#f7e3de',
117
+ 250: '#f4ccc2',
118
+ 300: '#f5b4a3',
119
+ 400: '#ea603e',
120
+ 450: '#c44e31',
121
+ 500: '#994733',
122
+ 550: '#863f2a',
123
+ 600: '#6b3a2e',
124
+ 700: '#522d23',
125
+ 800: '#321f1b',
126
+ 900: '#1b110e',
127
+ },
128
+ pink: {
129
+ base: '#a3292d',
130
+ 50: '#fbf8f9',
131
+ 100: '#f8f2f4',
132
+ 150: '#f4ebee',
133
+ 200: '#f1e4e9',
134
+ 250: '#eacdd7',
135
+ 300: '#ebadc3',
136
+ 400: '#e6417b',
137
+ 450: '#c3285e',
138
+ 500: '#a32954',
139
+ 550: '#922149',
140
+ 600: '#6b2e43',
141
+ 700: '#4c2935',
142
+ 800: '#321b23',
143
+ 900: '#1b0e13',
144
+ },
17
145
  primary: {
18
146
  base: '#50647c',
19
147
  50: '#f9fafb',
@@ -30,53 +158,22 @@ export const lightThemeColors = {
30
158
  800: '#111b28',
31
159
  900: '#0c141d',
32
160
  },
33
- secondary: {
34
- base: '#1474b8',
35
- 50: '#f8fafc',
36
- 100: '#f1f5f9',
37
- 150: '#e8f1f7',
38
- 200: '#deedf7',
39
- 250: '#c6dff1',
40
- 300: '#add1eb',
41
- 400: '#3ea2ea',
42
- 450: '#188bdc',
43
- 500: '#1474b8',
44
- 600: '#0f578a',
45
- 700: '#1d4058',
46
- 800: '#132939',
47
- 900: '#0e151b',
48
- },
49
- tertiary: {
50
- base: '#6a7798',
51
- 50: '#f8fafb',
52
- 100: '#f4f7f9',
53
- 150: '#ebf0f4',
54
- 200: '#dae3eb',
55
- 250: '#c3d2de',
56
- 300: '#aabbcf',
57
- 400: '#94a5c0',
58
- 450: '#8593b3',
59
- 500: '#6a7798',
60
- 600: '#58637b',
61
- 700: '#4b5364',
62
- 800: '#2c303a',
63
- 900: '#111317',
64
- },
65
- gray: {
66
- base: '#b2b2b2',
67
- 50: '#ffffff',
68
- 100: '#fafafa',
69
- 150: '#f5f5f5',
70
- 200: '#f0f0f0',
71
- 250: '#ebebeb',
72
- 300: '#e6e6e6',
73
- 400: '#dedede',
74
- 450: '#c7c7c7',
75
- 500: '#b2b2b2',
76
- 600: '#8f8f8f',
77
- 700: '#5e5959',
78
- 800: '#272525',
79
- 900: '#000000',
161
+ purple: {
162
+ base: '#5c29a3',
163
+ 50: '#f9f6fc',
164
+ 100: '#f4f0fa',
165
+ 150: '#eee8f7',
166
+ 200: '#e9def7',
167
+ 250: '#d8c6f1',
168
+ 300: '#c7adeb',
169
+ 400: '#8849df',
170
+ 450: '#6e31c4',
171
+ 500: '#5c29a3',
172
+ 550: '#4e218f',
173
+ 600: '#451f7a',
174
+ 700: '#361d58',
175
+ 800: '#241736',
176
+ 900: '#130e1b',
80
177
  },
81
178
  red: {
82
179
  base: '#a3292d',
@@ -89,74 +186,28 @@ export const lightThemeColors = {
89
186
  400: '#ea3e44',
90
187
  450: '#d0252a',
91
188
  500: '#a3292d',
189
+ 550: '#8f2428',
92
190
  600: '#732629',
93
191
  700: '#522325',
94
192
  800: '#321b1c',
95
193
  900: '#181011',
96
194
  },
97
- pink: {
98
- base: '#a3292d',
99
- 50: '#fbf8f9',
100
- 100: '#f8f2f4',
101
- 150: '#f4ebee',
102
- 200: '#f1e4e9',
103
- 250: '#eacdd7',
104
- 300: '#ebadc3',
105
- 400: '#e6417b',
106
- 450: '#c3285e',
107
- 500: '#a32954',
108
- 600: '#6b2e43',
109
- 700: '#4c2935',
110
- 800: '#321b23',
111
- 900: '#1b0e13',
112
- },
113
- orange: {
114
- base: '#994b33',
115
- 50: '#fcf9f7',
116
- 100: '#faf2f0',
117
- 150: '#f7ece8',
118
- 200: '#f7e4de',
119
- 250: '#f4cec2',
120
- 300: '#f5b6a3',
121
- 400: '#ea673e',
122
- 450: '#c45331',
123
- 500: '#994b33',
124
- 600: '#6b3c2e',
125
- 700: '#522e23',
126
- 800: '#32201b',
127
- 900: '#1b110e',
128
- },
129
- yellow: {
130
- base: '#ad791f',
131
- 50: '#fdfbf7',
132
- 100: '#fcf7ee',
133
- 150: '#faf3e5',
134
- 200: '#f9eedc',
135
- 250: '#f4e2c2',
136
- 300: '#f0d6a8',
137
- 400: '#eaab3e',
138
- 450: '#dc9518',
139
- 500: '#ad791f',
140
- 600: '#825b17',
141
- 700: '#58421d',
142
- 800: '#32291b',
143
- 900: '#1b160e',
144
- },
145
- green: {
146
- base: '#14b869',
147
- 50: '#f7fdfa',
148
- 100: '#effbf5',
149
- 150: '#e7f9f0',
150
- 200: '#def7eb',
151
- 250: '#c2f4dc',
152
- 300: '#a8f0cd',
153
- 400: '#3eea97',
154
- 450: '#18dc7e',
155
- 500: '#14b869',
156
- 600: '#17824e',
157
- 700: '#175e3c',
158
- 800: '#173627',
159
- 900: '#0e1b15',
195
+ secondary: {
196
+ base: '#1474b8',
197
+ 50: '#f8fafc',
198
+ 100: '#f1f5f9',
199
+ 150: '#e8f1f7',
200
+ 200: '#deedf7',
201
+ 250: '#c6dff1',
202
+ 300: '#add1eb',
203
+ 400: '#3ea2ea',
204
+ 450: '#188bdc',
205
+ 500: '#1474b8',
206
+ 550: '#1268a5',
207
+ 600: '#0f578a',
208
+ 700: '#1d4058',
209
+ 800: '#132939',
210
+ 900: '#0e151b',
160
211
  },
161
212
  teal: {
162
213
  base: '#29a3a3',
@@ -166,250 +217,50 @@ export const lightThemeColors = {
166
217
  200: '#dcf9f9',
167
218
  250: '#bff8f8',
168
219
  300: '#a3f5f5',
169
- 400: '#3eeaea',
220
+ 400: '#4edada',
170
221
  450: '#25d0d0',
171
222
  500: '#29a3a3',
172
- 600: '#267373',
223
+ 550: '#267373',
224
+ 600: '#1c5656',
173
225
  700: '#235252',
174
226
  800: '#1b3232',
175
227
  900: '#101818',
176
228
  },
177
- brand: {
178
- base: '#2960a3',
179
- 50: '#f6fafd',
180
- 100: '#eef4fc',
181
- 150: '#dce9f9',
182
- 200: '#eef4fc',
183
- 250: '#accdf6',
184
- 300: '#8cbaf2',
185
- 400: '#3e8bea',
186
- 450: '#0070f5',
187
- 500: '#2960a3',
188
- 600: '#264973',
189
- 700: '#233852',
190
- 800: '#1b2532',
191
- 900: '#101418',
192
- },
193
- purple: {
194
- base: '#5c29a3',
195
- 50: '#f9f6fc',
196
- 100: '#f4f0fa',
197
- 150: '#eee8f7',
198
- 200: '#e9def7',
199
- 250: '#d8c6f1',
200
- 300: '#c7adeb',
201
- 400: '#8849df',
202
- 450: '#6e31c4',
203
- 500: '#5c29a3',
204
- 600: '#451f7a',
205
- 700: '#361d58',
206
- 800: '#241736',
207
- 900: '#130e1b',
208
- },
209
- utility: {
210
- success: '#14b869',
211
- info: '#1474b8',
212
- neutral: '#b2b2b2',
213
- warning: '#ad791f',
214
- error: '#a3292d',
215
- brand: '#2960a3',
216
- },
217
- } as Record<string, any>;
218
-
219
- export const darkThemeColors = {
220
- primary: {
221
- base: '#394c6b',
222
- 50: '#bcc7da',
223
- 100: '#7989b5',
224
- 150: '#8593b3',
225
- 200: '#7488a4',
226
- 250: '#5c708c',
227
- 300: '#4d5667',
228
- 400: '#334154',
229
- 450: '#233346',
230
- 500: '#394c6b',
231
- 600: '#182432',
232
- 700: '#101a26',
233
- 800: '#141b24',
234
- 900: '#0c141d',
235
- },
236
- secondary: {
237
- base: '#198bdc',
238
- 50: '#bddffa',
239
- 100: '#83c5f6',
240
- 150: '#68afee',
241
- 200: '#66a2d5',
242
- 250: '#36a1ea',
243
- 300: '#2f6a98',
244
- 400: '#0c6ebd',
245
- 450: '#0070f5',
246
- 500: '#198bdc',
247
- 600: '#0b5899',
248
- 700: '#002c4e',
249
- 800: '#112341',
250
- 900: '#0e151b',
251
- },
252
229
  tertiary: {
253
- base: '#40464e',
254
- 50: '#dae3eb',
255
- 100: '#c2d4df',
256
- 150: '#a3b2c9',
257
- 200: '#8593b3',
258
- 250: '#656f82',
259
- 300: '#4d5667',
260
- 400: '#334154',
261
- 450: '#3b415b',
262
- 500: '#40464e',
263
- 600: '#344152',
264
- 700: '#2d3444',
265
- 800: '#283243',
230
+ base: '#6a7798',
231
+ 50: '#f8fafb',
232
+ 100: '#f4f7f9',
233
+ 150: '#ebf0f4',
234
+ 200: '#dae3eb',
235
+ 250: '#c3d2de',
236
+ 300: '#aabbcf',
237
+ 400: '#94a5c0',
238
+ 450: '#8593b3',
239
+ 500: '#6a7798',
240
+ 550: '#5f6a85',
241
+ 600: '#58637b',
242
+ 700: '#4b5364',
243
+ 800: '#2c303a',
266
244
  900: '#111317',
267
245
  },
268
- gray: {
269
- base: '#525252',
270
- 50: '#f6f6f6',
271
- 100: '#efefef',
272
- 150: '#dcdcdc',
273
- 200: '#bdbdbd',
274
- 250: '#989898',
275
- 300: '#737373',
276
- 400: '#525252',
277
- 450: '#404040',
278
- 500: '#525252',
279
- 600: '#262626',
280
- 700: '#171717',
281
- 800: '#0a0a0a',
282
- 900: '#000000',
283
- },
284
- red: {
285
- base: '#ce6068',
286
- 50: '#fcf5f4',
287
- 100: '#fae9e9',
288
- 150: '#f4d7d8',
289
- 200: '#ebb6b8',
290
- 250: '#f39bb9',
291
- 300: '#ef76a0',
292
- 400: '#df8d91',
293
- 450: '#b94553',
294
- 500: '#ce6068',
295
- 600: '#9b3544',
296
- 700: '#822f3e',
297
- 800: '#702b39',
298
- 900: '#510e2b',
299
- },
300
- pink: {
301
- base: '#ce6068',
302
- 50: '#fcf5f4',
303
- 100: '#fae9e9',
304
- 150: '#f4d7d8',
305
- 200: '#ebb6b8',
306
- 250: '#f39bb9',
307
- 300: '#ef76a0',
308
- 400: '#df8d91',
309
- 450: '#b94553',
310
- 500: '#ce6068',
311
- 600: '#9b3544',
312
- 700: '#822f3e',
313
- 800: '#702b39',
314
- 900: '#510e2b',
315
- },
316
- orange: {
317
- base: '#f46325',
318
- 50: '#fff5ed',
319
- 100: '#fee9d6',
320
- 150: '#fcceac',
321
- 200: '#faac77',
322
- 250: '#f67e41',
323
- 300: '#c88e2a',
324
- 400: '#ac6e22',
325
- 450: '#80670c',
326
- 500: '#f46325',
327
- 600: '#e54311',
328
- 700: '#be3010',
329
- 800: '#972815',
330
- 900: '#792315',
331
- },
332
246
  yellow: {
333
- base: '#f29c22',
334
- 50: '#fbf7eb',
335
- 100: '#f5edcc',
336
- 150: '#ecd99c',
337
- 200: '#deb650',
338
- 250: '#d7a438',
339
- 300: '#c88e2a',
340
- 400: '#ac6e22',
341
- 450: '#80670c',
342
- 500: '#f29c22',
343
- 600: '#463703',
344
- 700: '#312602',
345
- 800: '#1b160e',
346
- 900: '#0e151b',
347
- },
348
- green: {
349
- base: '#15b77d',
350
- 50: '#a9f1ce',
351
- 100: '#71e4b3',
352
- 150: '#14b8a6',
353
- 200: '#03aaaa',
354
- 250: '#38cf94',
355
- 300: '#099263',
356
- 400: '#087950',
357
- 450: '#085d43',
358
- 500: '#15b77d',
359
- 600: '#084c38',
360
- 700: '#032b20',
361
- 800: '#173627',
362
- 900: '#0e1b15',
363
- },
364
- teal: {
365
- base: '#29a3a3',
366
- 50: '#a9f1ce',
367
- 100: '#71e4b3',
368
- 150: '#14b8a6',
369
- 200: '#03aaaa',
370
- 250: '#38cf94',
371
- 300: '#099263',
372
- 400: '#087950',
373
- 450: '#085d43',
374
- 500: '#29a3a3',
375
- 600: '#084c38',
376
- 700: '#032b20',
377
- 800: '#1b3232',
378
- 900: '#101818',
379
- },
380
- brand: {
381
- base: '#2960a3',
382
- 50: '#bddffa',
383
- 100: '#83c5f6',
384
- 150: '#68afee',
385
- 200: '#66a2d5',
386
- 250: '#36a1ea',
387
- 300: '#2f6a98',
388
- 400: '#0c6ebd',
389
- 450: '#0070f5',
390
- 500: '#2960a3',
391
- 600: '#0b5899',
392
- 700: '#002c4e',
393
- 800: '#112341',
394
- 900: '#101418',
395
- },
396
- purple: {
397
- base: '#9776d3',
398
- 50: '#f7f6fc',
399
- 100: '#f1edfa',
400
- 150: '#e4dff5',
401
- 200: '#cfc4ee',
402
- 250: '#b6a3e2',
403
- 300: '#8b60c7',
404
- 400: '#7a4eb3',
405
- 450: '#664196',
406
- 500: '#9776d3',
407
- 600: '#55377b',
408
- 700: '#291a40',
409
- 800: '#241736',
410
- 900: '#130e1b',
247
+ base: '#ad871f',
248
+ 50: '#fdfbf7',
249
+ 100: '#fcf8ee',
250
+ 150: '#faf5e5',
251
+ 200: '#f9f1dc',
252
+ 250: '#f4e7c2',
253
+ 300: '#f0dda8',
254
+ 400: '#eabc3e',
255
+ 450: '#dca818',
256
+ 500: '#ad871f',
257
+ 550: '#976f00',
258
+ 600: '#826517',
259
+ 700: '#58481d',
260
+ 800: '#322c1b',
261
+ 900: '#1b160e',
411
262
  },
412
- utility: {
263
+ utilityDark: {
413
264
  success: '#15b77d',
414
265
  info: '#198bdc',
415
266
  neutral: '#dcdcdc',
@@ -417,4 +268,13 @@ export const darkThemeColors = {
417
268
  error: '#ce6068',
418
269
  brand: '#0070f5',
419
270
  },
420
- } as Record<string, any>;
271
+ // light mode utility colors
272
+ utilityLight: {
273
+ success: '#14b869',
274
+ info: '#1474b8',
275
+ neutral: '#b2b2b2',
276
+ warning: '#ad791f',
277
+ error: '#a3292d',
278
+ brand: '#2960a3',
279
+ },
280
+ };
@@ -243,7 +243,17 @@ export const utilityClassesData: UtilityClassData[] = [
243
243
  { className: 'icon-xl', css: 'font-size: var(--pf-icon-size-xl);', category: 'Icon' },
244
244
 
245
245
  // Drop Shadows
246
- { className: 'dropshadow', css: 'box-shadow: var(--pf-dropshadow);', category: 'Effect' },
246
+ { className: 'shadow-surface', css: 'box-shadow: var(--pf-shadow-surface);', category: 'Effect' },
247
+ {
248
+ className: 'shadow-elevated',
249
+ css: 'box-shadow: var(--pf-shadow-elevated);',
250
+ category: 'Effect',
251
+ },
252
+ {
253
+ className: 'shadow-floating',
254
+ css: 'box-shadow: var(--pf-shadow-floating);',
255
+ category: 'Effect',
256
+ },
247
257
 
248
258
  // Cursor Utilities
249
259
  { className: 'cursor--pointer', css: 'cursor: pointer;', category: 'Cursor' },
@@ -1,18 +0,0 @@
1
- // Common Variables
2
- :root {
3
- --pf-floatui-border-radius: var(--pf-rounded);
4
- --pf-floatui-box-shadow: var(--pf-dropshadow);
5
- --pf-floatui-border: none;
6
- --pf-floatui-border-color: var(--pf-border-color-secondary);
7
- }
8
-
9
- // Light Theme Specific Variables
10
- :root [data-theme='light'] {
11
- --pf-floatui-background-color: var(--pf-background-color-secondary);
12
- }
13
-
14
- // Dark Theme Specific Variables
15
- :root [data-theme='dark'],
16
- :root {
17
- --pf-floatui-background-color: var(--pf-background-color-secondary);
18
- }
@@ -1,20 +0,0 @@
1
- :root {
2
- --pf-menu-rounded: var(--pf-rounded);
3
- }
4
-
5
- // Light Theme Specific Variables
6
- :root [data-theme='light'] {
7
- --pf-menu-item-hover-color: var(--pf-background-color-highlight);
8
- --pf-menu-item-background-color: var(--pf-background-color-secondary);
9
- --pf-menu-item-color: var(--pf-font-color);
10
- --pf-menu-item-focus-color: var(--pf-background-color-accent);
11
- }
12
-
13
- // Dark Theme Specific Variables
14
- :root [data-theme='dark'],
15
- :root {
16
- --pf-menu-item-hover-color: var(--pf-background-color-highlight);
17
- --pf-menu-item-background-color: var(--pf-background-color-secondary);
18
- --pf-menu-item-color: var(--pf-font-color);
19
- --pf-menu-item-focus-color: var(--pf-background-color-accent);
20
- }