website/uno.config.ts
2024-04-03 16:18:30 +02:00

41 lines
1.3 KiB
TypeScript

// uno.config.ts
import { defineConfig, presetUno } from 'unocss'
import presetIcons from '@unocss/preset-icons'
export default defineConfig({
presets: [
presetUno(),
presetIcons(),
],
shortcuts: {
"bg-dark": ['bg-neutral-000', "dark:bg-neutral-800"],
"bg": ['bg-neutral-000', "dark:bg-neutral-500"],
"bg-light": ['bg-neutral-100', "dark:bg-neutral-400"],
"text-neutral": ['text-neutral-900', "dark:text-neutral-100"],
"border-neutral": "border-neutral-300 dark:border-neutral-1000",
"border-light": "border-neutral-100 dark:border-neutral-500",
"divide-x-neutral": ['divide-x-neutral-300', "dark:divide-x-neutral-1000"],
"gradient": "bg-gradient-to-br from-neutral-000 to-neutral-000 dark:from-neutral-500 dark:to-neutral-800",
},
theme: {
borderRadius: {
"md": "20px",
"diag-md": "0px var(--border-radius-md) 0px var(--border-radius-md)"
},
colors: {
neutral: {
"000": "var(--neutral-000)",
"100": "var(--neutral-100)",
"200": "var(--neutral-200)",
"300": "var(--neutral-300)",
"400": "var(--neutral-400)",
"500": "var(--neutral-500)",
"600": "var(--neutral-600)",
"700": "var(--neutral-700)",
"800": "var(--neutral-800)",
"900": "var(--neutral-900)",
},
},
},
})