-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Can not add custom colors / text sizes to Theme.json #272
Comments
Can you try setting your environment type to development in
|
Done, but no difference.. I'm running my Wordpress installation using Local |
To be clear, are you seeing the same issue in your installation? |
Did some testing yesterday but could not replicate the issue. Will set up a fresh install later and do a an additional check to be sure. |
Did some more testing on a fresh install; seems that on the first load the variables you mentioned are indeed not present, but after a refresh - they are. Most likely thing I can think of is that this is a caching issue. Try a hard refresh for browser cache, maybe flush your site cache (transients) as well. Interested to know if this helps in your case too. For the custom color, when I add it, it turns up immediately. |
tried to empty cache, flush transients, etc. No difference. However, I just found out the issue i think. |
Hi,
There seems to be something wrong with the variables in theme.json
As you can see, the --wp--preset--font-size--2xl - 9xl are not found.
The same happens when I want to add colors to the palette. I have added a custom color to the Wordpress palette:
However, I can not use this in theme.css like this:
It seems that only the standard Wordpress presets are working ( text sizes xs - xl and colors primary + secondary ) .
What am I missing here?
The text was updated successfully, but these errors were encountered: