Skip to content
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

Colors Audit: Check that only colors in the palette are used #54

Open
ryelle opened this issue Jul 12, 2021 · 1 comment
Open

Colors Audit: Check that only colors in the palette are used #54

ryelle opened this issue Jul 12, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@ryelle
Copy link
Collaborator

ryelle commented Jul 12, 2021

This is an idea to improve the colors audit. Core has a fixed color palette, so we could use that list to highlight colors that are not in the set (if any). The palette should work like an allowed-list, flagging anything not on the list.

For example: if #f00 is added, it will show up in the audit, but currently no indication that it shouldn't be there. There could be another section of the Colors report, which lists these non-allowed-list colors:

  1. #f00 found in wordpress/src/wp-admin/css/admin-menu.css, line #33.
@ryelle ryelle added the enhancement New feature or request label Jul 12, 2021
@danfarrow
Copy link
Collaborator

That would be very useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants