Files
seewis-hsl-ui/uno.config.ts
T

27 lines
700 B
TypeScript
Raw Normal View History

2026-03-09 12:38:13 +08:00
import { defineConfig, transformerDirectives, transformerVariantGroup, presetWind3 } from 'unocss';
2023-11-17 08:45:00 +08:00
import { presetSoybeanAdmin } from '@sa/uno-preset';
import { themeVars } from './src/theme/vars';
2022-04-22 12:26:11 +08:00
2026-03-09 12:38:13 +08:00
export default defineConfig({
content: {
pipeline: {
2023-11-17 08:45:00 +08:00
exclude: ['node_modules', 'dist']
}
},
2022-04-22 12:26:11 +08:00
theme: {
2023-11-17 08:45:00 +08:00
...themeVars,
fontSize: {
'icon-xs': '0.875rem',
'icon-small': '1rem',
icon: '1.125rem',
'icon-large': '1.5rem',
'icon-xl': '2rem'
}
2023-11-17 08:45:00 +08:00
},
shortcuts: {
'card-wrapper': 'rd-8px shadow-sm'
},
2023-11-17 08:45:00 +08:00
transformers: [transformerDirectives(), transformerVariantGroup()],
presets: [presetWind3({ dark: 'class' }), presetSoybeanAdmin()]
2022-04-22 12:26:11 +08:00
});