17 changed files with 3075 additions and 1425 deletions
@ -1,5 +1,6 @@ |
|||||
module.exports = { |
module.exports = { |
||||
plugins: { |
plugins: { |
||||
|
tailwindcss: {}, |
||||
autoprefixer: {}, |
autoprefixer: {}, |
||||
}, |
}, |
||||
}; |
}; |
||||
|
|||||
File diff suppressed because it is too large
@ -1,35 +1,41 @@ |
|||||
import lineClamp from 'windicss/plugin/line-clamp'; |
const colors = require('tailwindcss/colors'); |
||||
import colors from 'windicss/colors'; |
|
||||
|
|
||||
import { defineConfig } from 'vite-plugin-windicss'; |
module.exports = { |
||||
import { primaryColor } from './build/config/themeConfig'; |
mode: 'jit', |
||||
|
// darkMode: 'class',
|
||||
export default defineConfig({ |
plugins: [createEnterPlugin()], |
||||
darkMode: 'class', |
purge: { |
||||
plugins: [lineClamp, createEnterPlugin()], |
enabled: false, |
||||
|
content: ['./index.html', './src/**/*.{vue,ts,tsx}'], |
||||
|
}, |
||||
theme: { |
theme: { |
||||
extend: { |
extend: { |
||||
colors: { |
zIndex: { |
||||
...colors, |
'-1': '-1', |
||||
primary: primaryColor, |
|
||||
}, |
}, |
||||
screens: { |
}, |
||||
sm: '576px', |
colors: { |
||||
md: '768px', |
...colors, |
||||
lg: '992px', |
primary: { |
||||
xl: '1200px', |
DEFAULT: '#0960bd', |
||||
'2xl': '1600px', |
// dark: primaryColorDark,
|
||||
}, |
}, |
||||
}, |
}, |
||||
|
screens: { |
||||
|
sm: '576px', |
||||
|
md: '768px', |
||||
|
lg: '992px', |
||||
|
xl: '1200px', |
||||
|
'2xl': '1600px', |
||||
|
}, |
||||
}, |
}, |
||||
}); |
}; |
||||
|
|
||||
/** |
/** |
||||
* Used for animation when the element is displayed |
* Used for animation when the element is displayed |
||||
* @param maxOutput The larger the maxOutput output, the larger the generated css volume |
* @param maxOutput The larger the maxOutput output, the larger the generated css volume |
||||
*/ |
*/ |
||||
function createEnterPlugin(maxOutput = 10) { |
function createEnterPlugin(maxOutput = 6) { |
||||
const createCss = (index: number, d = 'x') => { |
const createCss = (index, d = 'x') => { |
||||
const upd = d.toUpperCase(); |
const upd = d.toUpperCase(); |
||||
return { |
return { |
||||
[`*> .enter-${d}:nth-child(${index})`]: { |
[`*> .enter-${d}:nth-child(${index})`]: { |
||||
File diff suppressed because it is too large
Loading…
Reference in new issue