Page MenuHomePhabricator

Timeless should use Codex design tokens
Open, Needs TriagePublicFeature

Description

Feature summary:
Despite the availability of Codex design tokens, they do not see widespread adoption on other skins. Timeless could be converted from hardcoding colors in CSS stylesheets to using Codex design tokens to make downstream customization easier.

Use case(s):
Customizing the colors on the Timeless skin is significantly more difficult than Vector 2022 or Citizen due to the lack of color variables. Codex will make changes in this direction a lot easier.

Benefits:
The skin will get a most consistent look and become more maintainable (though I doubt many are still interested in maintaining the skin at this point). Downstream wikis will have an easier time making changes to the skin.

Related Objects

StatusSubtypeAssignedTask
OpenFeatureNone
OpenFeatureNone

Event Timeline

@Jdlrobson Since the maintainers of Timeless are all inactive, I'm wondering if you'd be willing to review the patch when someone submits one to do the the conversion? I am interested in doing it, though this seems like a pretty time-consuming task and will likely take a while.

Change #1306093 had a related patch set uploaded (by Peter Li; author: Peter Li):

[mediawiki/skins/Timeless@master] Use Codex design tokens for colors

https://gerrit.wikimedia.org/r/1306093

image.png (3,839×1,723 px, 340 KB)

Current dark mode look (after inserting the skin-theme-clientpref-night class into <html>). There are some elements missing support, such as table headers and icons, which are already noted in the task. They are planned to be addressed in follow-up patches to keep the current one lean.

OOUI and Codex components are confirmed to be working locally, which means that RecentChanges and Echo notification lists work with dark mode after this patch. This is already a huge improvement for third party wikis which usually have a very difficult time styling OOUI.

Forgot to note: as said in the commit message, a lot of effort went into backward compatibility. If that requirement is dropped, the patch can be greatly simplified. Timeless uses #37a for external links and #36c for internal links. I doubt many will notice the difference if we merge them into #36c.

Hi @Jdlrobson! I'm wondering if you are willing to review this patch. If not, what is the WMF's stance on patches like this for skins that are not widely used in production?

I suppose it could be any one of "as long as you don't blow up our servers with security issues", "as long as users don't complain about noticeable changes", or "no new features for this skin at all". If it's the first two, then perhaps a reviewer with +2 rights who is familiar with skins can be found? Thanks!

I just realized that I pinged an inactive personal account this whole time. Hopefully @Jdlrobson-WMF wouldn't mind now that I finally pinged the right account.

Hey apologies for not replying. I don't have time to review Timeless patches in my staff or volunteer capacity unfortunately.

Change #1356811 had a related patch set uploaded (by Peter Li; author: Peter Li):

[mediawiki/skins/Timeless@master] Replace color variables with more descriptive names

https://gerrit.wikimedia.org/r/1356811