-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathtailwind.config.js
129 lines (128 loc) · 3.47 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
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
module.exports = (isProd) => ({
prefix: '',
purge: {
enabled: isProd,
content: ['./src/**/*.{html,ts}'],
},
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
boxShadow: {
'small-button': '0px 1px 2px rgba(126, 56, 0, 0.5)',
button: '-6px 8px 10px rgba(81, 41, 10, 0.1), 0px 2px 2px rgba(81, 41, 10, 0.2)',
'button-active': '-1px 2px 5px rgba(81, 41, 10, 0.15), 0px 1px 1px rgba(81, 41, 10, 0.15)',
},
animation: {
enter: 'enter 200ms ease-out',
'slide-in': 'slide-in 1.2s cubic-bezier(.41,.73,.51,1.02)',
},
keyframes: {
enter: {
'0%': { transform: 'scale(0.9)', opacity: 0 },
'100%': { transform: 'scale(1)', opacity: 1 },
},
'slide-in': {
'0%': { transform: 'translateY(-100%)' },
'100%': { transform: 'translateY(0)' },
},
},
colors: {
toast: {
50: '#FFF6DF',
100: '#fdf7f1',
200: '#FFE092',
200: '#F8EEDB',
300: '#ebbf99',
400: '#dea373',
500: '#ce864f',
600: '#A1724E',
700: '#8c501c',
800: '#5c340f',
900: '#482307',
1000: '#351e11',
},
},
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.toast.900'),
h1: {
color: theme('colors.toast.900'),
},
h2: {
color: theme('colors.toast.900'),
},
h3: {
color: theme('colors.toast.800'),
},
h4: {
color: theme('colors.toast.900'),
},
strong: {
color: theme('colors.toast.900'),
},
pre: {
color: null,
backgroundColor: null,
overflowX: 'auto',
fontSize: theme('fontSize.base'),
padding: 0,
},
'pre pre': {
padding: theme('spacing.4'),
margin: 0,
},
'pre code': {
backgroundColor: 'transparent',
borderWidth: '0',
borderRadius: '0',
fontWeight: '400',
color: 'inherit',
fontFamily: 'inherit',
lineHeight: 'inherit',
},
code: {
color: theme('colors.toast.900'),
fontWeight: '600',
},
'code::before': {
content: '""',
},
'code::after': {
content: '""',
},
thead: {
color: theme('colors.toast.900'),
fontWeight: '600',
borderBottomWidth: '1px',
borderBottomColor: theme('colors.toast.200'),
},
'tbody tr': {
borderBottomWidth: '1px',
borderBottomColor: theme('colors.toast.200'),
},
'ul > li::before': {
content: '""',
position: 'absolute',
backgroundColor: theme('colors.toast.800'),
borderRadius: '50%',
},
// ...
},
},
}),
},
container: {
padding: '1rem',
center: true,
},
},
variants: {
extend: {
translate: ['active'],
gradientColorStops: ['active'],
boxShadow: ['active'],
},
},
plugins: [require('@tailwindcss/typography')],
});