webxdc / webxdc-dev

A development server for webxdc apps
The Unlicense
21 stars 4 forks source link

feat: Dark mode #56

Open ansuz opened 4 months ago

ansuz commented 4 months ago

I am considering trying to implement a basic dark mode, but wanted to make sure there was not any pending work in progress before starting.

hpk42 commented 4 months ago

On Tue, Jul 30, 2024 at 08:58 -0700, ansuz wrote:

I am considering trying to implement a basic dark mode, but wanted to make sure there was not any pending work in progress before starting.

no other dark mode work i know off. (FWIW i used to have black screen green cursor setups in the early days but then switched to light background, black foreground like 2 decades ago and never looked back)

WofWca commented 4 months ago

FYI since there is not a lot of styling, you can start by adding <meta name="color-scheme" content="dark light"> to <head>. This will use dark colors for the elements that have default browser styles as long as the user prefers dark theme.