website/uno.config.ts

41 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-03-28 18:30:52 +01:00
// 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"],
2024-04-03 14:27:48 +02:00
"border-neutral": "border-neutral-300 dark:border-neutral-1000",
"border-light": "border-neutral-100 dark:border-neutral-500",
2024-03-28 18:30:52 +01:00
"divide-x-neutral": ['divide-x-neutral-300', "dark:divide-x-neutral-1000"],
2024-04-03 16:18:30 +02:00
"gradient": "bg-gradient-to-br from-neutral-000 to-neutral-000 dark:from-neutral-500 dark:to-neutral-800",
2024-03-28 18:30:52 +01:00
},
theme: {
borderRadius: {
"md": "20px",
"diag-md": "0px var(--border-radius-md) 0px var(--border-radius-md)"
},
colors: {
neutral: {
2024-04-03 14:27:48 +02:00
"000": "var(--neutral-000)",
2024-03-28 18:30:52 +01:00
"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)",
},
},
},
})