-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
72 lines (71 loc) · 1.82 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
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
mode: 'jit',
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./lib/**/*.{js,ts,jsx,tsx}',
],
darkMode: 'media',
theme: {
fontFamily: {
cal: ['Cal Sans', 'Inter var', 'sans-serif'],
},
extend: {
colors: {
current: 'currentColor',
},
width: {
1536: '1536px',
},
height: {
150: '37.5rem',
},
margin: {
30: '7.5rem',
},
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
mono: ['Consolas', ...defaultTheme.fontFamily.mono],
},
typography: {
DEFAULT: {
css: {
h1: {
fontFamily: 'Cal Sans',
},
h2: {
fontFamily: 'Cal Sans',
},
h3: {
fontFamily: 'Cal Sans',
},
'blockquote p:first-of-type::before': { content: 'none' },
'blockquote p:first-of-type::after': { content: 'none' },
},
},
},
keyframes: {
wiggle: {
'0%, 100%': {
transform: 'translateX(0%)',
transformOrigin: '50% 50%',
},
'15%': { transform: 'translateX(-6px) rotate(-6deg)' },
'30%': { transform: 'translateX(9px) rotate(6deg)' },
'45%': { transform: 'translateX(-9px) rotate(-3.6deg)' },
'60%': { transform: 'translateX(3px) rotate(2.4deg)' },
'75%': { transform: 'translateX(-2px) rotate(-1.2deg)' },
},
},
animation: {
wiggle: 'wiggle 0.8s both',
},
},
},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/forms'),
require('@tailwindcss/line-clamp'),
],
}