diff --git a/packages/nicolium/src/hooks/use-theme-css.ts b/packages/nicolium/src/hooks/use-theme-css.ts index 71cf725a3..e108a7bb0 100644 --- a/packages/nicolium/src/hooks/use-theme-css.ts +++ b/packages/nicolium/src/hooks/use-theme-css.ts @@ -78,7 +78,7 @@ const useThemeCss = (overwriteConfig?: FrontendConfig) => { let baseTheme: Partial; if (overwriteConfig) baseTheme = overwriteConfig; else if (demo) baseTheme = {}; - else baseTheme = theme ?? frontendConfig; + else baseTheme = { ...frontendConfig, ...theme }; const colors = normalizeColors(baseTheme);