monome / maiden

web based editor and repl for norns
GNU General Public License v3.0
47 stars 33 forks source link

consider using css custom properties across style sheets #172

Closed ngwese closed 2 years ago

ngwese commented 4 years ago

There are many places in the existing CSS code where color values are duplicated. It would be worth collecting these up as CSS properties. https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties

ryanlaws commented 4 years ago

Hopefully this is a stupid question - do we need IE support? Because per the MDN link, it looks like CSS custom properties are not a thing in IE. I don't expect this to really be an issue for the norns user base but I figured it better to ask than assume :wink:

ngwese commented 4 years ago

I don't think we need IE support... It seems safe to assume modern Windows with Edge, Firefox, or Chrome.

dansimco commented 2 years ago

Centralised css colour variables in #215 . I tried to match existing colours as close as possible while cleaning up a bit of fragmentation so it it was low-contrast before, it still is in my PR.

ngwese commented 2 years ago

closing this out thanks to @dansimco‘s work on a proper dark mode