webcompile/uno.config.ts

61 lines
1.1 KiB
TypeScript
Raw Normal View History

2022-08-08 21:31:34 +05:30
import {
defineConfig,
presetIcons,
presetTypography,
transformerVariantGroup,
transformerDirectives,
presetWind
} from "unocss";
import { extractorSvelte } from "unocss";
export default defineConfig({
extractors: [extractorSvelte],
presets: [
presetIcons(),
2023-01-02 00:20:51 +05:30
presetTypography({
cssExtend: {
"h1,h2,h3,h4,h5,h6": {
"font-weight": "800"
}
}
}),
2022-08-08 21:31:34 +05:30
presetWind({
dark: "class"
})
],
2022-12-27 20:58:47 +05:30
theme: {
fontFamily: {
primary: ["var(--font-primary)"]
},
margin: {
"0-auto": "0 auto"
},
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 22:59:58 +05:30
nav: "1090px"
2022-12-27 20:58:47 +05:30
}
},
2022-09-16 19:35:27 +05:30
transformers: [transformerVariantGroup(), transformerDirectives()],
safelist: ["i-ic:outline-dark-mode", "i-ic:outline-light-mode"]
2022-08-12 16:45:39 +05:30
});