From 6beba11c67b9dd74e4a62b47411704bcbd3dc764 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sat, 7 Feb 2026 00:01:09 +0800 Subject: [PATCH] fix render color --- libraries/deno-commons-mod.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/deno-commons-mod.ts b/libraries/deno-commons-mod.ts index 1470129..7aae015 100644 --- a/libraries/deno-commons-mod.ts +++ b/libraries/deno-commons-mod.ts @@ -355,7 +355,10 @@ function renderColorTokens(tokens: ColorToken[]): string { const colors: string[] = []; for (const [color, colorStack] of colorMapStack) { if (colorStack.length > 0) { - colors.push(colorCode); + const currentColorCode = COLOR_MAP[color]; + if (currentColorCode) { + colors.push(currentColorCode); + } } } if (colors.length > 0) {