Page MenuHomePhabricator

Make it easier to use design tokens in MediaWiki
Closed, DuplicatePublic

Description

Right now, you can use the Codex design tokens in MediaWiki, but the import path is annoying. You need to do something like this:

@import ( reference ) '../../../lib/codex-design-tokens/theme-wikimedia-ui.less';

with the number of ../s depending on how deep in the directory tree your file is (since the tokens file is in resources/lib/codex-design-tokens/).

We should explore making this easier, perhaps by adding resources/lib/codex-design-tokens to the importDirs in ResourceLoader::getLessCompiler().

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@Volker_E you have said things in the past about wanting to make the tokens avaiable through the skin variables system, could you elaborate on what that would look like?