From b4506130f9405cf61538e639fe9b0306f5372c17 Mon Sep 17 00:00:00 2001 From: Niklas Choinowski Date: Tue, 18 Mar 2025 21:03:59 +0100 Subject: [PATCH] fix: use current value instead of initial to not override already set settings Co-Authored: @PhoenixGamer339 --- src/scss/style.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scss/style.ts b/src/scss/style.ts index 6248517..3e09483 100644 --- a/src/scss/style.ts +++ b/src/scss/style.ts @@ -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};`);