escrcpy/unocss.config.js

34 lines
1.0 KiB
JavaScript
Raw Normal View History

2024-03-05 08:40:58 +01:00
import { defineConfig, presetWind } from 'unocss'
2024-03-05 08:12:27 +01:00
import transformerDirectives from '@unocss/transformer-directives'
import { presetShades } from '@viarotel-org/unocss-preset-shades'
import { primaryColor } from './src/configs/index.js'
2024-03-05 08:12:27 +01:00
const presetMain = presetWind()
const presets = [presetMain, presetShades(primaryColor)]
2024-03-05 08:12:27 +01:00
export default defineConfig({
2024-03-05 08:40:58 +01:00
// @ts-expect-error
2024-03-05 08:12:27 +01:00
presets,
transformers: [transformerDirectives()],
theme: {
2024-03-05 08:40:58 +01:00
colors: {
// @ts-expect-error
gray: presetMain?.theme?.colors?.neutral,
},
2024-03-05 08:12:27 +01:00
boxShadow: {
2024-03-05 08:40:58 +01:00
'el': 'var(--el-box-shadow)',
2024-03-05 08:12:27 +01:00
'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',
2024-07-24 13:06:34 +02:00
'top-center': 'top-1/2 transform -translate-y-1/2',
'left-center': 'left-1/2 transform -translate-x-1/2',
2024-03-05 08:12:27 +01:00
},
})