feat: 在presetLegacyCompat中添加legacyColorSpace支持

This commit is contained in:
feige996
2025-11-11 09:21:10 +08:00
parent d870dc1b85
commit 8fd7707321

View File

@@ -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: [