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

Support dark / light theme in embed iframes and embed code generation #32134

Open
wolfgang101 opened this issue Sep 27, 2024 · 0 comments
Open
Labels
suggestion Feature suggestion

Comments

@wolfgang101
Copy link

Pitch

  • It would be great if the iframe styling would default to the correct prefer-color-scheme setting of the users browser.
  • Additionally if the embed code blockquote attribute could pass an optional data-theme parameter to allow site owners to enforce a light / dark theme if needed

Found one related issue about light theme which seems outdated: #27981

Motivation

Nowadays the dark / light preference is available and expected on all levels, i.e. desktop pc operating system > browser > website, mobile device os > app

In general the content should respect the users choice and follow their preference. My proposal respects the users preference, while still allowing legacy websites to force either dark or light, if they don't support theme switching yet.

@wolfgang101 wolfgang101 added the suggestion Feature suggestion label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion Feature suggestion
Projects
None yet
Development

No branches or pull requests

1 participant