fix: use current value instead of initial to not override already set settings
Co-Authored: @PhoenixGamer339
This commit is contained in:
@@ -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};`);
|
||||
|
||||
Reference in New Issue
Block a user