FMHYedit/unocss.config.ts

40 lines
843 B
TypeScript
Raw Normal View History

2024-03-08 12:58:01 +00:00
import {
defineConfig,
presetUno,
presetAttributify,
presetIcons,
transformerDirectives
} from 'unocss'
2024-03-07 17:48:21 +00:00
import { colors, shortcuts } from '@fmhy/colors'
2024-01-04 08:08:55 +00:00
export default defineConfig({
content: {
filesystem: ['.vitepress/config.mts', '.vitepress/constants.ts']
},
2024-01-04 08:08:55 +00:00
theme: {
colors: {
2024-03-08 12:58:01 +00:00
...colors,
2024-01-25 16:32:45 +00:00
primary: 'var(--vp-c-brand-1)',
bg: 'var(--vp-c-bg)',
'bg-alt': 'var(--vp-c-bg-alt)',
'bg-elv': 'var(--vp-c-bg-elv)',
text: 'var(--vp-c-text-1)',
'text-2': 'var(--vp-c-text-2)',
div: 'var(--vp-c-divider)'
}
2024-01-04 08:08:55 +00:00
},
2024-03-07 17:48:21 +00:00
shortcuts,
2024-01-04 08:08:55 +00:00
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
extraProperties: {
2024-01-25 16:32:45 +00:00
display: 'inline-block',
'vertical-align': 'middle'
}
})
2024-03-08 12:58:01 +00:00
],
transformers: [transformerDirectives()]
2024-01-25 16:32:45 +00:00
})