feat(chess.com): neo piece set & always use mocha colors#2151
Open
feat(chess.com): neo piece set & always use mocha colors#2151
Conversation
uncenter
commented
Mar 4, 2026
uncenter
commented
Mar 4, 2026
| @lighter: if(@is-lower-range, @surface2, @overlay2); | ||
| @lightest: if(@is-lower-range, @overlay0, @overlay1); | ||
|
|
||
| @bishop: '<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><path d="M162 30c6.52 5.668 9.348 12.053 10.281 20.566-.367 3.175-1.414 4.01-3.719 6.184C146.053 81.008 142.892 119.703 141 151l15 1-.187-6.062C155.585 120.198 161.375 93.96 175 72c3.373.58 4.95 1.596 7.285 4.07l1.842 1.945 1.935 2.11 2.01 2.173c20.46 22.481 33.926 47.948 32.85 78.926-1.2 19.396-7.91 40.765-21.922 54.776l3.84.883c11.906 2.853 21.874 5.616 29.16 16.117 6.399 13.026 4 22.967 4 39H59c0-34.741 0-34.741 9.25-44.75 7.872-7.278 17.59-8.932 27.75-11.25l-1.758-2.422c-15.261-21.322-22.736-45.964-18.59-72.234C77.603 130.92 81.24 121.44 86 112l1.773-3.547C96.835 91.554 110.313 78.205 124 65l-.64-1.795c-3.105-8.943-3.633-16.042.312-24.877 4.215-7.388 9.78-10.529 17.64-13.078 7.47-.695 14.511.329 20.688 4.75" fill="@{border}"/><path d="M157.39 35.633c3.645 3.096 6.283 7.063 6.958 11.82-.454 3.324-1.73 4.772-3.848 7.36-5.244 6.896-8.912 14.326-12.5 22.187l-1.402 3.035C136.186 104.75 134.123 132.508 133 159h30l-.187-8.5c-.152-23.172 3.376-46.806 14.187-67.5 17.898 14.47 33.306 37.664 36 61 1.783 25.486-3.182 47.429-19.258 67.577-2.82 3.182-4.257 4.323-8.554 5.212q-2.173.07-4.345.05l-2.412.052c-2.62.047-5.237.049-7.857.047l-5.492.046c-3.834.027-7.667.03-11.502.018-4.897-.012-9.79.05-14.686.13-3.781.052-7.561.058-11.343.05q-2.706.005-5.412.059c-14.04.247-14.04.247-19.217-3.424A51.4 51.4 0 0 1 97 206l-1.332-1.879c-11.791-17.166-16.303-39.85-13.347-60.345C86.018 124.167 95.768 105.795 109 91l2.25-2.578C117.96 80.828 124.892 73.13 133 67h2v-3h-2c-4.337-5.914-6.046-10.737-5-18 2.626-6.21 6.697-10.459 12.813-13.312 6.043-1.304 11.386-.318 16.578 2.945m-27.676 186.199 4.158-.01q4.335-.009 8.67-.007 4.37 0 8.74-.02c54.127-.251 54.127-.251 70.53 9.955C230.81 241.005 229 252.547 229 265H66c0-23.333 0-23.333 6-31 13.663-13.663 39.855-12.153 57.715-12.168" fill="@{main}"/><path d="M196 105c3.369 3.91 5.725 7.91 8 12.5l1.055 2.118c10.69 22.052 10.245 45.695 2.882 68.702-3.015 8.02-7.641 14.984-12.937 21.68l-1.247 1.593c-2.018 2.311-3.64 4.126-6.677 4.893-2.209.11-4.331.035-6.537-.119l-2.396-.093c-2.508-.104-5.012-.25-7.518-.399q-2.56-.117-5.121-.227A870 870 0 0 1 153 215c3.032-2.324 6.078-4.177 9.438-6 18.09-10.524 31.644-26.606 37.437-46.937 3.13-12.5 3.024-25.491.813-38.125l-.357-2.053a58 58 0 0 0-2.936-10.194C196 108 196 108 196 105" fill="@{darker}"/><path d="m129.715 221.832 4.158-.01q4.335-.009 8.67-.007 4.37 0 8.74-.02c54.891-.255 54.891-.255 70.655 10.143 2.258 2.258 2.974 4.1 4.062 7.062l-2.953-.805c-9.126-2.335-18.147-3.666-27.543-4.312l-3.642-.253c-14.057-.887-28.11-.934-42.19-.89-3.75.01-7.498.004-11.247-.008-34.659-.51-34.659-.51-68.425 6.268 1.355-4.743 3.949-7.372 8-10 15.534-7.48 34.887-7.153 51.715-7.168M138 66.125l2 .875a365 365 0 0 1-7.762 7.621C103.574 102.004 91.203 140.603 86 179c-5.256-5.256-4.274-16.137-4.375-23.25C81.651 131.755 93.237 108.624 109 91l2.25-2.578c19.948-22.58 19.948-22.58 26.75-22.297" fill="@{lightest}"/><path d="M156 36c3.065 1.307 4.621 2.397 6.25 5.313l1.016 1.738c.958 2.543 1.08 4.245.734 6.949-1.469 2.332-1.469 2.332-3.5 4.813-5.244 6.896-8.912 14.326-12.5 22.187l-1.402 3.035C136.342 104.38 134.055 131.871 133 158c-6.154-5.328-7.755-13.841-8.75-21.687A172 172 0 0 1 124 132l-.191-2.246c-1.04-20.436 12.057-40.23 21.566-57.379C152.119 60.155 157.058 50.371 156 36" fill="@{darker}"/><path d="m145 34-1.54.96c-6.03 4.09-9.035 8.706-12.46 15.04l-2 3c-1-1-1-1-1.375-3.562.639-5.856 3.75-9.929 8-13.876 3.507-2.307 5.43-2.786 9.375-1.562" fill="@{lighter}"/></svg>'; |
Member
Author
There was a problem hiding this comment.
These pieces unfortunately do inflate the size of this userstyle (in kb) to like 56kb from 31kb. A little unfortunate but finally proper Neo pieces!
Member
Author
|
One issue is that like half of the accent colors don't work with whatever light square color I pick — blue and mauve look good with what it is right now (text), green and teal and others don't... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔧 What does this fix? 🔧
Switches to using a vectorized version of Chess.com's default Neo piece set, instead of a completely different set that we were using. The colors are also better — we pin to always use mocha colors for the board and pieces, regardless of user-selected flavor.
Uses accent as the darker color always on boards, paired with a lighter color.
For the curious here is the vectorized piece SVG files:
chess.com-neo-set.zip
🗒 Checklist 🗒