summaryrefslogtreecommitdiff
path: root/uno.config.js
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-24 17:09:26 +0800
committerEltrac <hi@guhub.cn>2025-07-24 17:09:26 +0800
commitc476bb450e62fd7cb8bdf22d45c4422f92c1cc8f (patch)
tree87a9cb71740f8c89a1365545193177711bd40f92 /uno.config.js
parent6919c72d9e20a41575fecf1828d414fd02519ceb (diff)
refactor: replace some utility classes with UnoCSS
Diffstat (limited to 'uno.config.js')
-rw-r--r--uno.config.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/uno.config.js b/uno.config.js
index 53f2ec13..c7a6c1d8 100644
--- a/uno.config.js
+++ b/uno.config.js
@@ -1,4 +1,4 @@
-import { defineConfig, presetWind3, presetAttributify } from 'unocss'
+import { defineConfig, presetWind3, presetAttributify, presetWebFonts } from 'unocss'
const range = (n, fn) => Array.from({ length: n }, (_, i) => fn(i));
@@ -16,13 +16,18 @@ export default defineConfig({
presetAttributify(),
presetWind3({
dark: 'media'
- }),
+ })
],
theme: {
colors: {
blockBg: 'var(--block-background-color)',
bg: 'var(--background-color)',
- textColor: 'var(--text-color)'
+ textColor: 'var(--text-color)',
+ secondary: 'var(--secondary-text-color)'
+ },
+ fontFamily: {
+ mono: ["Courier New", "Courier", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Lucida Console"],
+ serif: ["Noto Serif", "Noto Serif SC", "serif"],
}
},
shortcuts: {