Hangar/frontend-new/windi.config.ts

40 lines
1.0 KiB
TypeScript
Raw Normal View History

2022-02-13 18:56:14 +08:00
import { defineConfig } from "vite-plugin-windicss";
import colors from "windicss/colors";
import typography from "windicss/plugin/typography";
2022-02-13 02:24:05 +08:00
export default defineConfig({
2022-02-13 18:56:14 +08:00
darkMode: "class",
2022-02-13 02:24:05 +08:00
attributify: true,
2022-02-13 18:56:14 +08:00
plugins: [typography()],
2022-02-13 02:24:05 +08:00
theme: {
extend: {
typography: {
DEFAULT: {
css: {
2022-02-13 18:56:14 +08:00
maxWidth: "65ch",
color: "inherit",
2022-02-13 02:24:05 +08:00
a: {
2022-02-13 18:56:14 +08:00
color: "inherit",
opacity: 0.75,
fontWeight: "500",
textDecoration: "underline",
"&:hover": {
2022-02-13 02:24:05 +08:00
opacity: 1,
color: colors.teal[600],
},
},
2022-02-13 18:56:14 +08:00
b: { color: "inherit" },
strong: { color: "inherit" },
em: { color: "inherit" },
h1: { color: "inherit" },
h2: { color: "inherit" },
h3: { color: "inherit" },
h4: { color: "inherit" },
code: { color: "inherit" },
2022-02-13 02:24:05 +08:00
},
},
},
},
},
2022-02-13 18:56:14 +08:00
});