| | |
| | | import colors from 'windicss/colors'; |
| | | |
| | | import { defineConfig } from 'vite-plugin-windicss'; |
| | | import { primaryColor } from './build/config/themeConfig'; |
| | | |
| | | export default defineConfig({ |
| | | darkMode: 'class', |
| | | plugins: [lineClamp, createEnterPlugin()], |
| | | theme: { |
| | | extend: { |
| | | colors, |
| | | }, |
| | | screens: { |
| | | sm: '576px', |
| | | md: '768px', |
| | | lg: '992px', |
| | | xl: '1200px', |
| | | '2xl': '1600px', |
| | | colors: { |
| | | ...colors, |
| | | primary: primaryColor, |
| | | }, |
| | | screens: { |
| | | sm: '576px', |
| | | md: '768px', |
| | | lg: '992px', |
| | | xl: '1200px', |
| | | '2xl': '1600px', |
| | | }, |
| | | }, |
| | | }, |
| | | }); |
| | |
| | | }; |
| | | }; |
| | | const handler = ({ addBase }) => { |
| | | const addRawCss = {}; |
| | | for (let index = 1; index < maxOutput; index++) { |
| | | addBase({ |
| | | Object.assign(addRawCss, { |
| | | ...createCss(index, 'x'), |
| | | ...createCss(index, 'y'), |
| | | }); |
| | | } |
| | | |
| | | addBase({ |
| | | ...addRawCss, |
| | | [`@keyframes enter-x-animation`]: { |
| | | to: { |
| | | opacity: '1', |