From c476bb450e62fd7cb8bdf22d45c4422f92c1cc8f Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 24 Jul 2025 17:09:26 +0800 Subject: refactor: replace some utility classes with UnoCSS --- uno.config.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'uno.config.js') 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: { -- cgit v1.2.3