-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
windi.config.js
116 lines (113 loc) · 2.73 KB
/
windi.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
import colors from 'windicss/colors'
function conicGradient(theme, direction, colorList) {
const params = [
direction,
...colorList.map(color => theme(`colors.${color}`)),
]
return `conic-gradient(${params.join(', ')})`
}
module.exports = {
theme: {
extend: {
colors: {
amber: colors.amber,
lightBlue: colors.lightBlue,
rose: colors.rose,
gray: colors.gray,
},
backgroundImage: theme => ({
'conic-gradient': conicGradient(theme, 'from 300deg', [
'emerald.400',
'green.100',
'emerald.300',
'emerald.700',
'green.100',
'green.100',
'emerald.600',
'emerald.400',
]),
}),
animation: {
'pulse-slow': 'pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite',
},
padding: {
'1/3': '33.3333%',
'2/3': '66.6667%',
'3/4': '75%',
'9/16': '56.25%',
},
typography: {
DEFAULT: {
css: {
'color': '#d6d9dc',
'strong': {
color: 'white',
fontWeight: '500',
},
'h1': {
color: '#d6d9dc',
fontWeight: '500',
},
'h2': {
color: '#d6d9dc',
fontWeight: '500',
},
'h3': {
color: '#d6d9dc',
fontWeight: '500',
},
'h4': {
color: '#d6d9dc',
fontWeight: '500',
},
'h5': {
color: '#d6d9dc',
fontWeight: '500',
},
'h6': {
color: '#d6d9dc',
fontWeight: '500',
},
'blockquote': {
color: '#d6d9dc',
},
'code': {
color: '#d6d9dc',
},
'code::before': {
content: '""',
},
'code::after': {
content: '""',
},
'pre': {
backgroundColor: '#2d2d2d',
},
'hr': {
borderTop: '1px solid #2d2d2d',
},
'a': {
'color': '#d6d9dc',
'&:hover': {
color: '#10b981',
},
},
'ol > li::before': {
color: '#56524e',
},
'ul > li::before': {
color: '#56524e',
backgroundColor: '#56524e',
},
},
},
},
},
},
plugins: [
require('windicss/plugin/forms'),
require('windicss/plugin/aspect-ratio'),
require('windicss/plugin/line-clamp'),
require('windicss/plugin/typography'),
],
}