From 54ee73d9e50b07348d38d03a63e404337d0a9321 Mon Sep 17 00:00:00 2001 From: Samidy Date: Sat, 1 Nov 2025 13:24:14 +0300 Subject: [PATCH] fix mayhaps? --- unocss.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unocss.config.ts b/unocss.config.ts index 5c15a2253..446a0fec3 100644 --- a/unocss.config.ts +++ b/unocss.config.ts @@ -39,7 +39,7 @@ const colorScales = [ '950' ] as const -const colorPattern = Object.keys(colors).join('|') +const colorPattern = Object.keys(extendedColors).join('|') const createColorRules = (type: 'text' | 'bg' | 'border'): Rule[] => { const property = type === 'text' @@ -52,7 +52,7 @@ const createColorRules = (type: 'text' | 'bg' | 'border'): Rule[] => { (scale) => [ new RegExp(`^${type}-(${colorPattern})-${scale}$`), - ([, color]) => ({ [property]: colors[color][scale] }) + ([, color]) => ({ [property]: extendedColors[color][scale] }) ] as const ) } @@ -63,7 +63,7 @@ export default defineConfig({ }, theme: { colors: { - ...colors, + ...extendedColors, primary: 'var(--vp-c-brand-1)', bg: 'var(--vp-c-bg)', 'bg-alt': 'var(--vp-c-bg-alt)',