-
Notifications
You must be signed in to change notification settings - Fork 1.4k
docs: S2 Colors search #9163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
docs: S2 Colors search #9163
Conversation
|
not sure why the build comment didn't come through |
snowystinger
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, pretty easy to use
|
Are we going to continue moving this one forward? still seems useful |
|
@snowystinger I'll be picking this back up now that the initial docs release is complete. |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
| } | ||
| } | ||
|
|
||
| // Add colored background colors (with -subtle variants) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these the actual values? or is this randomly being picked? i don't understand the code comments
| size: 'full' | ||
| }); | ||
|
|
||
| const swatchStyle = style({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In HCM all the swatch colors disappear, we'll need to tell it that forced-color-adjust: none
Adds Colors to the search menu.
Supports searching by name, or by hex code. When searching by hex code, it shows the closest colors and highlights the exact matches, or most similar matches. Pressing an item copies the color name.
✅ Pull Request Checklist:
📝 Test Instructions:
Test the Colors section of the search menu
🧢 Your Project: