From dbf345a8151abc6cf9b49c4554da1cae3e16cd73 Mon Sep 17 00:00:00 2001 From: hfcRed Date: Sun, 25 Jan 2026 17:32:31 +0100 Subject: [PATCH] Skip size variable for non root themes --- app/root.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/root.tsx b/app/root.tsx index 9f5ab5c30..d3c4686fd 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -364,9 +364,13 @@ function useCustomThemeVars(): React.CSSProperties | undefined { if (data?.customTheme) { const styleObj: Record = {}; + 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; } }