Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow force light / dark theme in WebApp #26

Open
bshelkhonov opened this issue May 21, 2024 · 0 comments
Open

Allow force light / dark theme in WebApp #26

bshelkhonov opened this issue May 21, 2024 · 0 comments

Comments

@bshelkhonov
Copy link
Contributor

My Telegram MiniApp supports only light theme.
I set appearance="light" in AppRoot.

<AppRoot platform="base" appearance="light">
     <MyApp />
</AppRoot>

but when I open my app in Telegram on device with dark mode, components are dark because --tgui--bg_color defined as --tg-theme-bg-color:

--tgui--bg_color: var(--tg-theme-bg-color, #FFFFFF);

Can you add an option to force light or dark theme in my app by ignoring css variables from telegram miniapps api?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant