-
Notifications
You must be signed in to change notification settings - Fork 193
/
unocss.config.js
33 lines (30 loc) · 1 KB
/
unocss.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import transformerDirectives from '@unocss/transformer-directives'
import { presetShades } from '@viarotel-org/unocss-preset-shades'
import { defineConfig, presetWind } from 'unocss'
import { primaryColor } from './src/configs/index.js'
const presetMain = presetWind()
const presets = [presetMain, presetShades(primaryColor)]
export default defineConfig({
// @ts-expect-error
presets,
transformers: [transformerDirectives()],
theme: {
colors: {
// @ts-expect-error
gray: presetMain?.theme?.colors?.neutral,
},
boxShadow: {
'el': 'var(--el-box-shadow)',
'el-light': 'var(--el-box-shadow-light)',
'el-lighter': 'var(--el-box-shadow-lighter)',
'el-dark': 'var(--el-box-shadow-dark)',
},
},
shortcuts: {
'inset-0': 'top-0 bottom-0 left-0 right-0',
'inset-center':
'top-1/2 left-1/2 transform -translate-y-1/2 -translate-x-1/2',
'top-center': 'top-1/2 transform -translate-y-1/2',
'left-center': 'left-1/2 transform -translate-x-1/2',
},
})