catppuccin / userstyles

🖌 Soothing pastel theme for Userstyles
MIT License
371 stars 109 forks source link

fix(go.dev): adjust dark/light application selectors #1035

Closed uncenter closed 3 days ago

uncenter commented 3 days ago

🔧 What does this fix? 🔧

Sometimes the data-theme attribute doesn't exist, like if it is your first time visiting the website. This adjusts the theme application selectors to use prefers-color-scheme if there is no attribute set, as if data-theme="auto".

🗒 Checklist 🗒

uncenter commented 3 days ago

FYI for userstyles you maintain, you have the responsibility of merging PRs once you've approved them (see https://github.com/catppuccin/userstyles/blob/main/docs/CONTRIBUTING.md#pull-request-review-process) :)