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

Chameleon 4.0 #36

Open
guoyunhe opened this issue Nov 2, 2020 · 1 comment
Open

Chameleon 4.0 #36

guoyunhe opened this issue Nov 2, 2020 · 1 comment
Assignees

Comments

@guoyunhe
Copy link
Collaborator

guoyunhe commented Nov 2, 2020

We will solve the dark/light mode issue in a better way.

In Chameleon 3.0, we compile dark and light mode in a single CSS. It brought some issues that make site adoption hard:

  1. You cannot disable dark mode. We have sites like shop.opensuse.org and progress.opensuse.org that don't support dark mode and we don't have enough resource to hack the code.
  2. You cannot manually switch dark/light mode.
  3. The dark mode doesn't look as perfect as the light mode. Only a few components have dark mode optimization.

In Chameleon 4.0, this will be changed. We will compile two different CSS: chameleon-dark.css and chameleon-light.css.

  1. You can disable dark mode by choosing which CSS to link in your HTML.
  2. You can manually switch dark/light mode by toggling CSS URL on server side (PHP/Ruby/Python) or client side (JavaScript).
  3. The dark mode will look more comfortable if we use only variables for theming, instead of override CSS.

Bootstrap 5 will add official support for dark/light mode. However, it won't come soon.

Some other improvements:

  1. Migrate build tools to webpack
  2. Upgarde to Bootstrap 5, and remove jQuery dependency
  3. Add RTL support

CC @hellcp

@guoyunhe guoyunhe self-assigned this Nov 2, 2020
@guoyunhe guoyunhe pinned this issue Feb 15, 2021
@hellcp
Copy link
Member

hellcp commented Oct 26, 2022

So Bootstrap 5 is around and we may want to switch some of our web apps to it, would it be possible to create a theme for it?

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

2 participants