Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions convert/convertStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ export function convertStyles(dataDir: string, configData: ConfigTaskOutput, ver
}
line = line.replace('/fonts', joinUrlPath('$assets', finalPath));
}
// fix CSS color var usage that doesn't use `var(--var)` syntax
const colorMatch = line.match(/color: ((?!var\(--).*Color)/i);
if (colorMatch) {
line = line.replace(colorMatch[1], `var(--${colorMatch[1]})`);
Comment thread
FyreByrd marked this conversation as resolved.
Outdated
}
return line;
})
.join(eol);
Expand Down
Loading