-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
104 lines (102 loc) · 3.1 KB
/
Copy pathtailwind.config.ts
File metadata and controls
104 lines (102 loc) · 3.1 KB
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
import type { Config } from 'tailwindcss'
declare function require(name: string): unknown
export default <Config>{
darkMode: 'class',
plugins: [
require('@tailwindcss/typography'),
],
content: [
'app.vue',
],
theme: {
extend: {
fontFamily: {
display: ['Syne', 'sans-serif'],
sans: ['DM Sans', 'Noto Sans SC', 'sans-serif'],
},
typography: ({ theme }: { theme: (path: string) => string }) => ({
zinc: {
css: {
'--tw-prose-body': theme('colors.zinc[600]'),
'--tw-prose-headings': theme('colors.zinc[900]'),
'--tw-prose-code': theme('colors.zinc[800]'),
fontSize: '1rem',
lineHeight: '1.75',
maxWidth: '72ch',
p: {
marginTop: '1em',
marginBottom: '1em',
lineHeight: '1.75',
},
'h2, h3, h4': {
marginTop: '2em',
marginBottom: '0.75em',
},
'h2 + p, h3 + p, h4 + p': {
marginTop: '0.5em',
},
ul: {
marginTop: '0.75em',
marginBottom: '0.75em',
},
li: {
marginTop: '0.25em',
marginBottom: '0.25em',
},
'li::marker': {
color: theme('colors.zinc[400]'),
},
code: {
fontWeight: '500',
fontSize: '0.875em',
backgroundColor: theme('colors.zinc[100]'),
padding: '0.2em 0.4em',
borderRadius: '0.375rem',
'&::before': { content: '""' },
'&::after': { content: '""' },
},
'code::before': { content: '""' },
'code::after': { content: '""' },
a: {
color: theme('colors.teal[600]'),
fontWeight: '500',
textDecoration: 'none',
borderBottom: '1px solid transparent',
transition: 'border-color 0.2s',
'&:hover': {
borderColor: theme('colors.teal[400]'),
},
},
},
},
DEFAULT: {
css: {
'--tw-prose-body': theme('colors.zinc[600]'),
'--tw-prose-headings': theme('colors.zinc[900]'),
'--tw-prose-links': theme('colors.teal[600]'),
'--tw-prose-code': theme('colors.zinc[800]'),
},
},
}),
keyframes: {
'fade-up': {
'0%': { opacity: '0', transform: 'translateY(24px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
'fade-in': {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
'scale-in': {
'0%': { opacity: '0', transform: 'scale(0.95)' },
'100%': { opacity: '1', transform: 'scale(1)' },
},
},
animation: {
'fade-up': 'fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both',
'fade-in': 'fade-in 0.6s ease both',
'scale-in': 'scale-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both',
},
},
},
}