x3p0-dev / x3p0-ideas

A new WordPress theme.
GNU General Public License v3.0
43 stars 4 forks source link

Move block style variation CSS to `theme.json` #8

Open justintadlock opened 3 months ago

justintadlock commented 3 months ago

Currently, nearly every style variation in the theme requires defining CSS properties via settings.blocks.blockName.custom, which are applied via block stylesheets. This is so that they can be overwritten via JSON in global style variations or child themes.

There are major limitations with this method, namely that the CSS properties are loaded on every page, even when they are unneeded.

Requires: