Page MenuHomePhabricator

[WtC-M3] [QB] [EPIC] Replace WiKit tokens by available Codex tokens
Open, Needs TriagePublic

Description

Problem

The layout, typography, colors and other styles that – together with WiKit components – make up Query Builder's UI were styled (in most cases) using WiKit tokens.

The WiKit design system is now on its deprecation path, as it has been superseded by Codex, the now official Wikimedia design system. WiKit tokens will be deprecated together with the legacy system, and thus their use is not advised.

Solution

We need to import Codex tokens and use them to replace the WiKit tokens (of all global, aliases and component types) that were used to style Query Builder. This will take us a step closer to switching to the new design system and deprecating the old.

Here's a list of WiKit tokens and their equivalent Codex styles.

Considerations
  • Like in our previous migration, we'll need to use custom variables (see T360998) to maintain our decision of using relative units for layout spacing
  • We'll need to decide whether, like with the Mismatch Finder, we should create mixins to reuse typographic styles (see T360999).
Acceptance criteria
  • All the WiKit tokens used to style the Query Builder app that have an equivalent in Codex are replaced
  • WiKit spacing tokens used to style the Query Builder app that don't have an equivalent in Codex are replaced by custom variables