feat(codeforces): init#2001
Conversation
|
Marking this as pending, since tints and shades are not yet adopted and fading, lightening and darkening colours isn't standardized. Thanks for taking the time to work on this. |
I have removed the use of lightening and darkening as they are not necessary. However, fading cannot be removed as it is used to theme elements on the website that already have faded colors. |
|
Due to fading amounts not being standardized, things like the 20% fade on https://github.com/catppuccin/userstyles/pull/2001/files#diff-97f27cb299e39122d175d160679ab75e205eda13a7c341004633efb681432260R61 may be inconsistent with other userstyles. I think we’re holding off on userstyles that do that for now, so we can standardize it first then use it, instead of later down the line going back and migrating everything. |
| * when not(@flavor = latte) { | ||
| img[src*="codeforces-sponsored-by-ton"] { | ||
| filter: invert(1) sepia(1) hue-rotate(hue(@accent) - 39deg) saturate(2); | ||
| } | ||
|
|
||
| img[src*="votedown-"], | ||
| img[src*="voteup-"] { | ||
| opacity: 1 !important; | ||
| } | ||
|
|
||
| img[src*="tablesorter-"] { | ||
| filter: invert(1); | ||
| } | ||
|
|
||
| img[src*="icons/user"] { | ||
| filter: brightness(1.6) contrast(0.8); | ||
| } | ||
|
|
||
| img.tex-formula { | ||
| filter: invert(1); | ||
| } | ||
| } |
There was a problem hiding this comment.
We should use our official filters palette instead of customs/inversions: https://userstyles.catppuccin.com/contributing/guides/images-and-svgs/#monochrome-img-elements.
There was a problem hiding this comment.
What about the rest of the icons besides the logo?
There was a problem hiding this comment.
These have been removed
img[src*="votedown-"],
img[src*="voteup-"] {
opacity: 1 !important;
}img[src*="icons/user"] {
filter: brightness(1.6) contrast(0.8);
}Other rules have been removed.
[id^="vote-list-filterDifficulty"] {
filter: invert(1) hue-rotate(180deg) brightness(2);
mix-blend-mode: exclusion;
}is needed to style the ratings: https://codeforces.com/gyms
The star images are not transparent so it is not possible to style them using built-in filters.


Co-authored-by: uncenter <uncenter@uncenter.dev>
| a[name] { | ||
| color: @blue !important; | ||
| &:hover { | ||
| color: @blue !important; |
There was a problem hiding this comment.
| color: @blue !important; | |
| color: @sky !important; |
There was a problem hiding this comment.
The original styling does not change the link's color on hover. a[name] matches colored titles on a blog page, but the title is not always clickable.
Example: https://codeforces.com/blog/entry/149513
"Good Bye 2025" is a clickable link but its color does not change when hovered.

"Comments (189)" is matched using a[name] but it is not a clickable link. So it would not make sense for there to be visual feedback when hovering over it.

Should I change the styling to always be sky instead of blue?
There was a problem hiding this comment.
Can we tell clickable links from non-clickable links? Blue to sky on hover for clickable, and then text for non-clickable? I think its confusing that links and non-links are styled the same way.
There was a problem hiding this comment.
I've made a small mistake. a[name] is used to make text blue. But none of the elements are actually clickable links. "Good Bye 2025" is not styled with a[name].
Some occurrences of a[name] have a different background color when hovered like this:


This is similar to the user name links. For the sake of consistency, should I remove the background color for these as well?
Because the original styling shows visual feedback when hovering over the text, I will also make the text change from blue to sky when hovered.
| } | ||
| } | ||
|
|
||
| // https://github.com/bajrangCoder/acode-catppuccin |
There was a problem hiding this comment.
We should think about library-ing this because this port isn't actually official.
Co-authored-by: uncenter <uncenter@uncenter.dev>
note: cant be themed, js-based color transition
Thanks, I've made some changes to your code and added it in 956fb32 |
|
I have some more suggestions:
|
|
Is there a (public) page I can see that syntax highlighting on for, or do I need to have submitted code for a problem on my end? |
|
Seems like Codeforces has disabled viewing source code of others if you haven't solved a problem D: |
|
Rating surge notification is styled now. |




















🎉 Theme for Codeforces 🎉
Codeforces is a website that hosts competitive programming contests.
🌻 Latte
🪴 Frappé
🌺 Macchiato
🌿 Mocha
🗒 Checklist 🗒
/styles/<name-of-website>containing the contents of the/templatedirectory.userstyles.ymlfile with information about the new userstyle.catppuccin.user.less- all the CSS for the userstyle, based on the template.