Page MenuHomePhabricator

[SPIKE] Determine community template options for different dark mode proposals
Closed, ResolvedPublic5 Estimated Story Points

Description

Background

We would like to scope out what changes to templates will be needed for each dark mode proposal for providing dark mode to the content of the page

Acceptance criteria

  1. Scope out and draft a plan for template changes necessary if:
  • Content dark mode considers the invert approach
  • Content dark mode considers the theming/CSS variables approach

For each draft, use https://en.wikipedia.org/wiki/Template:POV as a test case
Draft available here: (private while copy-editing)

Event Timeline

Web team discussed this in standup meeting and then Nat, Szymon, Justin and I talked about it in product planning.

Provide a list of the 100 most popular templates across wikis

We discussed that if the intent is to understand which templates are more important to fix, then using popularity is not the right approach. We're not really concerned with templates here, but classes - for example there are thousands of infobox templates which all share the same .infobox class and share the styles and do not work in dark mode and a single fix should address of all of those. Every wiki has its own set of templates so we'd need a project specific list, but even then, it's highly possible that the entire top 100 is dominated by infobox templates.

If impact is the goal I would recommend we add some error instrumentation that logs errors when a problematic template (e.g. inline style) is encountered and log information that helps us locate the template. This should give us an actionable and live list that can help us focus efforts. Another option on the long run is to use Special:LintErrors and focus on the template namespace if we want to present these to editors with clear fixes. We'd probably want to ship this along with the beta feature to support editors identifying and fixing issues.

Scope out and draft a plan for template changes necessary if:

I am working on this with @sgrabarczuk - I have shared the document with you.

For each draft, use https://en.wikipedia.org/wiki/Template:POV as a test case

I've included this in the draft. Is there any reason this template is chosen? It seems like invert would perform the worst out of all possible solutions in this example so if we are trying to convince editors it's a good choice that might not help things :-).

ovasileva updated the task description. (Show Details)
ovasileva set the point value for this task to 5.
ovasileva lowered the priority of this task from High to Medium.Nov 20 2023, 6:34 PM

Is it possible @Jdlrobson to use the following colours in the Patchdemo you made?

This will make the work in T351838 more accurate.

New colours

Background behind text:

gray700
#202122

Text:

gray100
#F8F9FA

Links:

blue300
#6699FF

NB: these are taken from the Android dark theme.

Please let me know if you have any questions!

We need to make a decision on what exactly we present to the community. I'll talk to Olga about getting a task setup for next sprint to finalize this.