remix-themes icon indicating copy to clipboard operation
remix-themes copied to clipboard

Allow a 'System' setting as an option

Open abereghici opened this issue 6 months ago • 0 comments

Discussed in https://github.com/abereghici/remix-themes/discussions/21

Originally posted by micotodev March 29, 2023 A lot of websites have Light/Dark and then a 'System' preference (see Tailwind CSS website).

Currently, if the user has chosen a specific colour theme on the website, it will be changed irrespective of their choice when they change their system preference.

Maybe having an extra flag of isSystemPreference: boolean and only set the event listener when that is true would be the best option. We could still set the Theme enum (but with the ability to check for this flag when creating a dropdown of the three values).

abereghici avatar Feb 02 '24 13:02 abereghici