From 47e1668eb267fcb2fc276d074dd5e91b82e20678 Mon Sep 17 00:00:00 2001 From: WalkQuackBack Date: Fri, 16 Jan 2026 20:35:01 -0700 Subject: [PATCH] docs(lib/mediawiki): initial documentation writeup --- .../docs/contributing/mediawiki-library.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/src/content/docs/contributing/mediawiki-library.md diff --git a/docs/src/content/docs/contributing/mediawiki-library.md b/docs/src/content/docs/contributing/mediawiki-library.md new file mode 100644 index 0000000000..35837af1e9 --- /dev/null +++ b/docs/src/content/docs/contributing/mediawiki-library.md @@ -0,0 +1,32 @@ +--- +title: MediaWiki Library +description: Reference to using the MediaWiki library. +--- + +The MediaWiki library is a collection of mixins to consistently theme userstyles targeting the Vector 2022 MediaWiki skin. + +[Source code](https://github.com/catppuccin/userstyles/blob/main/lib/mediawiki.less) + +See the [Library Modules](/contributing/library-modules/) article for information on what libraries are and what problems they solve. + +# Usage + +Add the import block at the top of the userstyle: +```less +@import "https://userstyles.catppuccin.com/lib/mediawiki.less"; +``` +Outside the `#catppuccin` mixin, add the reset block to \ + +```less +#__mediawiki.reset(); +``` + +Then, inside the `#catppuccin` mixin, add the base block to add CSS variables and other styles. + +```less +\#\_\_mediawiki.base(); +``` + +# API + +TO-DO