diff --git a/dapp/.env b/dapp/.env new file mode 100644 index 000000000..5e5ec0fb7 --- /dev/null +++ b/dapp/.env @@ -0,0 +1 @@ +VITE_SUPPORT_THEME_MODE=false \ No newline at end of file diff --git a/dapp/src/theme/utils/utils.ts b/dapp/src/theme/utils/utils.ts index 2f60e1c7a..177bc8fc9 100644 --- a/dapp/src/theme/utils/utils.ts +++ b/dapp/src/theme/utils/utils.ts @@ -1,7 +1,7 @@ // For the ledger live app, we should detect the theme set for the user. export function getThemeConfig(theme: string | null) { return { - initialColorMode: theme, + initialColorMode: import.meta.env.VITE_SUPPORT_THEME_MODE === "true" ? theme : "light", useSystemColorMode: false, } } \ No newline at end of file