This repository has been archived by the owner on Feb 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 360
Assembler: Move the style variation specific font families from the main theme.json to the variation json file. #8079
Labels
Comments
OMG yes please! This will also make it easier to build Assembler-based themes without needing to remove a bunch of fonts from theme.json every time 🎉 |
alaczek
added a commit
that referenced
this issue
Nov 14, 2024
Move font families definition to the corresponding style variation. See #8079
alaczek
added a commit
that referenced
this issue
Nov 14, 2024
Move font families definition to the corresponding style variation. See #8079
alaczek
added a commit
that referenced
this issue
Nov 14, 2024
Move font families definition to the corresponding style variation. See #8079
alaczek
added a commit
that referenced
this issue
Nov 14, 2024
Move font families definition to the corresponding style variation. See #8079
alaczek
added a commit
that referenced
this issue
Nov 14, 2024
Move font families definition to the corresponding style variation. See #8079
alaczek
added a commit
that referenced
this issue
Nov 14, 2024
Move font families definition to the corresponding style variation. See #8079
alaczek
added a commit
that referenced
this issue
Nov 14, 2024
Move font families definition to the corresponding style variation. See #8079
alaczek
added a commit
that referenced
this issue
Nov 14, 2024
Move font families definition to the corresponding style variation. See #8079
alaczek
added a commit
that referenced
this issue
Nov 14, 2024
Move font families definition to the corresponding style variation. See #8079
alaczek
added a commit
that referenced
this issue
Nov 14, 2024
Move font families definition to the corresponding style variation. See #8079
alaczek
added a commit
that referenced
this issue
Nov 14, 2024
Move font families definition to the corresponding style variation. See #8079
alaczek
added a commit
that referenced
this issue
Nov 14, 2024
Move font families definition to the corresponding style variation. See #8079
alaczek
added a commit
that referenced
this issue
Nov 14, 2024
Move font families definition to the corresponding style variation. See #8079
alaczek
added a commit
that referenced
this issue
Nov 14, 2024
Move font families definition to the corresponding style variation. See #8079
alaczek
added a commit
that referenced
this issue
Nov 14, 2024
Remove font families definitions from theme.json. See #8079
I moved the font family definitions out of theme.json to appropriate style variations. Please review and let me know if this is right. While I was doing this, I noticed we have a few fonts registered in theme.json that are not used in any style variation:
Shall we keep or remove them? I also noticed missing font weights:
Shall I add the missing font family or update the headings definition? cc @richtabor |
Let's remove, other than Rubik — I'll make a quick variation for it in #8421. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What?
Move the style variation specific font families from the main theme.json to the variation JSON file.
Why?
Currently, the font families must be defined in the main theme.json file to load as expected in the editor when the style variation is switched. If this issue WordPress/gutenberg#59965 is fixed (in progress WordPress/gutenberg#65019), we could avoid this 'hack' that's producing the printing of not needed CSS in the frontend. So, this change would be a tiny performance improvement, and it could lead to simpler-to-define typography variations.
Related
The same issue in TT5: WordPress/twentytwentyfive#233
The text was updated successfully, but these errors were encountered: