vehicle-monitor/uno.config.ts

43 lines
1.0 KiB
TypeScript

import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss';
export default defineConfig({
shortcuts: {
'flex-center': 'flex justify-center items-center',
'flex-x-between': 'flex items-center justify-between',
'flex-x-around': 'flex items-center justify-around',
'flex-y-center': 'flex flex-col flex-wrap justify-center items-center',
'flex-y-between': 'flex flex-col flex-wrap justify-between items-center',
'flex-y-around': 'flex flex-col flex-wrap justify-around items-center',
},
theme: {
colors: {
primary: '#027AFF',
'primary-secondary': '#00FFFF',
info: '#7CC1FF',
warning: '#FFBE44',
'warning-secondary': '#FEDB65',
},
},
presets: [
presetUno(),
presetAttributify(),
presetIcons(),
presetTypography(),
presetWebFonts({
fonts: {
// ...
},
}),
],
transformers: [transformerDirectives(), transformerVariantGroup()],
});