@rakeyshgidwani/roger-ui-bank-theme-stan-design 0.1.8 → 0.2.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,586 +0,0 @@
1
- import { MultiThemeConfig } from '../types';
2
-
3
- /**
4
- * Default Base Theme Configuration
5
- * This serves as the foundation for all other themes.
6
- * Based on Stan Design theme - the primary brand theme.
7
- * Any undefined values in specific themes will fall back to these defaults.
8
- */
9
- export const defaultTheme: MultiThemeConfig = {
10
- fonts: {
11
- primary: {
12
- family: 'Clash Display',
13
- fallbacks: ['ui-sans-serif', 'system-ui', '-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', '"Noto Sans"', 'sans-serif'],
14
- weights: [300, 400, 500, 600, 700],
15
- display: 'swap',
16
- source: {
17
- type: 'custom',
18
- files: {
19
- woff2: '/fonts/clash-display/ClashDisplay-Variable.woff2'
20
- }
21
- },
22
- sizes: {
23
- xs: '0.75rem',
24
- sm: '0.875rem',
25
- md: '1rem',
26
- lg: '1.125rem',
27
- xl: '1.25rem',
28
- '2xl': '1.5rem',
29
- '3xl': '1.875rem',
30
- '4xl': '2.25rem',
31
- '5xl': '3rem',
32
- '6xl': '3.75rem'
33
- },
34
- lineHeights: {
35
- tight: '1.25',
36
- normal: '1.5',
37
- relaxed: '1.75',
38
- loose: '2'
39
- },
40
- letterSpacing: {
41
- tight: '-0.025em',
42
- normal: '0em',
43
- wide: '0.025em',
44
- wider: '0.05em',
45
- widest: '0.1em'
46
- }
47
- },
48
- secondary: {
49
- family: 'Clash Display',
50
- fallbacks: ['ui-sans-serif', 'system-ui', '-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', '"Noto Sans"', 'sans-serif'],
51
- weights: [300, 400, 500, 600, 700],
52
- display: 'swap',
53
- source: {
54
- type: 'custom',
55
- files: {
56
- woff2: '/fonts/clash-display/ClashDisplay-Variable.woff2'
57
- }
58
- },
59
- sizes: {
60
- xs: '0.75rem',
61
- sm: '0.875rem',
62
- md: '1rem',
63
- lg: '1.125rem',
64
- xl: '1.25rem',
65
- '2xl': '1.5rem',
66
- '3xl': '1.875rem',
67
- '4xl': '2.25rem',
68
- '5xl': '3rem',
69
- '6xl': '3.75rem'
70
- },
71
- lineHeights: {
72
- tight: '1.25',
73
- normal: '1.5',
74
- relaxed: '1.75',
75
- loose: '2'
76
- },
77
- letterSpacing: {
78
- tight: '-0.025em',
79
- normal: '0em',
80
- wide: '0.025em',
81
- wider: '0.05em',
82
- widest: '0.1em'
83
- }
84
- },
85
- display: {
86
- family: 'Clash Display, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',
87
- weights: [400, 500, 600, 700],
88
- sizes: {
89
- xs: '1.5rem',
90
- sm: '1.875rem',
91
- md: '2.25rem',
92
- lg: '3rem',
93
- xl: '3.75rem',
94
- '2xl': '4.5rem',
95
- '3xl': '6rem',
96
- '4xl': '7.5rem',
97
- '5xl': '9rem',
98
- '6xl': '12rem'
99
- },
100
- lineHeights: {
101
- tight: '1.1',
102
- normal: '1.2',
103
- relaxed: '1.3',
104
- loose: '1.4'
105
- },
106
- letterSpacing: {
107
- tight: '-0.02em',
108
- normal: '-0.01em',
109
- wide: '0em',
110
- wider: '0.01em',
111
- widest: '0.02em'
112
- }
113
- },
114
- body: {
115
- family: 'Clash Display, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',
116
- weights: [300, 400, 500],
117
- sizes: {
118
- xs: '0.75rem',
119
- sm: '0.875rem',
120
- md: '1rem',
121
- lg: '1.125rem',
122
- xl: '1.25rem',
123
- '2xl': '1.5rem',
124
- '3xl': '1.875rem',
125
- '4xl': '2.25rem',
126
- '5xl': '3rem',
127
- '6xl': '3.75rem'
128
- },
129
- lineHeights: {
130
- tight: '1.4',
131
- normal: '1.6',
132
- relaxed: '1.8',
133
- loose: '2'
134
- },
135
- letterSpacing: {
136
- tight: '-0.01em',
137
- normal: '0em',
138
- wide: '0.01em',
139
- wider: '0.02em',
140
- widest: '0.05em'
141
- }
142
- },
143
- mono: {
144
- family: 'ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace',
145
- weights: [400, 500, 600],
146
- sizes: {
147
- xs: '0.75rem',
148
- sm: '0.875rem',
149
- md: '1rem',
150
- lg: '1.125rem',
151
- xl: '1.25rem',
152
- '2xl': '1.5rem',
153
- '3xl': '1.875rem',
154
- '4xl': '2.25rem',
155
- '5xl': '3rem',
156
- '6xl': '3.75rem'
157
- },
158
- lineHeights: {
159
- tight: '1.25',
160
- normal: '1.5',
161
- relaxed: '1.75',
162
- loose: '2'
163
- },
164
- letterSpacing: {
165
- tight: '-0.025em',
166
- normal: '0em',
167
- wide: '0.025em',
168
- wider: '0.05em',
169
- widest: '0.1em'
170
- }
171
- }
172
- },
173
- colors: {
174
- primary: {
175
- 50: '#eff6ff',
176
- 100: '#dbeafe',
177
- 200: '#bfdbfe',
178
- 300: '#93c5fd',
179
- 400: '#60a5fa',
180
- 500: '#3b82f6', // This is the main primary color
181
- 600: '#2563eb',
182
- 700: '#1d4ed8',
183
- 800: '#1e40af',
184
- 900: '#1e3a8a',
185
- // RGB versions for rgba() usage
186
- '500-rgb': '59, 130, 246',
187
- '600-rgb': '37, 99, 235',
188
- '700-rgb': '29, 78, 216'
189
- },
190
- secondary: {
191
- 50: '#f8fafc',
192
- 100: '#f1f5f9',
193
- 200: '#e2e8f0',
194
- 300: '#cbd5e1',
195
- 400: '#94a3b8',
196
- 500: '#64748b',
197
- 600: '#475569',
198
- 700: '#334155',
199
- 800: '#1e293b',
200
- 900: '#0f172a'
201
- },
202
- semantic: {
203
- success: '#10b981',
204
- warning: '#f59e0b',
205
- error: '#ef4444',
206
- errorDark: '#dc2626', // Darker red for destructive hover states
207
- info: '#3b82f6',
208
- // RGB versions for rgba() usage
209
- successRgb: '16, 185, 129',
210
- warningRgb: '245, 158, 11',
211
- errorRgb: '239, 68, 68',
212
- errorDarkRgb: '220, 38, 38',
213
- infoRgb: '59, 130, 246',
214
- // Additional RGB versions referenced in CSS
215
- 'success-rgb': '16, 185, 129',
216
- 'warning-rgb': '245, 158, 11',
217
- 'error-rgb': '239, 68, 68',
218
- 'error-dark-rgb': '220, 38, 38',
219
- 'info-rgb': '59, 130, 246'
220
- },
221
- neutral: {
222
- 50: '#fafafa',
223
- 100: '#f5f5f5',
224
- 200: '#e5e5e5',
225
- 300: '#d4d4d4',
226
- 400: '#a3a3a3',
227
- 500: '#737373',
228
- 600: '#525252',
229
- 700: '#404040',
230
- 800: '#262626',
231
- 900: '#171717'
232
- },
233
- surface: {
234
- background: '#ffffff',
235
- surface: '#f8fafc',
236
- border: '#e2e8f0',
237
- divider: '#cbd5e1'
238
- },
239
- text: {
240
- primary: '#0f172a',
241
- secondary: '#475569',
242
- muted: '#64748b',
243
- inverse: '#ffffff',
244
- onPrimary: '#ffffff',
245
- onSecondary: '#ffffff',
246
- onSurface: '#0f172a'
247
- },
248
- interactive: {
249
- hover: '#f1f5f9',
250
- active: '#e2e8f0',
251
- focus: '#3b82f6',
252
- disabled: '#cbd5e1'
253
- },
254
- // Additional colors referenced in CSS
255
- accent: '#6366f1',
256
- 'bg-primary': '#ffffff',
257
- 'bg-secondary': '#f8fafc',
258
- 'surface-bg': '#f8fafc',
259
- // Additional missing CSS variables
260
- 'primary-hover': '#2563eb',
261
- 'primary-active': '#1d4ed8',
262
- 'accent-rgb': '99, 102, 241',
263
- 'border': '#e2e8f0',
264
- // Border semantic variables
265
- 'border-transparent': 'transparent',
266
- // Text colors referenced in CSS
267
- 'text-primary': '#0f172a',
268
- 'text-secondary': '#475569'
269
- },
270
- navigation: {
271
- layout: 'horizontal',
272
- style: 'enhanced',
273
- behavior: 'static',
274
- responsive: 'mobile-first',
275
- animations: {
276
- duration: {
277
- fast: '0.15s',
278
- normal: '0.2s',
279
- slow: '0.3s',
280
- instant: '0s'
281
- },
282
- easing: {
283
- linear: 'linear',
284
- ease: 'ease',
285
- easeIn: 'ease-in',
286
- easeOut: 'ease-out',
287
- easeInOut: 'ease-in-out',
288
- bounce: 'cubic-bezier(0.68, -0.55, 0.265, 1.55)',
289
- elastic: 'cubic-bezier(0.175, 0.885, 0.32, 1.275)'
290
- },
291
- stagger: {
292
- enabled: true,
293
- delay: '0.05s',
294
- direction: 'forward'
295
- },
296
- transitions: {
297
- enter: '0.2s ease-out',
298
- exit: '0.15s ease-in',
299
- move: '0.2s ease',
300
- resize: '0.1s ease'
301
- }
302
- },
303
- spacing: {
304
- container: '1rem',
305
- item: '0.5rem',
306
- group: '1rem',
307
- divider: '0.25rem',
308
- icon: '0.5rem',
309
- text: '0.25rem',
310
- padding: {
311
- horizontal: '1rem',
312
- vertical: '0.75rem',
313
- top: '0.75rem',
314
- right: '1rem',
315
- bottom: '0.75rem',
316
- left: '1rem'
317
- },
318
- margin: {
319
- horizontal: '0.5rem',
320
- vertical: '0.25rem',
321
- top: '0.25rem',
322
- right: '0.5rem',
323
- bottom: '0.25rem',
324
- left: '0.5rem'
325
- }
326
- },
327
- colors: {
328
- background: {
329
- primary: '#ffffff',
330
- secondary: '#f8fafc',
331
- tertiary: '#f1f5f9',
332
- light: '#ffffff',
333
- dark: '#0f172a',
334
- contrast: '#000000'
335
- },
336
- text: {
337
- primary: '#0f172a',
338
- secondary: '#475569',
339
- tertiary: '#64748b',
340
- light: '#94a3b8',
341
- dark: '#0f172a',
342
- contrast: '#ffffff'
343
- },
344
- border: {
345
- primary: '#e2e8f0',
346
- secondary: '#cbd5e1',
347
- tertiary: '#94a3b8',
348
- light: '#f1f5f9',
349
- dark: '#475569',
350
- contrast: '#000000'
351
- },
352
- accent: {
353
- primary: '#3b82f6',
354
- secondary: '#6366f1',
355
- tertiary: '#8b5cf6',
356
- light: '#dbeafe',
357
- dark: '#1d4ed8',
358
- contrast: '#ffffff'
359
- },
360
- hover: {
361
- primary: '#f1f5f9',
362
- secondary: '#e2e8f0',
363
- tertiary: '#cbd5e1',
364
- light: '#ffffff',
365
- dark: '#1e293b',
366
- contrast: '#f8fafc'
367
- },
368
- active: {
369
- primary: '#3b82f6',
370
- secondary: '#6366f1',
371
- tertiary: '#8b5cf6',
372
- light: '#dbeafe',
373
- dark: '#1d4ed8',
374
- contrast: '#ffffff'
375
- },
376
- disabled: {
377
- primary: '#f1f5f9',
378
- secondary: '#e2e8f0',
379
- tertiary: '#cbd5e1',
380
- light: '#f8fafc',
381
- dark: '#475569',
382
- contrast: '#94a3b8'
383
- },
384
- focus: {
385
- primary: '#3b82f6',
386
- secondary: '#6366f1',
387
- tertiary: '#8b5cf6',
388
- light: '#dbeafe',
389
- dark: '#1d4ed8',
390
- contrast: '#ffffff'
391
- }
392
- },
393
- typography: {
394
- fontFamily: 'Clash Display, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',
395
- fontSize: {
396
- xs: '0.75rem',
397
- sm: '0.875rem',
398
- base: '1rem',
399
- lg: '1.125rem',
400
- xl: '1.25rem',
401
- '2xl': '1.5rem'
402
- },
403
- fontWeight: {
404
- light: '300',
405
- normal: '400',
406
- medium: '500',
407
- semibold: '600',
408
- bold: '700'
409
- },
410
- lineHeight: {
411
- tight: '1.25',
412
- normal: '1.5',
413
- relaxed: '1.75',
414
- loose: '2'
415
- },
416
- letterSpacing: {
417
- tight: '-0.025em',
418
- normal: '0',
419
- wide: '0.025em',
420
- wider: '0.05em'
421
- }
422
- },
423
- breakpoints: {
424
- mobile: '640px',
425
- tablet: '768px',
426
- desktop: '1024px',
427
- wide: '1280px',
428
- ultra: '1536px'
429
- }
430
- },
431
- spacing: {
432
- scale: {
433
- xs: '0.25rem',
434
- sm: '0.5rem',
435
- md: '1rem',
436
- lg: '1.5rem',
437
- xl: '2rem',
438
- '2xl': '3rem',
439
- '3xl': '4rem',
440
- '4xl': '6rem',
441
- '5xl': '8rem',
442
- '6xl': '12rem'
443
- },
444
- component: {
445
- button: {
446
- padding: '0.75rem 1.5rem',
447
- margin: '0.5rem',
448
- gap: '0.5rem'
449
- },
450
- input: {
451
- padding: '0.75rem 1rem',
452
- margin: '0.5rem',
453
- gap: '0.5rem'
454
- },
455
- card: {
456
- padding: '1.5rem',
457
- margin: '1rem',
458
- gap: '1rem'
459
- }
460
- },
461
- layout: {
462
- page: '2rem',
463
- section: '3rem',
464
- container: '1rem',
465
- grid: '1.5rem'
466
- }
467
- },
468
- shadows: {
469
- sm: '0 1px 2px 0 rgb(0 0 0 / 0.05)',
470
- md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
471
- lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
472
- xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',
473
- '2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',
474
- inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)',
475
- none: '0 0 #0000'
476
- },
477
- transitions: {
478
- duration: {
479
- fast: '0.15s',
480
- normal: '0.2s',
481
- slow: '0.3s'
482
- },
483
- easing: {
484
- linear: 'linear',
485
- ease: 'ease',
486
- easeIn: 'ease-in',
487
- easeOut: 'ease-out',
488
- easeInOut: 'ease-in-out'
489
- },
490
- properties: {
491
- colors: '0.2s ease',
492
- transform: '0.2s ease',
493
- opacity: '0.15s ease',
494
- shadow: '0.2s ease'
495
- }
496
- },
497
- borderRadius: {
498
- none: '0',
499
- sm: '0.125rem',
500
- md: '0.375rem',
501
- lg: '0.5rem',
502
- xl: '0.75rem',
503
- '2xl': '1rem',
504
- full: '9999px'
505
- },
506
- borderWidth: {
507
- none: '0',
508
- thin: '0.5px',
509
- normal: '1px',
510
- focus: '2px',
511
- thick: '3px',
512
- extraThick: '4px'
513
- },
514
- animation: {
515
- duration: {
516
- fast: '0.3s',
517
- normal: '0.2s',
518
- slow: '1.5s'
519
- },
520
- easing: {
521
- linear: 'linear',
522
- ease: 'ease',
523
- easeIn: 'ease-in',
524
- easeOut: 'ease-out',
525
- easeInOut: 'ease-in-out'
526
- },
527
- transforms: {
528
- hoverY: '-2px',
529
- offsetY: '10px',
530
- scale: '1.02'
531
- }
532
- },
533
- accessibility: {
534
- focusRing: {
535
- width: '3px',
536
- offset: '2px',
537
- color: 'var(--cs-colors-interactive-focus)'
538
- },
539
- outline: {
540
- offset: '2px'
541
- },
542
- highContrast: {
543
- borderWidth: '2px',
544
- outlineWidth: '4px'
545
- },
546
- disabled: {
547
- cursor: 'not-allowed',
548
- opacity: '0.7'
549
- }
550
- },
551
- print: {
552
- borderColor: '#000',
553
- textColor: '#000',
554
- textSecondaryColor: '#333',
555
- backgroundColor: 'transparent'
556
- },
557
- containerQuery: {
558
- small: '400px',
559
- medium: '600px',
560
- large: '800px'
561
- },
562
- container: {
563
- width: {
564
- small: '16rem',
565
- medium: '20rem',
566
- large: '24rem',
567
- xl: '32rem',
568
- full: '100%'
569
- }
570
- },
571
- shimmer: {
572
- alpha: '0.2',
573
- color: 'rgba(255, 255, 255, 0.2)'
574
- },
575
- meta: {
576
- name: 'Default',
577
- description: 'Default base theme configuration based on Stan Design - the primary brand theme',
578
- author: 'Theme System',
579
- version: '1.0.0',
580
- category: 'brand',
581
- tags: ['default', 'fallback', 'base', 'brand', 'clash-display', 'professional'],
582
- preview: '/themes/default-preview.png',
583
- createdAt: '2024-12-01T00:00:00.000Z',
584
- updatedAt: '2024-12-01T00:00:00.000Z'
585
- }
586
- };