-
Notifications
You must be signed in to change notification settings - Fork 18
/
tailwind.config.js
117 lines (116 loc) · 2.77 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
/* eslint-disable @typescript-eslint/no-var-requires */
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');
const { gray } = require('tailwindcss/colors');
module.exports = {
mode: 'jit',
content: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: 'class',
theme: {
container: {
center: true,
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1280px',
},
},
extend: {
fontFamily: {
display: ['Inter', ...defaultTheme.fontFamily.sans],
},
spacing: {
0.25: '0.0625rem',
128: '32rem',
160: '40rem',
176: '44rem',
192: '48rem',
240: '60rem',
'screen-10': '10vh',
'screen-80': '80vh',
},
colors: {
primary: colors.emerald,
gray: colors.neutral,
orange: colors.orange,
},
boxShadow: {
popover:
'rgb(15 15 15 / 10%) 0px 3px 6px, rgb(15 15 15 / 20%) 0px 9px 24px',
},
opacity: {
0.1: '0.001',
85: '.85',
},
zIndex: {
'-10': '-10',
},
cursor: {
alias: 'alias',
},
animation: {
'bounce-x': 'bounce-x 1s infinite',
},
keyframes: {
'bounce-x': {
'0%, 100%': {
transform: 'translateX(0)',
animationTimingFunction: 'cubic-bezier(0.8, 0, 1, 1)',
},
'50%': {
transform: 'translateX(25%)',
animationTimingFunction: 'cubic-bezier(0, 0, 0.2, 1)',
},
},
},
typography: {
DEFAULT: {
css: {
b: {
fontWeight: 600,
},
h1: {
fontWeight: 600,
color: gray,
},
h2: {
fontWeight: 600,
color: gray,
},
h3: {
fontWeight: 600,
color: gray,
},
h4: {
fontWeight: 600,
},
h5: {
fontWeight: 600,
},
h6: {
fontWeight: 600,
},
a: {
textDecoration: 'none',
fontWeight: 'normal',
'&:hover': {
color: colors.emerald[500],
},
},
blockquote: {
color: colors.emerald[100],
}
},
},
},
},
},
// variants: {
// backgroundColor: ['responsive', 'hover', 'focus', 'active'],
// display: ['responsive', 'group-hover'],
// extend: {},
// },
plugins: [require('@tailwindcss/typography'), require('@tailwindcss/forms')],
};