12
How to Build a React Page Builder: Puck and Tailwind v4.0
(programming.dev)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Just a quick heads-up since writing this, Tailwind 4.1 was released which introduced a new way to safelist classes using brace expansion. It works pretty much the same as what I show in the blog, but instead of using a .txt file, you can do it inline directly in the
@sourcedirective.Both approaches are totally valid depending on what you need.
You can check it out here: https://tailwindcss.com/blog/tailwindcss-v4-1#safelist-specific-utilities-with-source-inline