2021-08-30 14:11:34 +08:00
|
|
|
import { defineConfig } from 'windicss/helpers';
|
|
|
|
|
|
|
|
export default defineConfig({
|
2021-10-14 14:27:18 +08:00
|
|
|
extract: {
|
|
|
|
include: ['src/**/*.{vue,html,jsx,tsx}', 'public/**/*.{html}', './*.html'],
|
|
|
|
exclude: ['node_modules', '.git']
|
|
|
|
},
|
2021-11-03 00:25:01 +08:00
|
|
|
darkMode: 'class',
|
2021-05-29 03:02:15 +08:00
|
|
|
shortcuts: {
|
2021-11-04 23:11:20 +08:00
|
|
|
'wh-full': 'w-full h-full',
|
2021-05-29 03:02:15 +08:00
|
|
|
'flex-center': 'flex justify-center items-center',
|
2021-11-17 12:28:53 +08:00
|
|
|
'flex-col-center': 'flex-center flex-col',
|
2021-05-29 03:02:15 +08:00
|
|
|
'flex-x-center': 'flex justify-center',
|
|
|
|
'flex-y-center': 'flex items-center',
|
2022-01-03 22:20:10 +08:00
|
|
|
'i-flex-center': 'inline-flex justify-center items-center',
|
|
|
|
'i-flex-x-center': 'inline-flex justify-center',
|
|
|
|
'i-flex-y-center': 'inline-flex items-center',
|
|
|
|
'flex-col': 'flex flex-col',
|
|
|
|
'flex-col-stretch': 'flex-col items-stretch',
|
|
|
|
'i-flex-col': 'inline-flex flex-col',
|
|
|
|
'i-flex-col-stretch': 'i-flex-col items-stretch',
|
2021-11-17 12:28:53 +08:00
|
|
|
'flex-1-hidden': 'flex-1 overflow-hidden',
|
2021-05-29 03:02:15 +08:00
|
|
|
'absolute-lt': 'absolute left-0 top-0',
|
|
|
|
'absolute-lb': 'absolute left-0 bottom-0',
|
|
|
|
'absolute-rt': 'absolute right-0 top-0',
|
|
|
|
'absolute-rb': 'absolute right-0 bottom-0',
|
2022-01-03 22:20:10 +08:00
|
|
|
'absolute-tl': 'absolute-lt',
|
|
|
|
'absolute-tr': 'absolute-rt',
|
|
|
|
'absolute-bl': 'absolute-lb',
|
|
|
|
'absolute-br': 'absolute-rb',
|
|
|
|
'absolute-center': 'absolute-lt flex-center wh-full',
|
|
|
|
'fixed-lt': 'fixed left-0 top-0',
|
|
|
|
'fixed-lb': 'fixed left-0 bottom-0',
|
|
|
|
'fixed-rt': 'fixed right-0 top-0',
|
|
|
|
'fixed-rb': 'fixed right-0 bottom-0',
|
|
|
|
'fixed-tl': 'fixed-lt',
|
|
|
|
'fixed-tr': 'fixed-rt',
|
|
|
|
'fixed-bl': 'fixed-lb',
|
|
|
|
'fixed-br': 'fixed-rb',
|
2021-11-17 12:28:53 +08:00
|
|
|
'fixed-center': 'fixed left-0 top-0 flex-center wh-full',
|
|
|
|
'nowrap-hidden': 'whitespace-nowrap overflow-hidden',
|
|
|
|
'ellipsis-text': 'nowrap-hidden overflow-ellipsis'
|
2021-08-30 14:11:34 +08:00
|
|
|
},
|
|
|
|
theme: {
|
2022-01-03 22:20:10 +08:00
|
|
|
extend: {}
|
2021-05-29 03:02:15 +08:00
|
|
|
},
|
2021-05-28 02:22:49 +08:00
|
|
|
variants: {},
|
|
|
|
plugins: []
|
2021-08-30 14:11:34 +08:00
|
|
|
});
|