mirror of
https://github.com/fmhy/edit.git
synced 2026-01-18 01:41:52 +11:00
chore: simplify configs
This commit is contained in:
parent
57b8152f8d
commit
a3e889ff8a
3 changed files with 104 additions and 102 deletions
26
unocss.config.ts
Normal file
26
unocss.config.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import { defineConfig, presetUno, presetAttributify, presetIcons } from "unocss";
|
||||
|
||||
export default defineConfig({
|
||||
theme: {
|
||||
colors: {
|
||||
primary: "var(--vp-c-brand-1)",
|
||||
bg: "var(--vp-c-bg)",
|
||||
"bg-alt": "var(--vp-c-bg-alt)",
|
||||
"bg-elv": "var(--vp-c-bg-elv)",
|
||||
text: "var(--vp-c-text-1)",
|
||||
"text-2": "var(--vp-c-text-2)",
|
||||
div: "var(--vp-c-divider)",
|
||||
},
|
||||
},
|
||||
presets: [
|
||||
presetUno(),
|
||||
presetAttributify(),
|
||||
presetIcons({
|
||||
scale: 1.2,
|
||||
extraProperties: {
|
||||
display: "inline-block",
|
||||
"vertical-align": "middle",
|
||||
},
|
||||
}),
|
||||
],
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue