-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
121 lines (121 loc) · 2.94 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
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./layout/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
darkMode: 'class',
theme: {
extend: {
colors: {
'accent-1': '#FAFAFA',
'accent-2': '#EAEAEA',
'accent-7': '#333',
success: '#0070f3',
cyan: '#79FFE1',
midnight: {
100: '#232222',
200: '#171514',
},
theme: {
red: '#e54d42',
green: '#019E02',
},
// 宇宙探索编辑部
journey: {
100: '#B6D9B7',
200: '#A3D1A4',
300: '#89CC8B',
400: '#6ABB65',
500: '#33A131',
600: '#019E02',
700: '#109410',
800: '#2F9130',
900: '#3A8A41',
}
},
spacing: {
28: '7rem',
},
letterSpacing: {
tighter: '-.04em',
},
lineHeight: {
tight: 1.2,
},
fontSize: {
'5xl': '2.5rem',
'6xl': '2.75rem',
'7xl': '4.5rem',
'8xl': '6.25rem',
},
boxShadow: {
small: '0 5px 10px rgba(0, 0, 0, 0.12)',
medium: '0 8px 30px rgba(0, 0, 0, 0.12)',
me: '0 1px 1px rgba(0,0,0,.075), 0 2px 2px rgba(0,0,0,.075), 0 4px 4px rgba(0,0,0,.075), 0 8px 8px rgba(0,0,0,.075), 0 16px 16px rgba(0,0,0,.075)'
},
keyframes: {
waving: {
'0%': {
transform: 'rotate(0deg)',
},
'10%': {
transform: 'rotate(14deg)',
},
'20%': {
transform: 'rotate(-8deg)',
},
'30%': {
transform: 'rotate(14deg)',
},
'40%': {
transform: 'rotate(-8deg)',
},
'50%': {
transform: 'rotate(10deg)',
},
'60%': {
transform: 'rotate(0deg)',
},
'to': {
transform: 'rotate(0deg)',
},
},
},
typography: ({ theme }) => ({
bigno: {
css: {
// '--tw-prose-body': "#71717a",
'--tw-prose-invert-body': '#d4d4d4',
'--tw-prose-invert-headings': theme('colors.white'),
'--tw-prose-invert-bold': theme('colors.white'),
// '--tw-prose-invert-hr': "#404040", // 亮一点
'--tw-prose-invert-hr': '#373737',
'--tw-prose-invert-quote-borders': 'var(--post-content-theme)',
},
},
DEFAULT: {
css: {
'--tw-prose-body': theme('colors.zinc.500'),
img: {
marginTop: '0',
marginBottom: '0',
},
},
},
lg: {
css: {
img: {
marginTop: '0',
marginBottom: '0',
},
},
},
}),
},
},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/line-clamp'),
],
}