Problem
The Query Builder's user interface was styled using WiKit tokens. With the WiKit design system being superseded by Codex, the official Wikimedia design system. The utilization of WiKit tokens is not recommended, and they should be replaced in order to reduce maintenance costs and ensure consistency.
Solution
We have to replace the WiKit tokens used to style the Query Builder's font styles by their Codex equivalents.
Besides links, all fonts in the Query Builder UI can be replaced by three styles: h4, Body M and Body S. Only the font weight and color of said styles can vary, as indicated by the specs.
To support the replacement, here's a WiKit to Codex tokens mapping. You can find the WiKit tokens matched with their corresponding Codex token.
Considerations
Files where font tokens are used (please beware the list might be incomplete!):
- Footer.vue
- QueryBuilder.vue
- QueryResult.vue
- The class .querybuilder__sharable-link and its styles can be deleted since the text being used currently will be replaced by a button (see T360997)
Acceptance criteria
- WiKit tokens used to define the font styles of the Query Builder app are replaced by Codex tokens