[MediaWiki-l] Can you override Less variables through MediaWiki:Vector.css?

Adam Nielsen a.nielsen at shikadi.net
Sat Nov 22 03:51:59 UTC 2014

Hi all,

I'd like to change some colours in the Vector skin, but if I do this
in CSS I will have to put hundreds of lines of code into
MediaWiki:Vector.css.  It looks like the colours I want to change are
defined as Less variables, so if I could just override those then it
would be only a handful of lines.  I don't really want to clone the
skin and modify the duplicate copy, because I will have to redo it on
every upgrade to make sure I get the latest updates to the Vector skin.

I tried putting the Less overrides in MediaWiki:Vector.css but it looks
like this content gets included separately, so it can't override any
Less variables.

Is there any way to tweak the Less code via an article page in this
manner, before it gets processed into CSS?

Many thanks,

More information about the MediaWiki-l mailing list