2023-04-07 01:36:30 +08:00
|
|
|
import {
|
|
|
|
defineConfig,
|
|
|
|
presetAttributify,
|
|
|
|
presetTypography,
|
|
|
|
presetUno,
|
|
|
|
transformerDirectives,
|
|
|
|
transformerVariantGroup,
|
|
|
|
} from 'unocss';
|
|
|
|
|
2023-08-07 23:30:00 +08:00
|
|
|
import { presetScrollbar } from 'unocss-preset-scrollbar';
|
|
|
|
|
2023-04-07 01:36:30 +08:00
|
|
|
export default defineConfig({
|
2023-08-07 23:30:00 +08:00
|
|
|
presets: [presetUno(), presetAttributify(), presetTypography(), presetScrollbar()],
|
2023-04-07 01:36:30 +08:00
|
|
|
transformers: [transformerDirectives(), transformerVariantGroup()],
|
2023-06-19 06:21:36 +08:00
|
|
|
theme: {
|
|
|
|
colors: {
|
|
|
|
primary: '#1ea54c',
|
2023-11-13 06:22:41 +08:00
|
|
|
|
2023-06-19 06:21:36 +08:00
|
|
|
},
|
|
|
|
},
|
2023-08-07 23:30:00 +08:00
|
|
|
shortcuts: {
|
|
|
|
'pretty-scrollbar': 'scrollbar scrollbar-rounded scrollbar-thumb-color-gray-300 scrollbar-track-color-gray-100 dark:scrollbar-thumb-color-#424242 dark:scrollbar-track-color-#686868',
|
2023-08-10 05:45:21 +08:00
|
|
|
'divider': 'h-1px bg-current op-10',
|
2023-10-15 06:45:14 +08:00
|
|
|
'bg-surface': 'bg-#ffffff dark:bg-#232323',
|
2023-11-13 06:22:41 +08:00
|
|
|
'bg-background': 'bg-#f1f5f9 dark:bg-#1c1c1c',
|
2023-08-07 23:30:00 +08:00
|
|
|
},
|
2023-04-07 01:36:30 +08:00
|
|
|
});
|