archweb
archweb copied to clipboard
Refactor CSS colours
CSS colours are refactored into CSS variables. And because CSS variables make it ludicrously easy to implement prefers-color-scheme support, there's a dark palette too.
Light:
Dark:
The dark theme option is nice, but plenty of colors are subtly changed CSS color definitions which makes it a lot of work for me to check the PR.
ping
@pontaoski can you update the PR to make the light-color palette identical to the current colors?
For example, in #archnavbarlist li a
you replace #999
with var(--on-header-color)
which is defined as --on-header-color: #f9ffff
, and in #archnavbar
you replace #08c
with var(--arch-blue)
which is defined as --arch-blue: #1793D1;
.
Having official dark-mode support would be awesome!
The dark theme option is nice, but plenty of colors are subtly changed CSS color definitions which makes it a lot of work for me to check the PR.
changed the colour palette to be closer to the current website. all that's really changed now is all the subtly different border colours within #bbb-#ccc being refactored into a single --borders variable/colour.
Oh, this would be nice!
Will these changes be made? They could honestly probably be made by maintainers if @pontaoski doesn't return.
bump
This would be great to see, at the very least with a toggle.
okay we need this, i like not getting flashed by arch wiki
okay we need this, i like not getting flashed by arch wiki
If you need it, this is where to contribute https://gitlab.archlinux.org/archlinux/archlinux-common-style/-/issues/5