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) {