-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtailwind.config.js
119 lines (118 loc) · 3.26 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
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');
module.exports = {
experimental: {
optimizeUniversalDefaults: true,
},
content: ['./{pages,src}/**/*.{tx,tsx}'],
// We'll always in dark mode until we implement light mode.
// We're using `next-themes` which reads the set color mode from local storage
// and infers a default from `prefers-color-scheme`.
darkMode: 'class',
theme: {
colors: {
transparent: 'transparent',
primary: colors.teal,
pink: '#FF34F0',
purple: '#9B37FF',
error: '#FF3459',
success: '#4ADE80',
white: '#FFFFFF',
gray: {
100: '#F2EFF6',
200: '#F2EFF6',
300: '#AAA4B6',
400: '#938D9E',
500: '#55515B',
600: '#353239',
700: '#222025',
800: '#19181C',
900: '#171619',
},
},
extend: {
keyframes: {
shimmer: {
'100%': {
transform: 'translateX(100%)',
},
},
},
animation: {
shimmer: 'shimmer 2s ease-in-out infinite',
},
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.white'),
h1: {
marginTop: '0',
marginBottom: '0',
fontSize: '32px',
fontWeight: 'light',
letterSpacing: theme('letterSpacing.tight'),
color: theme('colors.pink'),
},
h2: {
marginTop: '0',
marginBottom: '0',
fontSize: '28px',
fontWeight: 'light',
letterSpacing: theme('letterSpacing.tight'),
color: theme('colors.gray.600'),
},
h3: {
marginTop: '0',
marginBottom: '0',
fontSize: '24px',
fontWeight: 'light',
color: theme('colors.pink.800'),
},
h4: {
marginTop: '0',
marginBottom: '0',
fontSize: '20px',
color: theme('colors.gray.800'),
},
p: {
marginTop: '0',
marginBottom: '0',
fontSize: '14px',
color: theme('colors.white'),
},
b: {
marginTop: '0',
marginBottom: '0',
fontSize: '12px',
color: theme('colors.white'),
},
a: {
marginTop: '0',
fontSize: '15px',
textDecoration: 'none',
},
code: {
marginTop: '0',
fontSize: '15px',
color: theme('colors.white'),
},
pre: {
marginTop: '0',
marginBottom: '0',
fontSize: '12px',
fontWeight: 'light',
border: 'none',
color: theme('colors.gray.300'),
backgroundColor: theme('colors.gray.900'),
},
},
},
}),
spacing: {
3.75: '0.9375rem', // We often need (16px (1rem) - 1px) to correct for 1px border.
},
},
},
variants: {},
plugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography')],
};