-
Notifications
You must be signed in to change notification settings - Fork 1
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
Experiment with experimental-theme.json #3
Comments
Font sizesNot understanding much of the documentation about custom units I tried two ways of setting fontSizes.
These become custom CSS properties declared in Since Larger has a Small doesn't have a unit size. For this to work I needed It's not immediately obvious how the JSON key names equate to the variable names
Nor how the hierarchy maps to the variable names. References: In case you are not sure what :root matches, in HTML it’s the same as html but with a higher specificity. It's also not immediately obvious if I can use these custom CSS properties in my style.css
This will use the custom property if it's defined or the hex code if not. |
Having updated I then discovered that my styles weren't working due to a syntax error in the I had to read the code to see that it had logged a message in the PHP error log.
No hint of the file name that's in error! |
For some clues see |
Having implemented fontSize typography for core/heading/h2 in the experimental-theme.json file I noted that the post-title block had the wrong font size. To fix this I found I needed to use style.css, since I couldn't find how to define the typography for
|
…ssue #18 style the core/query-pagination block
The structure of the experimental theme JSON file has changed since I started. I need to update it. |
I don't know if this is related to the changes to Copied from View source.
Copied from Chrome inspector.
I've raised an issue on Gutenberg. |
As of Gutenberg 10.6.0 |
It appears that I've had the following incorrect settings for a while now.
Note: I'll use different values in Wizzie. |
Fizzie v0.7.0 ( 2021/08/03 ) used theme.json. The next version (1.0.0) uses |
In parallel with #1 and #4 it makes sense to play with the experimental theme JSON file called
experimental-theme.json
.https://developer.wordpress.org/block-editor/developers/themes/theme-json/
Requirements
experimental-theme.json
to define the colours and font sizes for blocks such as paragraph, h1-h6 to match the current settings in genesis-a2zSolution
Notes
The text was updated successfully, but these errors were encountered: