-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwindi.config.ts
29 lines (28 loc) · 909 Bytes
/
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
import { defineConfig } from 'windicss/helpers'
import plugin from 'windicss/plugin'
export default defineConfig({
darkMode: 'media',
safelist: [
'text-gray-500 text-yellow-500 text-green-500 dark:text-gray-400',
'bg-gray-300 bg-green-500 bg-blue-400 dark:bg-gray-700 dark:bg-green-600 dark:bg-blue-600',
],
attributify: {
prefix: 'w:',
},
alias: {
'badge': 'rounded-full px-2 m-1',
'full-border': 'first-child:border-l-2 children:border-2 '
+ 'children:border-l-0 children:border-dashed '
+ 'children:border-red-200 dark:children:border-stone-700',
},
plugins: [
plugin(({ addVariant }) => {
addVariant('first-child', ({ modifySelectors }) => {
return modifySelectors(({ className }) => {
// const element = e(`not-first${separator}${className}`)
return `.${className} > :first-child`
})
})
}),
],
})