-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
94 lines (93 loc) · 2.4 KB
/
tailwind.config.js
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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
white: '#FFFFFF',
neutral: {
10: '#FDFDFD',
20: '#F8F8F8',
30: '#E6E6E6',
40: '#D5D5D5',
50: '#B1B1B1',
60: '#909090',
70: '#6C6C6C',
80: '#464646',
90: '#222222',
100: '#000000',
},
brand: {
yellow: '#FFFC62',
},
success: {
10: '#E8FCF1',
20: '#A5E1BF',
40: '#419E6A',
60: '#00632B',
80: '#00401C',
100: '#002611',
},
info: {
10: '#D3E1FE',
20: '#7EA5F8',
40: '#4D82F3',
60: '#2563EB',
80: '#0037B3',
100: '#002987',
},
warning: {
10: '#FFF5D5',
20: '#FFDE81',
40: '#EFB008',
60: '#976400',
80: '#724B00',
100: '#4D2900',
},
error: {
10: '#FFEBEB',
20: '#FC9595',
40: '#D83232',
60: '#B01212',
80: '#8C0000',
100: '#660000',
},
},
backgroundImage: {
'message-gradient': 'linear-gradient(to bottom, #FDFDFD 46.75%, #FFFED9 100%)',
'login-gradient': 'background: linear-gradient(180deg, #191E33 24.5%, #303C70 100%);',
'star-top': "url('https://storage.googleapis.com/to-hero/images/stars-top.webp')",
'star-bottom': "url('https://storage.googleapis.com/to-hero/images/stars-bottom.webp')",
},
boxShadow: {
dropdown: '0px 4px 24px 0px rgba(33, 33, 33, 0.60)',
},
screens: {
'h-sm': { raw: '(max-height: 600px)' },
'w-sm': { raw: '(max-width: 375px)' },
},
},
},
plugins: [
function ({ addBase, theme }) {
const colors = theme('colors')
const cssVariables = Object.keys(colors).reduce((acc, key) => {
const value = colors[key]
if (typeof value === 'string') {
acc[`--color-${key}`] = value
} else {
Object.keys(value).forEach((subKey) => {
acc[`--color-${key}-${subKey}`] = value[subKey]
})
}
return acc
}, {})
addBase({
':root': cssVariables,
})
},
],
future: {
hoverOnlyWhenSupported: true,
},
}