Manual:$wgResourceModuleSkinStyles

The $wgResourceModuleSkinStyles global enables skins to provide additional stylesheets to existing ResourceLoader modules.

This both makes it easier (or at all possible) to override default styles and lowers the style footprint by making it possible not to load styles unused on most pages.

Vector is one of the skins using this method, and provides a good practical usage demonstration:.

See documentation for $wgResourceModules for basic information about defining and using ResourceLoader modules.

Documentation
The styles defined using $wgResourceModuleSkinStyles are later added to the  list of the existing module. The  list can not be modified or disabled.

For example, here is a module "bar" and how skin Foo would provide additional styles for it.

This is mostly equivalent to:

If the module already defines its own entry in  for a given skin, then $wgResourceModuleSkinStyles is ignored.

If a module defines a  the skin may want to extend that instead of replacing them. This can be done using the  prefix.

Example:

This is mostly equivalent to:

In other words, as a module author, use the  list for stylesheets that may not be disabled by a skin. To provide default styles that may be extended or replaced, use.

As with $wgResourceModules, paths default to being relative to the MediaWiki root. You should always provide a  and   (or  / ). Either for all skin styles at once (first example below) or for each module separately (second example).

Example: