Module talk:Shindo
Appearance
(Redirected from Module talk:Shindo/styles.css)
Still alpha?
[edit]Is the "alpha" rating for this module still appropriate? It appears to conflict with the template's use in over 1,000 articles. – Jonesey95 (talk) 22:12, 1 October 2024 (UTC)
Dark mode color change
[edit]In light of Awesome Aasim's recent edits to add compatibility for dark mode, I wanted to discuss them as there was no previous mention I could find of it. The colors look incredibly unsaturated on light mode, and since this template controls every single earthquake intensity scale's template, I undid the revision so there could be a discussion of it first. I personally am not a fan, but I wanted to start a conversation to see how best to implement it, if at all.
Thanks, SamBroGaming (talk) 00:19, 23 June 2025 (UTC)
- Hi, yes. I developed a module that essentially "unblends" colors by computing its corresponding hue and then determining alpha transparency to reblend them together. I created that module for a different reason, that some inline styles like those use on WP:EW originally specified opaque colors which are not dark mode friendly.
- The issue I was running into was with regards to "unmixing" some of the darker colors. Also there isn't a way to specify "opposite, actually" when it is needed to invert the text color which means that on dark mode some elements would become unreadable. I wanted to make sure I preserved web accessibility even if it comes at the expense of slightly less saturated colors when expanding to dark mode.
- A more proper solution probably would be the extensive use of templatestyles. But that would require specifying two different colors to specify for each cell item. Hence why I sought to instead cut the alpha transparency in half.
- But the permanent temporary solution would probably be to probably "unmix" black as well which would allow darker colors more prominent in light mode to retain the same prominence in dark mode. Aasim (話す) 01:21, 23 June 2025 (UTC)