fix render color

This commit is contained in:
2026-02-07 00:01:09 +08:00
parent 6fdc8b61d1
commit 6beba11c67

View File

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