Page MenuHomePhabricator

Split experimental tokens output into separate CSS and Less files
Closed, ResolvedPublic2 Estimated Story Points

Description

Currently, the theme-wikimedia-ui-experimental.less generated by the tokens package contains two things:

  • A :root block with CSS variable definitions for a subset of tokens, e.g. --color-base: #202122;
  • A list of Less variable definitions for all tokens, some expressed as CSS vars (e.g. @color-base: var( --color-base );) and some as hard-coded values (e.g. @opacity-medium: 0.65;)

As requested in T358059#9620816, these two things should be output in separate files.

Event Timeline

Catrope triaged this task as High priority.Mar 20 2024, 9:45 PM
Catrope created this task.

Change 1013153 had a related patch set uploaded (by Catrope; author: Catrope):

[design/codex@main] tokens: Split experimental build and change how it's produced

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

Catrope changed the point value for this task from 1 to 2.Mar 20 2024, 11:57 PM

Change #1013344 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[design/codex@main] tokens: Add a new format for experimental CSS output

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

Change #1013153 abandoned by Catrope:

[design/codex@main] tokens: Split experimental build and change how it's produced

Reason:

Superseded for now by https://gerrit.wikimedia.org/r/c/design/codex/+/1013344 ; but we may want to pick out pieces of this change later

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

Change #1013344 merged by jenkins-bot:

[design/codex@main] tokens: Add a new format for experimental CSS output

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

Change #1014618 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/core@master] [WIP] Codex: Split experimental files

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

Change #1014619 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/skins/MinervaNeue@master] [WIP] Update imports for experimental file split in Codex

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

Change #1016452 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/core@master] Update Codex from v1.3.5 to v1.3.6

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

Change #1014618 abandoned by Catrope:

[mediawiki/core@master] [WIP] Codex: Split experimental files

Reason:

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

Change #1016452 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from v1.3.5 to v1.3.6

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

Change #1014619 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Update imports for experimental file split in Codex

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