Skip to content

Commit c8ad5f6

Browse files
committed
- feat: add new color palette
- feat: add ability to generate new custom color palette
1 parent d2d3ed3 commit c8ad5f6

File tree

5 files changed

+1348
-2
lines changed

5 files changed

+1348
-2
lines changed
Lines changed: 272 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,272 @@
1+
2+
export const presetToShare = {
3+
blue: '#154ec1',
4+
blue7: '#154ec112',
5+
blue10: '#154ec11a',
6+
blue13: '#154ec121',
7+
blueLight: '#2c5fc7',
8+
blueDark: '#1244a8',
9+
blueSoft7: '#60ace212',
10+
blueSoft10: '#60ace21a',
11+
blueSoft13: '#60ace221',
12+
blueSoft20: '#60ace233',
13+
blue20: '#154ec133',
14+
blueSoftLight: '#70b4e5',
15+
blueSoft: '#60ace2',
16+
blueSoftDark: '#5496c5',
17+
18+
neutralPrimarySoft: '#ecf0f1',
19+
neutralPrimaryDark: '#111921',
20+
white: '#ffffff',
21+
black: '#000000',
22+
neutralPrimary: '#141d26',
23+
neutralPrimary10: '#191d1f1a',
24+
neutralPrimarySoft10: '#ecf0f11a',
25+
neutralPrimaryLight: '#2c343c',
26+
neutralPrimarySoftLight: '#eef1f2',
27+
neutralPrimarySoftDark: '#cdd1d2',
28+
neutralPrimary7: '#191d1f12',
29+
neutralPrimary13: '#191d1f21',
30+
neutralPrimarySoft7: '#ecf0f112',
31+
neutralPrimarySoft13: '#ecf0f121',
32+
neutralPrimarySoft20: '#ecf0f133',
33+
neutralPrimary20: '#191d1f33',
34+
neutralSecondaryLight: '#6c7178',
35+
neutralSecondary: '#5c6169',
36+
neutralSecondaryDark: '#50545b',
37+
neutralSecondarySoftLight: '#b4bbc9',
38+
neutralSecondarySoft: '#acb4c3',
39+
neutralSecondarySoftDark: '#969daa',
40+
41+
yellowSoft: '#ffd952',
42+
yellow7: '#84680612',
43+
yellow10: '#8468061a',
44+
yellow13: '#84680621',
45+
yellowSoft7: '#ffd95212',
46+
yellowSoft10: '#ffd9521a',
47+
yellowSoft13: '#ffd95221',
48+
yellowSoftLight: '#ffdd63',
49+
yellowSoftDark: '#debd47',
50+
yellowSoft20: '#ffd95233',
51+
yellow20: '#84680633',
52+
yellowLight: '#90771f',
53+
yellow: '#846806',
54+
yellowDark: '#735a05',
55+
56+
greenSoft: '#66be33',
57+
green7: '#1f750012',
58+
green10: '#1f75001a',
59+
green13: '#1f750021',
60+
greenSoft7: '#66be3312',
61+
greenSoft10: '#66be331a',
62+
greenSoft13: '#66be3321',
63+
greenSoftLight: '#75c447',
64+
greenSoftDark: '#59a52c',
65+
greenSoft20: '#66be3333',
66+
green20: '#1f750033',
67+
greenLight: '#35831a',
68+
green: '#1f7500',
69+
greenDark: '#1b6600',
70+
71+
red7: '#c5181812',
72+
red10: '#c518181a',
73+
red13: '#c5181821',
74+
redSoft7: '#f67d7312',
75+
redSoft10: '#f67d731a',
76+
redSoft13: '#f67d7321',
77+
red20: '#c5181833',
78+
redSoft20: '#f67d7333',
79+
red: '#c51818',
80+
redSoft: '#f67d73',
81+
redSoftLight: '#f78a81',
82+
redPaleDark: '#d66d64',
83+
redLight: '#cb2f2f',
84+
redDark: '#ab1515',
85+
86+
sky7: '#0b6aae12',
87+
sky10: '#0b6aae1a',
88+
sky13: '#0b6aae21',
89+
skySoft7: '#56aeff12',
90+
skySoft10: '#56aeff1a',
91+
skySoft13: '#56aeff21',
92+
sky20: '#0b6aae33',
93+
skySoft20: '#56aeff33',
94+
sky: '#0b6aae',
95+
skySoft: '#56aeff',
96+
skySoftLight: '#67b6ff',
97+
skySoftDark: '#4b97de',
98+
skyLight: '#2379b6',
99+
skyDark: '#0a5c97',
100+
}
101+
102+
export const lightNewTheme = {
103+
text: {
104+
primary: 'neutralPrimary',
105+
secondary: 'neutralSecondary',
106+
inverted: 'neutralPrimarySoft',
107+
brand: 'blue',
108+
info: 'sky',
109+
warning: 'yellow',
110+
success: 'green',
111+
danger: 'red',
112+
primaryConst: 'neutralPrimary',
113+
invertedConst: 'neutralPrimarySoft',
114+
brandHover: 'blueLight',
115+
brandPressed: 'blueDark',
116+
dangerHover: 'redLight',
117+
dangerPressed: 'redDark',
118+
successHover: 'greenLight',
119+
successPressed: 'greenDark',
120+
warningHover: 'yellowLight',
121+
warningPressed: 'yellowDark',
122+
infoHover: 'skyLight',
123+
infoPressed: 'skyDark',
124+
primaryHover: 'neutralPrimaryLight',
125+
primaryPressed: 'neutralPrimaryDark',
126+
secondaryHover: 'neutralSecondaryLight',
127+
secondaryPressed: 'neutralSecondaryDark',
128+
invertedHover: 'neutralPrimarySoftLight',
129+
invertedPressed: 'neutralPrimarySoftDark',
130+
},
131+
background: {
132+
primary: 'white',
133+
brand: 'blue10',
134+
brandAccent: 'blue',
135+
secondary: 'neutralPrimarySoftLight',
136+
warning: 'yellow10',
137+
warningAccent: 'yellow',
138+
danger: 'red10',
139+
dangerAccent: 'red',
140+
success: 'green10',
141+
successAccent: 'green',
142+
info: 'sky10',
143+
infoAccent: 'sky',
144+
neutral: 'neutralPrimary10',
145+
neutralAccent: 'neutralPrimary',
146+
brandHover: 'blue7',
147+
brandPressed: 'blue13',
148+
brandAccentHover: 'blueLight',
149+
brandAccentPressed: 'blueDark',
150+
warningPressed: 'yellow13',
151+
warningHover: 'yellow7',
152+
warningAccentPressed: 'yellowDark',
153+
warningAccentHover: 'yellowLight',
154+
dangerPressed: 'red13',
155+
dangerHover: 'red7',
156+
dangerAccentHover: 'redLight',
157+
dangerAccentPressed: 'redDark',
158+
successPressed: 'green13',
159+
successHover: 'green7',
160+
successAccentHover: 'greenLight',
161+
successAccentPressed: 'greenDark',
162+
infoHover: 'sky7',
163+
infoPressed: 'sky13',
164+
infoAccentHover: 'skyLight',
165+
infoAccentPressed: 'skyDark',
166+
neutralAccentHover: 'neutralPrimaryLight',
167+
neutralAccentPressed: 'neutralPrimaryDark',
168+
neutralHover: 'neutralPrimary7',
169+
neutralPressed: 'neutralPrimary13',
170+
},
171+
border: {
172+
neutral: 'neutralPrimary20',
173+
successAccent: 'green',
174+
warningAccent: 'yellow',
175+
dangerAccent: 'red',
176+
infoAccent: 'sky',
177+
focus: 'skySoft',
178+
brandAccent: 'blue',
179+
neutralAccent: 'neutralPrimary',
180+
danger: 'red20',
181+
success: 'green20',
182+
warning: 'yellow20',
183+
info: 'sky20',
184+
brand: 'blue20',
185+
},
186+
}
187+
188+
export const darkNewTheme = {
189+
text: {
190+
primary: 'neutralPrimarySoft',
191+
secondary: 'neutralSecondarySoft',
192+
inverted: 'neutralPrimary',
193+
brand: 'blueSoft',
194+
info: 'skySoft',
195+
warning: 'yellowSoft',
196+
success: 'greenSoft',
197+
danger: 'redSoft',
198+
primaryConst: 'neutralPrimary',
199+
invertedConst: 'neutralPrimarySoft',
200+
brandHover: 'blueSoftLight',
201+
brandPressed: 'blueSoftDark',
202+
dangerHover: 'redSoftLight',
203+
dangerPressed: ['redPaleDark', 'redSoftDark'], // not all names from figma follow the same pattern
204+
successHover: 'greenSoftLight',
205+
successPressed: 'greenSoftDark',
206+
warningHover: 'yellowSoftLight',
207+
warningPressed: 'yellowSoftDark',
208+
infoHover: 'skySoftLight',
209+
infoPressed: 'skySoftDark',
210+
primaryHover: 'neutralPrimarySoftLight',
211+
primaryPressed: 'neutralPrimarySoftDark',
212+
secondaryHover: 'neutralSecondarySoftLight',
213+
secondaryPressed: 'neutralSecondarySoftDark',
214+
invertedHover: 'neutralPrimaryLight',
215+
invertedPressed: 'neutralPrimaryDark',
216+
},
217+
background: {
218+
primary: 'neutralPrimary',
219+
brand: 'blueSoft10',
220+
brandAccent: 'blueSoft',
221+
secondary: 'neutralPrimaryLight',
222+
warning: 'yellowSoft10',
223+
warningAccent: 'yellowSoft',
224+
danger: 'redSoft10',
225+
dangerAccent: 'redSoft',
226+
success: 'greenSoft10',
227+
successAccent: 'greenSoft',
228+
info: 'skySoft10',
229+
infoAccent: 'skySoft',
230+
neutral: 'neutralPrimarySoft10',
231+
neutralAccent: 'neutralPrimarySoft',
232+
brandHover: 'blueSoft13',
233+
brandPressed: 'blueSoft7',
234+
brandAccentHover: 'blueSoftLight',
235+
brandAccentPressed: 'blueSoftDark',
236+
warningPressed: 'yellowSoft7',
237+
warningHover: 'yellowSoft13',
238+
warningAccentPressed: 'yellowSoftDark',
239+
warningAccentHover: 'yellowSoftLight',
240+
dangerPressed: 'redSoft7',
241+
dangerHover: 'redSoft13',
242+
dangerAccentHover: 'redSoftLight',
243+
dangerAccentPressed: ['redPaleDark', 'redSoftDark'],
244+
successPressed: 'greenSoft7',
245+
successHover: 'greenSoft13',
246+
successAccentHover: 'greenSoftLight',
247+
successAccentPressed: 'greenSoftDark',
248+
infoHover: 'skySoft13',
249+
infoPressed: 'sky7',
250+
infoAccentHover: 'skySoftLight',
251+
infoAccentPressed: 'skySoftDark',
252+
neutralAccentHover: 'neutralPrimarySoftLight',
253+
neutralAccentPressed: 'neutralPrimarySoftDark',
254+
neutralHover: 'neutralPrimarySoft13',
255+
neutralPressed: 'neutralPrimarySoft7',
256+
},
257+
border: {
258+
neutral: 'neutralPrimarySoft20',
259+
successAccent: 'greenSoft',
260+
warningAccent: 'yellowSoft',
261+
dangerAccent: 'redSoft',
262+
infoAccent: 'skySoft',
263+
focus: 'skySoft',
264+
brandAccent: 'blueSoft',
265+
neutralAccent: 'neutralPrimarySoft',
266+
danger: 'redSoft20',
267+
success: 'greenSoft20',
268+
warning: 'yellowSoft20',
269+
info: 'skySoft20',
270+
brand: 'blueSoft20',
271+
},
272+
}

0 commit comments

Comments
 (0)