uep
March 6, 2024, 10:08am
1
I loaded search.nixos.org today, and wasn’t blinded by the glare! Thankyou so much @zebreus
NixOS:main
← zebreus:darkmode
opened 03:53PM - 04 Mar 24 UTC
This PR adds a dark theme that is activated if the user has [`prefers-color-sche… me`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme) set to dark. The light theme is unchanged, the dark theme has some minor UI tweaks, to make it look better with a darker color scheme. The dark theme also does not have color gradients on some buttons, because I do not like them.
You can try nixos-search with darkmode at [search.wirs.ing](https://search.wirs.ing/).
## Screenshots
Some comparison screenshots between dark and light mode
### Package search


### Option search


### Flakes search


## Remarks
I had to actively fight the ancient bootstrap stylesheet we are using for styling some things. The bootstrap stylesheet is imported from nixos.org but I am pretty sure that it has not been used there for multiple years. As a consequence the CSS here is quite hacky, but we should probably rework the entire design anyways at some point in the future (related issue #286). For now this should be fine.
This PR will resolve #554
27 Likes
I also used search.nixos.org today, and felt that something was different even though I couldn’t place what it was. Now I know! Thanks for this welcome change