radio4000 / components

web-components to build the r4 interfaces, uses the sdk
https://components.radio4000.com/
1 stars 0 forks source link

Theme switcher #48

Closed oskarrough closed 1 year ago

oskarrough commented 1 year ago

Out of the box we use the default theme, which adapts to light/dark mode.

This is low priority, as we don't really offer more themes for now, but there could be a <r4-theme-select> input that sets your prefered theme on settings.theme (a new table?) in Supabase.

I'd hardcode the themes in the select.

How do we switch between them? <r4-app theme-supermario>? If so, and we want to avoid <r4-app theme-default>, themes would need to overwrite the default theme 🤔 Have to think about something easy for us here.

oskarrough commented 1 year ago

Three options

selecting an option sets the value as data-color-scheme on html and can persist to supabase, if a user is passed in.