refactor: 悦码项目重构
This commit is contained in:
25
apps/platform/unocss.config.ts
Normal file
25
apps/platform/unocss.config.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import {
|
||||
transformerVariantGroup,
|
||||
transformerDirectives,
|
||||
presetAttributify,
|
||||
defineConfig,
|
||||
presetMini,
|
||||
presetUno,
|
||||
} from 'unocss';
|
||||
|
||||
// https://github.com/unocss/unocss#readme
|
||||
export default defineConfig({
|
||||
presets: [
|
||||
presetMini({ dark: 'class' }),
|
||||
// https://unocss.dev/presets/attributify#properties-conflicts
|
||||
presetAttributify({ prefix: 'un-', prefixedOnly: true }),
|
||||
presetUno(),
|
||||
],
|
||||
transformers: [transformerDirectives(), transformerVariantGroup()],
|
||||
shortcuts: {
|
||||
'wh-full': 'w-full h-full',
|
||||
'flex-ac': 'flex justify-around items-center',
|
||||
'flex-bc': 'flex justify-between items-center',
|
||||
},
|
||||
theme: {},
|
||||
});
|
||||
Reference in New Issue
Block a user