-
Notifications
You must be signed in to change notification settings - Fork 1
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
Dark mode #200
Comments
We decided to put this on hold until Bootstrap adds support for this (likely in v6). Without it we cannot, for example, do this: :root {
--link-color: blue;
}
@media (prefers-color-scheme: dark) {
:root {
--link-color: red;
}
}
$link-color: var(--link-color); because then
|
Here's the list of colours used in the UI and their assignment per components, in light theme and dark theme (WIP). See Google Material Design Color system for terminology. Comparison between Light and dark theme.pdf BELOW tables are updated. Light theme:
Dark theme:
|
In case it helps, here are all the existing uses of Bootstrap's theme colors.
|
Yes, apparently that is Chrome/Chromium's autocomplete feature. I managed to style it using this hack. |
* [#200] Brute force dark mode. * [#200] Add dark mode for toasts. * [#200] Add dark mode to Select2-Bootstrap5. * [#200] Tweak navbar shade in dark mode. * [#200] Stop using the -light qualifiers. * [#200] Remove competing CSS classes. * [#200] Introduce complementary shades. * [#200] Use complementary shades in main.css. * [#200] Adapt EasyMDE to dark mode. * [#200] Finish using the complementary shades var(--c-...). * [#200] Use color-scheme meta tag. * [#200] Fix toast vertical spacing. * [#200] Add a Javascript dark mode toggle. * [#200] Fix verdict colors. * [#200] Remove unused Bootstrap components. * [#200] Remove unused theme colors. * [#200] Fix for navbar butter color. * [#200] Bootstrap theme for dark mode, v0.1. * [#200] Convert some colors to the BS gray scale. * [#200] Dark mode as a difference between Bootstrap themes. * [#200] Minor fixes. * [#200] Select2 tweaks. * [#200] Proper Select2 theming. Other minor fixes. * [#200] Remove some uses of var(--c-xxx). * [#200] Rewrite grayscale as HSL. * [#200] main.css tweaks. * [#200] Finish moving theme stuff into main-{light,dark}.scss. * [#200] Fix main page glitch. * [#200] EasyMDE button hover color. * [#200] Verdict colors for dark mode. * [#200] Fix verdict border and color. * [Fixes #286] Add label to blank <option>. * Rebase dark-mode onto master. * [#200] Implement our own alerts. * [#200] Fix user link CSS. * [#200] Horrible horrible hack for Chrome's autocomplete style. * [#200] Replace uses of the BS warning theme color.
I changed 3 colours in the Dark theme and 1 colour in the Light theme, see below PDFs: Comparison between Light and dark theme - v2.pdf |
Because one can never have enough glitter! See for example Duck Duck Go, which obeys the browser's dark mode setting.
See prefers-color-scheme.
The text was updated successfully, but these errors were encountered: