website/uno.config.ts

50 lines
1.5 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-06 22:38:56 +02:00
"border-neutral": "border-neutral-300 dark:border-neutral-400",
2024-04-03 14:27:48 +02:00
"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)"
},
2024-04-07 00:29:52 +02:00
breakpoints: {
xs: "450px",
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
"2xl": "1536px",
},
2024-03-28 18:30:52 +01:00
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)",
2024-04-06 22:38:56 +02:00
"1000": "var(--neutral-1000)",
2024-03-28 18:30:52 +01:00
},
},
},
})