Skip size variable for non root themes

This commit is contained in:
hfcRed 2026-01-25 17:32:31 +01:00
parent 42020fe7bc
commit dbf345a815

View File

@ -364,9 +364,13 @@ function useCustomThemeVars(): React.CSSProperties | undefined {
if (data?.customTheme) {
const styleObj: Record<string, number> = {};
for (const [key, value] of Object.entries(data.customTheme)) {
// Skips size variables for themes that arent the user's own
if (match.id !== "root" && key.includes("--_size")) continue;
styleObj[key] = value;
}
styles = styleObj as React.CSSProperties;
}
}