fix: use current value instead of initial to not override already set settings

Co-Authored: @PhoenixGamer339
This commit is contained in:
Niklas Choinowski
2025-03-18 21:03:59 +01:00
parent a4e9a99f82
commit b4506130f9

View File

@@ -55,7 +55,7 @@ async function extractMatugenizedVariables(matugenColors: MatugenColors): Promis
continue;
}
const initialValue = opt.initial;
const initialValue = opt.value ?? opt.initial;
if (!isHexColor(initialValue) && matugenColors !== undefined) {
result.push(`$${name.replace('theme.', '').split('.').join('-')}: ${initialValue};`);