Skip to content

Conversation

@WalkQuackBack
Copy link
Member

Use the Wikimedia Codex color design tokens to base the colour bindings.

This makes the appearance of the style more consistent with base Wikipedia.

@WalkQuackBack WalkQuackBack changed the base branch from main to feat/mediawiki-lib-module October 24, 2025 17:21
@WalkQuackBack
Copy link
Member Author

Related to #1866

@uncenter
Copy link
Member

uncenter commented Nov 4, 2025

Can you explain more about what these changes do or fix?

@WalkQuackBack
Copy link
Member Author

Can you explain more about what these changes do or fix?

Sure! Using the latest version of the library, there's cases where table backgrounds and borders use the same colour which is bad for contrast. In addition, there was a few unthemed variables that are used on other MediaWiki wikis but are part of the Codex style guide spec.

This is using feat/mediawiki-lib-integrate modified to point to both versions of the libraries as they are not deployed yet.

First example, on Wikipedia - Help:Sortable_tables
image
Before PR

image _After PR_

Second example, on Wikipedia - Help:Introduction_to_tables_with_Wiki_Markup when signed out.
image
Before PR

image _After PR_

Third example, in the footer on Wikipedia. Contrast is improved by a lot, closer to matching the style guide contrast recommendations.
image
Before PR

image _After PR_

Fourth example, buttons now have a colour change when pressed.
image
Before PR, hover
image
Before PR, active

image _After PR, hover_ image _After PR, active_

@WalkQuackBack WalkQuackBack added 4.topic: libraries Relating to the standard library and/or library modules 5.needs: staff-review A review by a staff member is required/needed labels Nov 4, 2025
--color-destructive--hover: @maroon;
--color-destructive--active: @maroon;
--color-destructive--active: darken(@red, 4%);
--color-destructive--visited: spin(@red, 15);
Copy link
Member

Choose a reason for hiding this comment

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

What does spin do?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hue shifting. I tried using Maroon but I could hardly tell the difference between it being visited and not. I have some issues seeing colours though, so if you think that maroon contrasts well enough feel free to go and apply that!

Comment on lines +163 to +164
--background-color-button-quiet--hover: fade(@text, 2.7%);
--background-color-button-quiet--active: fade(@text, 8.2%);
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to fade text for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

These are translucent in the original, so I copied that. I think these should be a fade of accent, actually.

@uncenter uncenter removed the 5.needs: staff-review A review by a staff member is required/needed label Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.topic: libraries Relating to the standard library and/or library modules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants