roots / sage

WordPress starter theme with Laravel Blade components and templates, Tailwind CSS, and a modern development workflow
https://roots.io/sage/
MIT License
12.71k stars 3.06k forks source link

Bug: Tailwind text size class not working when `theme.json` generation is enabled #3092

Closed kukac7 closed 1 year ago

kukac7 commented 1 year ago

Terms

Description

ignored talwindcss font-size classes.

Steps To Reproduce

install latest sage. i write the text-2xl. build. no class is generated.

Expected Behavior

bigger text.

Actual Behavior

nothing, no text-2xl class.

Relevant Log Output

No response

Versions

sage 10.3.0 node 18.7.0 npm 8.19.1

edit:

if i commented the theme.json generals from the bud.config.mjs file, it will be fine.

retlehs commented 1 year ago

Confirmed this is a bug, thank you for the report!

retlehs commented 1 year ago

The theme.json generator is generating invalid CSS right now:

.text-2xl font-size{line-height:2rem}

We'll get this fixed in Bud and push out a new release soon

retlehs commented 1 year ago

This is fixed with Bud v6.4.5

https://github.com/roots/bud/releases/tag/v6.4.5

I’ll get it bumped and put out a new Sage release tomorrow