Skip to content

Conversation

@zawadzki
Copy link

@zawadzki zawadzki commented Nov 13, 2025

🎉 Theme for Old School RuneScape Wiki🎉

Old School RuneScape Wiki is wikipedia for Old School RuneScape.

🗒 Checklist 🗒

  • I have read and followed Catppuccin's submission guidelines.
  • I have made a new directory underneath /styles/ 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.

@zawadzki zawadzki requested a review from uncenter as a code owner November 13, 2025 16:20
@WalkQuackBack WalkQuackBack added the 0.kind: init A new userstyle label Nov 15, 2025
@-moz-document domain("oldschool.runescape.wiki") {
:root {
body {
@media (prefers-color-scheme: light) {
Copy link
Member

Choose a reason for hiding this comment

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

Are these being used for theming?

Copy link
Author

Choose a reason for hiding this comment

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

removed, left only themes from switching theme on-site

--ajaxpoll-answerbar-border:var(--body-border);
--rc-negative-color:@red;
--rc-positive-color:@green;
--filter-black-to-link:invert(63%) sepia(67%) saturate(242%) hue-rotate(182deg) brightness(93%) contrast(94%);
Copy link
Member

Choose a reason for hiding this comment

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

I'm not exactly sure what this filters to, but there's built-in filters as part of the library. You can use them like @-filter

Copy link
Author

Choose a reason for hiding this comment

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

this one is variable from original site, left it for future reference as for now I didn't catch single use case in the code

--vector-tab-background:@mantle;
--vector-tab-background--hover:@crust;
--vector-tab-link-color:@text;
--lighttable-bg-hover:rgba(@accent, 0.5);
Copy link
Member

Choose a reason for hiding this comment

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

This won't work, either the fade() function needs to be used or the variable has to be destructed from hex using #lib.rgbify

Copy link
Author

Choose a reason for hiding this comment

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

changed to fade() function, done in the other places also


#p-logo {
a {
filter: hue-rotate(300deg);
Copy link
Member

Choose a reason for hiding this comment

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

If you want to tint this a certain Catppuccin colour, you can use a setup like this to diff the hues like this example. https://gist.github.com/WalkQuackBack/3e77ad9c8ecfa0211d4bc9065b1e06dd#file-ctp-docs-full-user-less-L66 googleBrand should be the original colour of the logo

Copy link
Author

Choose a reason for hiding this comment

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

Implemented, it's not perfect because OSRS Wiki's logo isn't single colored, but definitely better - thanks for suggestion!

background-color: @accent;
color: @base;
border-color: @accent;
box-shadow: 0px 0px 1px 1px rgba(@accent, 0.5);
Copy link
Member

Choose a reason for hiding this comment

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

Linter didn't catch this, but use fade() here as well

Copy link
Author

Choose a reason for hiding this comment

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

done

#lib.defaults();

& {
--body-background-image:url('/images/Old_School_RuneScape_Wiki_background_darkmode.png');
Copy link
Member

Choose a reason for hiding this comment

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

Is this being edited in some way? This being hardcoded doesn't seem like it would work well in light mode.

Copy link
Author

Choose a reason for hiding this comment

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

image

this is the background, it's JPG with fade effect in the original background color, left it as a variable, but it is overwritten below for cleaner look

image
  • variable removed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants