-
Notifications
You must be signed in to change notification settings - Fork 48
/
Theme.tsx
164 lines (153 loc) · 3.36 KB
/
Theme.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
import { ReactNode } from 'react'
import { ThemeProvider } from 'styled-components'
const colors2024 = {
gray: {
50: '#F7F7F7',
100: '#E1E1E1',
150: '#C3C3C3',
200: '#A5A5A5',
250: '#878787',
300: '#717171',
350: '#5B5B5B',
400: '#444444',
500: '#2E2E2E',
600: '#272727',
650: '#202020',
700: '#191919',
750: '#121212',
800: '#0E0E0E',
850: '#090909',
900: '#050505',
950: '#000000',
},
orange: {
50: '#FEE7CD',
100: '#FEDBB4',
150: '#FDCF9A',
200: '#FDC381',
250: '#FDB768',
300: '#FBAD59',
350: '#F9A349',
400: '#F6993A',
500: '#F48F2A',
600: '#E38320',
650: '#D37715',
700: '#C26B0B',
750: '#B25F00',
800: '#A05500',
850: '#8E4B00',
900: '#7D4100',
950: '#6B3700',
},
blue: {
50: '#D4E7F7',
100: '#C5DFFA',
150: '#B6DAFB',
200: '#A7D5FD',
250: '#99CFFF',
300: '#96CDFD',
350: '#79B7F0',
400: '#69ACE9',
500: '#59A0E1',
600: '#4B90CB',
650: '#3D81B5',
700: '#2E729E',
750: '#206288',
800: '#1D577A',
850: '#1A4C6B',
900: '#16415D',
950: '#13364E',
},
green: {
50: '#F1FFCC',
100: '#E7FEA5',
150: '#E3FD95',
200: '#DEFD86',
250: '#D5FD63',
300: '#CDFA4C',
350: '#C5F735',
400: '#BCF51D',
500: '#AAE506',
600: '#9AD006',
650: '#8BBB06',
700: '#7CA605',
750: '#6C9105',
800: '#608009',
850: '#556E0E',
900: '#495D12',
950: '#3D4B16',
},
pink: {
50: '#FAE1E9',
100: '#F5C6D4',
150: '#F3B9CB',
200: '#F0ADC1',
250: '#EEA0B7',
300: '#EF95B0',
350: '#EF8AA9',
400: '#F080A1',
500: '#F0759A',
600: '#DA698B',
650: '#C35D7C',
700: '#AD516C',
750: '#97455D',
800: '#8E3D55',
850: '#85364D',
900: '#7C2E45',
950: '#73263D',
},
// NOTE: This was generated from the base color 600: '#e72c4e' since we didn't get a red color scale from the designers.
// This explains why we only have 11 hues for this color.
red: {
50: '#fff1f1',
100: '#ffe4e5',
200: '#ffccd0',
300: '#fea3ab',
400: '#fd6f7e',
500: '#f73c55',
600: '#e72c4e',
700: '#c10f34',
800: '#a11033',
900: '#8a1131',
950: '#4d0416',
},
}
const namedColors2024 = {
white: colors2024.gray[50],
gray: colors2024.gray[250],
black1: colors2024.gray[500],
black2: colors2024.gray[750],
black3: colors2024.gray[950],
orange1: colors2024.orange[50],
orange2: colors2024.orange[250],
orange3: colors2024.orange[500],
orange4: colors2024.orange[750],
orange5: colors2024.orange[950],
blue1: colors2024.blue[50],
blue2: colors2024.blue[250],
blue3: colors2024.blue[500],
blue4: colors2024.blue[750],
blue5: colors2024.blue[950],
green1: colors2024.green[50],
green2: colors2024.green[250],
green3: colors2024.green[500],
green4: colors2024.green[750],
green5: colors2024.green[950],
pink1: colors2024.pink[50],
pink2: colors2024.pink[250],
pink3: colors2024.pink[500],
pink4: colors2024.pink[750],
pink5: colors2024.pink[950],
}
export const colorTheme = {
newColors: namedColors2024,
huePalette: colors2024,
}
type Props = {
children: ReactNode
}
export type ColorTheme = typeof colorTheme
function Theme({ children }: Props) {
return <ThemeProvider theme={colorTheme}>{children}</ThemeProvider>
}
export default Theme