gohttpdUi/windi.config.ts

46 lines
1.1 KiB
TypeScript
Raw Normal View History

2021-12-10 17:10:51 +08:00
import { defineConfig } from 'windicss/helpers'
2021-12-07 16:36:16 +08:00
// function range(size, startAt = 1) {
// return Array.from(Array(size).keys()).map((i) => i + startAt)
// }
2021-12-07 16:36:16 +08:00
export default defineConfig({
extract: {
include: ['src/**/*.{vue,html,jsx,tsx}'],
exclude: ['node_modules', '.git']
},
darkMode: 'class',
2021-12-10 17:10:51 +08:00
attributify: false,
theme: {
2022-01-03 18:01:43 +08:00
// extend: {
// screens: {
// sm: '768px',
// md: '992px',
// lg: '1200px',
// xl: '1920px'
// }
// }
// height: {
// ...range(50).map((i) => `h-${i}px`)
// },
// margin: {
// // ...range(50).map((i) => `mt-${i}px`),
// // ...range(50).map((i) => `mr-${i}px`),
// // ...range(50).map((i) => `mb-${i}px`),
// // ...range(50).map((i) => `ml-${i}px`)
// }
2022-01-03 18:01:43 +08:00
},
Plugin: [
require('@windicss/plugin-animations')({
settings: {
animatedSpeed: 1000,
heartBeatSpeed: 1000,
hingeSpeed: 2000,
bounceInSpeed: 750,
bounceOutSpeed: 750,
animationDelaySpeed: 1000
}
})
]
2021-12-07 16:36:16 +08:00
})