webcompile/uno.config.ts

52 lines
963 B
TypeScript
Raw Normal View History

2022-08-08 19:01:34 +03:00
import {
defineConfig,
presetIcons,
presetTypography,
transformerVariantGroup,
transformerDirectives,
presetWind
} from "unocss";
import { extractorSvelte } from "unocss";
export default defineConfig({
extractors: [extractorSvelte],
presets: [
presetIcons(),
presetWind({
dark: "class"
2023-01-25 19:11:11 +02:00
}),
presetTypography()
2022-08-08 19:01:34 +03:00
],
2023-01-25 19:11:11 +02:00
transformers: [transformerVariantGroup(), transformerDirectives()],
safelist: ["i-ic:outline-dark-mode", "i-ic:outline-light-mode"],
2022-12-27 17:28:47 +02:00
theme: {
fontFamily: {
primary: ["var(--font-primary)"]
},
colors: {
accent: "var(--accent)",
accentTranslucent: "var(--accent-translucent)",
primary: "var(--primary)",
secondary: "var(--secondary)",
tertiary: "var(--tertiary)",
text: "var(--text)",
grey: "var(--grey)",
alt: "var(--alt)",
altText: "var(--alt-text)"
},
breakpoints: {
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
"2xl": "1536px",
2023-01-07 19:29:58 +02:00
nav: "1090px"
2022-12-27 17:28:47 +02:00
}
2023-01-25 19:11:11 +02:00
}
2023-02-03 19:55:33 +02:00
});