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

Twenty Twenty-Three: Try replacing base and contrast with ref values #3657

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

mikachan
Copy link
Member

This PR replaces the base and contrast color palette names in Twenty Twenty-Three with descriptive names (e.g. "dark purple"), and uses ref values for where we were previously using var(--wp--preset--color--contrast) or var(--wp--preset--color--base).

I haven't included colors in the color palettes that are already included as part of Core, such as #000000 and #FFFFFF.

Trac ticket: https://core.trac.wordpress.org/ticket/57167


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

{
"color": "#ff5252",
"name": "Block out Red",
"slug": "block-out-red"
Copy link
Member Author

Choose a reason for hiding this comment

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

I struggled to name some of these colors! I don't think the name in particular matters too much, but it would be good if the name described the color, or perhaps matched the personality of the style variation.

@@ -138,7 +133,9 @@
"elements": {
"link": {
"color": {
"text": "var(--wp--preset--color--contrast)"
"text": {
"ref": "styles.color.text"
Copy link
Member Author

Choose a reason for hiding this comment

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

ref currently isn't included in the theme.json schema, so it will throw a warning in text editors.

There is a PR here to address this: WordPress/gutenberg#45897

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

Successfully merging this pull request may close these issues.

1 participant