Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21f1b2e1bab1ef0

Jump to content

Module talk:Shindo

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Module talk:Shindo/styles.css)
Latest comment: 1 year ago by Awesome Aasim in topic Dark mode color change

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)Reply

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)Reply

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)Reply