forked from harlan-zw/harlanzw.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
windi.config.ts
88 lines (87 loc) · 2.49 KB
/
windi.config.ts
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
import { defineConfig } from 'windicss/helpers'
import typography from 'windicss/plugin/typography'
export default defineConfig({
plugins: [
require('windicss/plugin/forms'),
typography({
// Turns text color to light, when dark mode enabled. Default = false
dark: true,
}),
],
shortcuts: {
'bg-clip-text': {
'-webkit-background-clip': 'text',
'background-clip': 'text',
},
},
theme: {
extend: {
colors: {
gray: {
800: '#374151',
},
},
animation: {
fadeIn: 'fadeIn 200ms ease-in forwards',
},
keyframes: {
fadeIn: {
'0%': { opacity: 0 },
'100%': { opacity: 1 },
},
},
fontFamily: {
sans: '"Work Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
header: '"Work Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
},
typography: theme => ({
DEFAULT: {
css: {
maxWidth: '100%',
lineHeight: 1.3,
img: {
height: null,
},
a: {
color: 'inherit',
fontWeight: 400,
textDecoration: 'none',
},
h1: {
color: theme('colors.gray.800'),
fontWeight: '600',
fontFamily: theme('fontFamily.header'),
lineHeight: 1.3,
},
h2: {
color: theme('colors.gray.800'),
fontFamily: theme('fontFamily.header'),
},
h3: {
color: theme('colors.gray.800'),
fontFamily: theme('fontFamily.header'),
},
h4: {
color: theme('colors.gray.800'),
fontWeight: '600',
fontSize: '1.5rem',
lineHeight: '2rem',
fontFamily: theme('fontFamily.header'),
textDecoration: 'underline',
},
blockquote: {
fontWeight: '400',
},
},
},
xl: {
css: {
h1: {
lineHeight: 1.3,
},
},
},
}),
},
},
})