|
1 | 1 | import type { PaletteOptions } from '@mui/material/styles'; |
2 | 2 |
|
3 | | -// Figma Design Tokens - Replace these with your actual Figma colors |
4 | | -const figmaColors = { |
5 | | - // Primary Brand Colors (Update with your Figma values) |
| 3 | +// Minimized Color Palette - Essential colors only |
| 4 | +const appColors = { |
| 5 | + // Primary Brand Colors - Only essential shades |
6 | 6 | primary: { |
7 | | - 50: '#f0f9ff', |
8 | | - 100: '#e0f2fe', |
9 | | - 200: '#bae6fd', |
10 | | - 300: '#7dd3fc', |
11 | | - 400: '#38bdf8', |
12 | | - 500: '#0ea5e9', // Main primary |
13 | | - 600: '#0284c7', |
14 | | - 700: '#0369a1', |
15 | | - 800: '#075985', |
16 | | - 900: '#0c4a6e', |
| 7 | + light: '#38bdf8', |
| 8 | + main: '#0ea5e9', |
| 9 | + dark: '#0284c7', |
17 | 10 | }, |
18 | 11 |
|
19 | | - // Secondary Colors (Update with your Figma values) |
| 12 | + // Secondary Colors - Only essential shades |
20 | 13 | secondary: { |
21 | | - 50: '#fdf4ff', |
22 | | - 100: '#fae8ff', |
23 | | - 200: '#f5d0fe', |
24 | | - 300: '#f0abfc', |
25 | | - 400: '#e879f9', |
26 | | - 500: '#d946ef', // Main secondary |
27 | | - 600: '#c026d3', |
28 | | - 700: '#a21caf', |
29 | | - 800: '#86198f', |
30 | | - 900: '#701a75', |
| 14 | + light: '#e879f9', |
| 15 | + main: '#d946ef', |
| 16 | + dark: '#c026d3', |
31 | 17 | }, |
32 | 18 |
|
33 | | - // Neutral/Gray Scale |
| 19 | + // Neutral/Gray Scale - Essential grays only |
34 | 20 | neutral: { |
35 | 21 | 50: '#fafafa', |
36 | 22 | 100: '#f5f5f5', |
37 | 23 | 200: 'rgba(82, 82, 82, 0.13)', |
38 | | - 300: '#d4d4d4', |
39 | 24 | 400: '#a3a3a3', |
40 | | - 500: '#737373', |
41 | 25 | 600: '#525252', |
42 | | - 700: '#404040', |
43 | | - 800: '#262626', |
44 | 26 | 900: '#171717', |
45 | 27 | }, |
46 | 28 |
|
47 | | - // Semantic Colors |
| 29 | + // Semantic Colors - Main shades only |
48 | 30 | success: { |
49 | | - 50: '#f0fdf4', |
50 | | - 100: '#dcfce7', |
51 | | - 200: '#bbf7d0', |
52 | | - 300: '#86efac', |
53 | | - 400: '#4ade80', |
54 | | - 500: '#22c55e', // Main success |
55 | | - 600: '#16a34a', |
56 | | - 700: '#15803d', |
57 | | - 800: '#166534', |
58 | | - 900: '#14532d', |
| 31 | + main: '#22c55e', |
59 | 32 | }, |
60 | 33 |
|
61 | 34 | warning: { |
62 | | - 50: '#fffbeb', |
63 | | - 100: '#fef3c7', |
64 | | - 200: '#fde68a', |
65 | | - 300: '#fcd34d', |
66 | | - 400: '#fbbf24', |
67 | | - 500: '#f59e0b', // Main warning |
68 | | - 600: '#d97706', |
69 | | - 700: '#b45309', |
70 | | - 800: '#92400e', |
71 | | - 900: '#78350f', |
| 35 | + main: '#f59e0b', |
72 | 36 | }, |
73 | 37 |
|
74 | 38 | error: { |
75 | | - 50: '#fef2f2', |
76 | | - 100: '#fee2e2', |
77 | | - 200: '#fecaca', |
78 | | - 300: '#fca5a5', |
79 | | - 400: '#f87171', |
80 | | - 500: '#ef4444', // Main error |
81 | | - 600: '#dc2626', |
82 | | - 700: '#b91c1c', |
83 | | - 800: '#991b1b', |
84 | | - 900: '#7f1d1d', |
| 39 | + main: '#ef4444', |
85 | 40 | }, |
86 | 41 |
|
87 | 42 | info: { |
88 | | - 50: '#eff6ff', |
89 | | - 100: '#dbeafe', |
90 | | - 200: '#bfdbfe', |
91 | | - 300: '#93c5fd', |
92 | | - 400: '#60a5fa', |
93 | | - 500: '#3b82f6', // Main info |
94 | | - 600: '#2563eb', |
95 | | - 700: '#1d4ed8', |
96 | | - 800: '#1e40af', |
97 | | - 900: '#1e3a8a', |
| 43 | + main: '#3b82f6', |
98 | 44 | }, |
99 | 45 | }; |
100 | 46 |
|
101 | | -// Single Theme Palette (Light/White Mode Only) |
| 47 | +// Minimized Theme Palette (Light Mode Only) |
102 | 48 | export const appPalette: PaletteOptions = { |
103 | 49 | mode: 'light', |
104 | 50 | primary: { |
105 | | - main: figmaColors.primary[500], |
106 | | - light: figmaColors.primary[400], |
107 | | - dark: figmaColors.primary[600], |
| 51 | + main: appColors.primary.main, |
| 52 | + light: appColors.primary.light, |
| 53 | + dark: appColors.primary.dark, |
108 | 54 | contrastText: '#ffffff', |
109 | 55 | }, |
110 | 56 | secondary: { |
111 | | - main: figmaColors.secondary[500], |
112 | | - light: figmaColors.secondary[400], |
113 | | - dark: figmaColors.secondary[600], |
| 57 | + main: appColors.secondary.main, |
| 58 | + light: appColors.secondary.light, |
| 59 | + dark: appColors.secondary.dark, |
114 | 60 | contrastText: '#ffffff', |
115 | 61 | }, |
116 | 62 | error: { |
117 | | - main: figmaColors.error[500], |
118 | | - light: figmaColors.error[400], |
119 | | - dark: figmaColors.error[600], |
| 63 | + main: appColors.error.main, |
120 | 64 | contrastText: '#ffffff', |
121 | 65 | }, |
122 | 66 | warning: { |
123 | | - main: figmaColors.warning[500], |
124 | | - light: figmaColors.warning[400], |
125 | | - dark: figmaColors.warning[600], |
| 67 | + main: appColors.warning.main, |
126 | 68 | contrastText: '#ffffff', |
127 | 69 | }, |
128 | 70 | info: { |
129 | | - main: figmaColors.info[500], |
130 | | - light: figmaColors.info[400], |
131 | | - dark: figmaColors.info[600], |
| 71 | + main: appColors.info.main, |
132 | 72 | contrastText: '#ffffff', |
133 | 73 | }, |
134 | 74 | success: { |
135 | | - main: figmaColors.success[500], |
136 | | - light: figmaColors.success[400], |
137 | | - dark: figmaColors.success[600], |
| 75 | + main: appColors.success.main, |
138 | 76 | contrastText: '#ffffff', |
139 | 77 | }, |
140 | | - grey: figmaColors.neutral, |
| 78 | + grey: appColors.neutral, |
141 | 79 | background: { |
142 | 80 | default: '#E9E8ED', |
143 | 81 | paper: '#E9E8ED', |
144 | 82 | }, |
145 | 83 | text: { |
146 | | - primary: figmaColors.neutral[900], |
147 | | - secondary: figmaColors.neutral[600], |
148 | | - disabled: figmaColors.neutral[400], |
| 84 | + primary: appColors.neutral[900], |
| 85 | + secondary: appColors.neutral[600], |
| 86 | + disabled: appColors.neutral[400], |
149 | 87 | }, |
150 | | - divider: figmaColors.neutral[200], |
| 88 | + divider: appColors.neutral[200], |
151 | 89 | action: { |
152 | | - active: figmaColors.neutral[600], |
153 | | - hover: figmaColors.neutral[50], |
154 | | - selected: figmaColors.neutral[100], |
155 | | - disabled: figmaColors.neutral[300], |
156 | | - disabledBackground: figmaColors.neutral[100], |
| 90 | + active: appColors.neutral[600], |
| 91 | + hover: appColors.neutral[50], |
| 92 | + selected: appColors.neutral[100], |
| 93 | + disabled: appColors.neutral[400], |
| 94 | + disabledBackground: appColors.neutral[100], |
157 | 95 | }, |
158 | 96 | }; |
159 | 97 |
|
160 | 98 | // Export the color tokens for use in components |
161 | | -export { figmaColors }; |
| 99 | +export { appColors }; |
0 commit comments