From 8fd770732148087b0c05bd7f92114afff3d94c43 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Tue, 11 Nov 2025 09:21:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8presetLegacyCompat=E4=B8=AD?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0legacyColorSpace=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uno.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uno.config.ts b/uno.config.ts index 2c0c158..7a2f94c 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -54,6 +54,8 @@ export default defineConfig({ // `rgba(255 0 0 / 0.5)` -> `rgba(255, 0, 0, 0.5)` presetLegacyCompat({ commaStyleColorFunction: true, + legacyColorSpace: true, // by QQ4群-量子蔷薇 + // @菲鸽 unocss 配置中,建议在 presetLegacyCompat 中添加 legacyColorSpace: true,以去除生成的颜色样式中的 in oklch 关键字,现在发现有些渐变色生成不符合预期 }) as Preset, ], transformers: [