-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtailwind.config.js
103 lines (102 loc) · 2.92 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
/**
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
keyframes: {
'fade-in-out': {
'0%': { opacity: '0', transform: 'translateY(-10px)' },
'10%': { opacity: '1', transform: 'translateY(0)' },
'90%': { opacity: '1' },
'100%': { opacity: '0' }
},
'slide-in': {
'0%': { transform: 'translateX(100%)' },
'100%': { transform: 'translateX(0)' }
}
},
animation: {
'fade-in-out': 'fade-in-out 5s ease-in-out',
'slide-in': 'slide-in 0.5s ease-out'
},
typography: {
xs: {
css: {
fontSize: '0.75rem',
lineHeight: '1.2',
color: '#374151',
p: {
marginBottom: '0.5rem',
},
h1: {
fontSize: '1rem',
marginBottom: '0.75rem',
},
h2: {
fontSize: '0.875rem',
marginBottom: '0.5rem',
},
h3: {
fontSize: '0.75rem',
marginBottom: '0.5rem',
},
'code': {
fontSize: '0.7rem !important',
padding: '0.1rem 0.2rem',
backgroundColor: '#f8fafc',
color: '#0f172a !important',
borderRadius: '0.25rem',
border: '1px solid #e2e8f0',
},
'pre': {
fontSize: '0.7rem !important',
padding: '0.75rem',
marginBottom: '0.75rem',
backgroundColor: '#f8fafc',
color: '#0f172a',
border: '1px solid #e2e8f0',
code: {
fontSize: '0.7rem !important',
backgroundColor: 'transparent',
padding: 0,
border: 'none',
color: '#0f172a',
}
},
'ul': {
marginBottom: '0.75rem',
},
'ol': {
marginBottom: '0.75rem',
},
'li': {
marginBottom: '0.25rem',
}
}
}
}
},
},
plugins: [
require('@tailwindcss/typography'),
],
}