WordPress / theme-experiments

Experimenting with themes made out of blocks.
GNU General Public License v2.0
546 stars 179 forks source link

Emptytheme: Stop clearing presets #295

Closed kjellr closed 2 years ago

kjellr commented 2 years ago

Emptytheme contains the following code in its theme.json, which is a helpful starting place for theme authors to populate:

        "color": {
            "gradients": [],
            "palette": []
        },
        "typography": {
            "fontFamilies": [],
            "fontSizes": []
        },

... but the downside is that this clears out those presets, and makes their associated tools unavailable (as noticed by @jasmussen here).

I think it makes sense to remove them.

jasmussen commented 2 years ago

Nice one. I was about to ask for the default color palette to also work, but you're on top of it. Sweet!