Skip to content

Conversation

@ninetailedtori
Copy link

@ninetailedtori ninetailedtori commented Dec 28, 2025

Closes #1870, closes #1381.

🎉 Theme for Arch Linux 🎉

Honestly, this is a major refactor of the existing arch-wiki theme into an umbrella "Arch Linux" userstyle, including:

  • arch-wiki existing theme
    • migrated to mediawiki variables?
  • an additional one started by someone else for aur.archlinux.org: feat(arch-user-repository): init #1870
    • merged with this PR yet?
    • finished?
  • and all the others I'll be actively doing for Arch Linux!
    • archlinux (home)?
    • archlinux/download?
    • man.archlinux?
    • archlinux/packages?
    • security.archlinux?
    • bbs.archlinux?

💬 Additional Comments 💬

This is based off of the old PR that died, #1381, but will be moving the wiki to use MediaWiki variables in the library module e.g. #1895, once we can confirm it working as it should on arch's wiki (no leftover overriding on their end). All other sites will be done by me, aside from the AUR one which was done by someone else (though it'll be edited by me as well, to fall in line with the new style of formatting).

Requires: #1866

🗒 Checklist 🗒

  • I have read and followed Catppuccin's submission guidelines.
  • I have made a new directory underneath /styles/archlinux containing the contents of the /template directory.
    • I have ensured that the new directory is in lower-kebab-case.
    • I have followed the template and kept the preprocessor as LESS.
  • I have made sure to update the userstyles.yml file with information about the new userstyle.
  • I have included the following files:
    • catppuccin.user.less - all the CSS for the userstyle, based on the template.

@ninetailedtori ninetailedtori force-pushed the manpages branch 2 times, most recently from a347cca to ee87d5b Compare December 28, 2025 22:50
@WalkQuackBack WalkQuackBack changed the title feat(archlinux) feat(archlinux): init Dec 28, 2025
@github-actions github-actions bot added the arch-wiki Arch Wiki label Dec 29, 2025
@WalkQuackBack WalkQuackBack added the 0.kind: init A new userstyle label Dec 29, 2025
@ninetailedtori
Copy link
Author

ninetailedtori commented Dec 30, 2025

PR is now up to every page aside from:

  • Download DONE!
  • Wiki (needs mediawiki lib, will set up my own localhost tomorrow)
    Feel free to test it for me! Security and BBS were the last ones I just did, and rework of AUR as well as expansion of it to include Packages (official) was done earlier as well! :]

Copy link
Member

@uncenter uncenter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there is still a bunch of duplicated input styles?

@ninetailedtori
Copy link
Author

Looks like there is still a bunch of duplicated input styles?

If you spot any duplicated styles that aren't being annoyingly overwritten by something on the page (like the .pun #brdX regions), do lemme know o7
I'm not sure how to get them to overwrite including on top of the other css used on the page without specificity unfortunately.

@ninetailedtori ninetailedtori force-pushed the manpages branch 2 times, most recently from 8ac3259 to b8c797e Compare December 31, 2025 21:44
@ninetailedtori
Copy link
Author

This is a reminder for me to change the mediawiki location once that's published, because I'm going to forget :P

@WalkQuackBack
Copy link
Member

This may have rebased this onto the wrong branch. Could you try rebasing onto origin/main again?

@ninetailedtori ninetailedtori changed the base branch from main to feat/mediawiki-lib-module January 3, 2026 23:57
Also fix up arch wiki guidance.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Fix issues.
Now I just need to sort out the fmt issues. We can't split regexp onto multiple lines or it breaks the usercss in stylus, which is unfortunate.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

This fixes a few things - firstly, this style only works on Arch's manpage. Perhaps it's worth generating its own category, and including ALL manpage supports, but we could actually do it all under one thing.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Let's do this with a major rework.
Let's add support to all manpages to this one file, to keep it neat and organised.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Rework - let's do a rework to include it all under an archlinux category!

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Rework wiki theme to fit mediawiki. This requires: catppuccin#1866. manpage for arch has been finalized and perfected.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Remove README (this is autogenerated, no need to move.)

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Initial merge of PR catppuccin#1870.
Being edited by me, don't mind the state of it rn, feel free to report bugs to me!

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Cleanup!
Simplify some of the css, reformat.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Whoops, typo!

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Move generics into global domain changes.
Fix unnecessary redefinitions.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Push a few changes to table colouring. Accidentally typo'd a change.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Big rework electric booga2
Move label, fix some bugs of overwriting, still needs some table and heading definitions to move as well. I *should've* fixed most things, but oh well.
Also, border-color: surface0 -> surface2 now!

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Veeeeeeery big update, working on EVERYTHING!!!

Signed-off-by: Toria <ninetailedtori@uwu.gal>

S...spaces? spaces???

Signed-off-by: Toria <ninetailedtori@uwu.gal>

deno fmt

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Fix a few things:
timestamp, rss-icon, colors of h3. Need to still do selective rss-icon colours.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Fix rss-icon theming.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Rework of some of the colours
Especially links css structure. Still tryna work out some bugs, oddly enough bbs overwrites a ton.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Add usercontent. Final commit for tonight!

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Checklist and rbox support.
I know, should be in bed rn qwq

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Quick fix to links, quick change to li a for bbs.
Add colours to sticky and closed labels as well.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Fix link backgrounds borking on bbs.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Add support for downloads.archlinux.
Just needed h5!

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Add errorlist for search errors. Fix selections.
Can't seem to fix cursor-based focus selections though. Needs debugging.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Remove cursor setting - we shouldn't touch it in our userstyles.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Remove padding from button.
Aesthetic choice, should push these upstream.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Exclude gitlab.archlinux.org in global
Issue was domain(archlinux.org) scope, now uses negative lookahead regex to solve issues.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Whoops, missed the commit.

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Fixing a dicy issue with regex, everything works now!

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Fix regex to ACTUALLY work!
Apparently you can't numeric modifier before lookaheads and behinds because of various logic reasons...wish you could skip when doing lookaheads, like look 2 ahead/behind etc...

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Comment changes, form input spec.
comment: // -> /**/
form input: button text color -> link color (form inputs follow link button style.)

Signed-off-by: Toria <ninetailedtori@uwu.gal>

Working on an initial change.
This won't make sense just yet.

Signed-off-by: Toria <ninetailedtori@uwu.gal>
remove container from mw for now, add vector-pinned-container settings to inherit directly on the page (flows a lot better, fitting in line with our mw style.)

Signed-off-by: Toria <ninetailedtori@uwu.gal>
Moving stuff to lib/mediawiki to better organise miniserve in the meantime. Remove unnecessary note now that issue has been patched.

Signed-off-by: Toria <ninetailedtori@uwu.gal>
Copy link
Member

@uncenter uncenter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a lot of duplication between the first @-moz-document and for bbs.archlinux.com. Can we avoid that? Does the regex for the first one not include bbs?

@uncenter
Copy link
Member

uncenter commented Jan 5, 2026

I might actually define all of these commons in a modular way, then just call the function within the required scopes at this point.

This is what I would recommend doing.

Not sure why they had something overwrite it though, very annoying. I'll see what I can do though, through specificity tinkering.

You could do a &, .pun wrapper for everything in the first moz-document and that would do the trick I think, a little ugly though.

Signed-off-by: Toria <ninetailedtori@uwu.gal>
Signed-off-by: Toria <ninetailedtori@uwu.gal>
Signed-off-by: Toria <ninetailedtori@uwu.gal>
ninetailedtori and others added 2 commits January 5, 2026 18:10
Co-authored-by: uncenter <uncenter@uncenter.dev>
Co-authored-by: uncenter <uncenter@uncenter.dev>
@ninetailedtori
Copy link
Author

I might actually define all of these commons in a modular way, then just call the function within the required scopes at this point.

This is what I would recommend doing.

Not sure why they had something overwrite it though, very annoying. I'll see what I can do though, through specificity tinkering.

You could do a &, .pun wrapper for everything in the first moz-document and that would do the trick I think, a little ugly though.

I'm going to do the wrapper, tragically there's no solution. I tried refactoring to remove dupes outright and it broke as like last time I tested. I'll wrap the whole thing I think.

Co-authored-by: uncenter <uncenter@uncenter.dev>
@uncenter
Copy link
Member

uncenter commented Jan 5, 2026

I'm going to do the wrapper, tragically there's no solution. I tried refactoring to remove dupes outright and it broke as like last time I tested. I'll wrap the whole thing I think.

Did you try making mixins and then just applying those in the right places? I see no reason why that wouldn't work if done correctly.

Signed-off-by: Toria <ninetailedtori@uwu.gal>
@uncenter
Copy link
Member

uncenter commented Jan 5, 2026

Generally we should avoid regex if possible. Hard to read, hard to maintain, often there are better solutions :)

@uncenter
Copy link
Member

uncenter commented Jan 5, 2026

Fwiw here is a good playground that I like to use: https://regex101.com/r/wrKYCM/1

@ninetailedtori
Copy link
Author

Fwiw here is a good playground that I like to use: https://regex101.com/r/wrKYCM/1

That's what I've been using, have been for years! xD
Unfortunately it seems that \w is broken in stylus, which means we DO have to use .

@ninetailedtori
Copy link
Author

Generally we should avoid regex if possible. Hard to read, hard to maintain, often there are better solutions :)

Also slower, so you're completely right on that. It's just in my regex mania I've completely forgotten to see if I could make it easier with just prefixing xD

@ninetailedtori
Copy link
Author

ninetailedtori commented Jan 5, 2026

I'm going to do the wrapper, tragically there's no solution. I tried refactoring to remove dupes outright and it broke as like last time I tested. I'll wrap the whole thing I think.

Did you try making mixins and then just applying those in the right places? I see no reason why that wouldn't work if done correctly.

Actually, this was my entire plan xD

@uncenter
Copy link
Member

uncenter commented Jan 5, 2026

Unfortunately it seems that \w is broken in stylus, which means we DO have to use .

Yeah there isn't any reason we need to use \w over .. We aren't parsing or validating much here.

@uncenter
Copy link
Member

uncenter commented Jan 5, 2026

That's what I've been using, have been for years! xD

Just saying I put the test strings for each of the URLs in there so it's easier.

note: security.archlinux.org or aur.archlinux.org icons might not work if content-security-policy blocks it.

Signed-off-by: Toria <ninetailedtori@uwu.gal>
…tion.

Signed-off-by: Toria <ninetailedtori@uwu.gal>
…t! Gotta do mixins next.

Signed-off-by: Toria <ninetailedtori@uwu.gal>
@ninetailedtori
Copy link
Author

That's what I've been using, have been for years! xD

Just saying I put the test strings for each of the URLs in there so it's easier.

Ya, that's what I've been doing! :3 it is annoying though, I have to then test it twice, because stylus regex isn't fully with the same accepted tokens as it is in that tester, so I have to check every time what sites are recognised. xD anyway rn I'm doing mixins, so will be big update soon!

TOC variables should NOT be used, and possibly the other archwiki variables in the wiki, but am awaiting response on whether this will change: https://gitlab.archlinux.org/archlinux/archwiki/-/issues/91#note_387552

Signed-off-by: Toria <ninetailedtori@uwu.gal>
I might be actually godly at this now...knock on wood...

Signed-off-by: Toria <ninetailedtori@uwu.gal>
Signed-off-by: Toria <ninetailedtori@uwu.gal>
Signed-off-by: Toria <ninetailedtori@uwu.gal>
…fixing on this, hover box AND alternating colours don't seem to match up with this yet unfortunately.

Signed-off-by: Toria <ninetailedtori@uwu.gal>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.kind: init A new userstyle arch-wiki Arch Wiki

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants