As noted in the parent task, there are two tokens that cause the Less compiler in MediaWiki to break:
"modifier-gray100-translucent": { "comment": "TODO: Not part of DS Figma yet. Equals `color-gray100` on white.", "value": "rgba( 0, 24, 73, calc( 7 / 255 ) )" }, "modifier-gray200-translucent": { "comment": "TODO: Not part of DS Figma yet. Equals `color-gray200` on white.", "value": "rgba( 0, 24, 73, calc( 21 / 255 ) )" },
The fraction within the calc() function is what breaks.
To unblock use of design tokens within MediaWiki, we should change or remove these tokens for now. Once the Less compiler can be updated (see T288498) we can reinstate them.
Proposal
We gonna change the token values to have calculation done and provide values statically for now.
Acceptance criteria
- Decide how to handle these tokens for now (remove vs. change): change
- Make the change in codex-design-tokens