diff --git a/src/scss/style.ts b/src/scss/style.ts index 3e09483..80da46d 100644 --- a/src/scss/style.ts +++ b/src/scss/style.ts @@ -55,14 +55,14 @@ async function extractMatugenizedVariables(matugenColors: MatugenColors): Promis continue; } - const initialValue = opt.value ?? opt.initial; + const value = opt.value; - if (!isHexColor(initialValue) && matugenColors !== undefined) { - result.push(`$${name.replace('theme.', '').split('.').join('-')}: ${initialValue};`); + if (!isHexColor(value) && matugenColors !== undefined) { + result.push(`$${name.replace('theme.', '').split('.').join('-')}: ${value};`); continue; } - const matugenColor = getMatugenHex(initialValue as HexColor, matugenColors); + const matugenColor = getMatugenHex(value as HexColor, matugenColors); result.push(`$${name.replace('theme.', '').split('.').join('-')}: ${matugenColor};`); }