2022-11-13 05:34:43 +00:00
|
|
|
import {
|
|
|
|
defineConfig,
|
|
|
|
presetAttributify,
|
|
|
|
presetIcons,
|
|
|
|
presetTypography,
|
|
|
|
presetUno,
|
|
|
|
presetWebFonts,
|
|
|
|
transformerDirectives,
|
|
|
|
transformerVariantGroup,
|
|
|
|
} from 'unocss'
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
shortcuts: [
|
2022-11-23 02:16:31 +00:00
|
|
|
{
|
|
|
|
'border-base': 'border-$c-border',
|
|
|
|
'bg-base': 'bg-$c-bg-base',
|
2022-11-23 04:20:59 +00:00
|
|
|
'bg-active': 'bg-$c-bg-active',
|
2022-11-24 03:42:03 +00:00
|
|
|
'bg-code': 'bg-$c-bg-code',
|
2022-11-23 02:16:31 +00:00
|
|
|
'text-base': 'text-$c-text-base',
|
2022-11-23 07:46:34 +00:00
|
|
|
'text-secondary': 'text-$c-text-secondary',
|
2022-11-23 03:06:56 +00:00
|
|
|
'interact-disabled': 'disabled:opacity-50 disabled:pointer-events-none disabled:saturate-0',
|
2022-11-24 07:53:27 +00:00
|
|
|
'btn-base': 'interact-disabled cursor-pointer',
|
|
|
|
'btn-solid': 'btn-base px-4 py-2 rounded text-white bg-$c-primary hover:bg-$c-primary-active',
|
|
|
|
'btn-outline': 'btn-base px-4 py-2 rounded text-$c-primary border border-$c-primary hover:bg-$c-primary hover:text-white',
|
|
|
|
'btn-text': 'btn-base px-4 py-2 text-$c-primary hover:text-$c-primary-active',
|
|
|
|
'btn-action-icon': 'btn-base hover:bg-active rounded-full h9 w9 flex items-center justify-center',
|
2022-11-23 02:16:31 +00:00
|
|
|
},
|
2022-11-13 05:34:43 +00:00
|
|
|
],
|
|
|
|
presets: [
|
2022-11-14 02:56:48 +00:00
|
|
|
presetUno({
|
|
|
|
attributifyPseudo: true,
|
|
|
|
}),
|
2022-11-13 05:34:43 +00:00
|
|
|
presetAttributify(),
|
|
|
|
presetIcons({
|
|
|
|
scale: 1.2,
|
|
|
|
}),
|
|
|
|
presetTypography(),
|
|
|
|
presetWebFonts({
|
|
|
|
fonts: {
|
|
|
|
sans: 'DM Sans',
|
|
|
|
serif: 'DM Serif Display',
|
|
|
|
mono: 'DM Mono',
|
2022-11-24 02:38:14 +00:00
|
|
|
script: 'Homemade Apple',
|
2022-11-13 05:34:43 +00:00
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
transformers: [
|
|
|
|
transformerDirectives(),
|
|
|
|
transformerVariantGroup(),
|
|
|
|
],
|
2022-11-13 16:05:32 +00:00
|
|
|
theme: {
|
|
|
|
colors: {
|
2022-11-23 14:21:18 +00:00
|
|
|
primary: {
|
|
|
|
DEFAULT: 'var(--c-primary)',
|
|
|
|
active: 'var(--c-primary-active)',
|
|
|
|
},
|
2022-11-13 16:05:32 +00:00
|
|
|
},
|
|
|
|
},
|
2022-11-13 05:34:43 +00:00
|
|
|
})
|