Page MenuHomePhabricator

Provide a way to inject Codex tokens into WikimediaUI Base variables, while later are widely used
Closed, ResolvedPublic

Description

Background

One reality Design System has to face to provide a solid, consistent experience for majority of existing products is current usage and spread of WikimediaUI Base variables.

Goal

Provide a way to inject Codex design tokens into WikimediaUI Base variables, to basically disguise former under cover of latter in order to rely on continuous single source of truth.

Acceptance criteria

  • Cut a release of WikimediaUI Base variables with disguised Codex tokens and make OOUI use it without aimed-for breakages.

Update 2023-11-06: OOUI uses disguised tokens in copy of WikimediaUI Base library. Referring from updating library itself and rather aim for sunsetting it.

Related Objects

Event Timeline

ldelench_wmf moved this task from Inbox to Needs Refinement on the Design-System-Team board.

WikimediaUI Base, with the current undergoing of adding deprecated tokens to Codex design tokens package, should be able to end up with importing Codex package and import (or copy) the npm compiled Less and CSS files. Build script alike Kartographer…

egardner lowered the priority of this task from High to Medium.Jan 23 2023, 4:44 PM

@CCiufo-WMF I'd keep this a bit longer open as this _one_ patch here could relieve us from the waiting time in places like OOUI to transform over. If we see traction on the replacing WikimediaUI Base patches, we can still decline this one.

@Volker_E Coming back to this and given the current approach being taken in T334934, should this now be declined?

With high probability yes, I'd like to file a spike for the last big chunk of replacing all deprecated tokens in OOUI. In what relationship – if in parallel or in succession we should decide in coming Monday's sprint planning session IMO.

Note that we're actually using our setup for injecting the tokens as intermediate step in OOUI. Not for WikimediaUI Base itself, but for the library's copy in OOUI as part of T350071. It's possible, but WikimediaUI Base is removed from codebases across Wikiverse and should be sunset and replaced by Codex design tokens themselves as it saves one step.
For better developer experience and lower maintenance costs.
With that, it seems fair to close this task as “resolved”.

Volker_E assigned this task to Catrope.

Resolving after exchange with @CCiufo-WMF as the ability has been provided, the best path forward has changed.