Spaces:
Running
Running
Support dark mode from the OS color scheme
#5
by niekb - opened
Dark mode
Follows the OS/browser setting via prefers-color-scheme: dark; light stays the default.
static/styles.cssonly. Adds a dark palette that overrides the existing CSS variables, and moves the hardcoded greys, link and notice colors into variables so they switch too.color-scheme: light darkso native controls (select, scrollbars) match.- No JS changes.
Not checked visually yet. Please preview with the OS in dark mode. This follows the OS, not the Hub's theme toggle: the Space is embedded in an iframe, so the Hub toggle does not reach it.
niekb changed pull request status to open
niekb changed pull request status to merged