mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 21:33:18 +01:00
33 lines
798 B
TypeScript
33 lines
798 B
TypeScript
import { defineConfig, presetAttributify, presetIcons, presetUno, presetWebFonts } from "unocss";
|
|
|
|
import { presetTypography } from "@unocss/preset-typography";
|
|
import transformerDirectives from "@unocss/transformer-directives";
|
|
|
|
export default defineConfig({
|
|
shortcuts: [[/^circle-(\w+)$/, ([, c]) => `rounded-full bg-${c}500 w-2 h-2 lg:w-3 lg:h-3`]],
|
|
transformers: [transformerDirectives()],
|
|
presets: [
|
|
presetUno(),
|
|
presetAttributify(),
|
|
presetTypography(),
|
|
presetIcons({
|
|
scale: 1.2,
|
|
warn: true,
|
|
}),
|
|
presetWebFonts({
|
|
fonts: {
|
|
sans: "Roboto:200",
|
|
playfair: [
|
|
{
|
|
name: "Playfair Display",
|
|
weights: [100, 200, 400, 700],
|
|
},
|
|
],
|
|
},
|
|
}),
|
|
],
|
|
theme: {
|
|
colors: {},
|
|
},
|
|
});
|