Add -withTailwind option to Nextjs recipe #859
Closed
welle-dev-duck
started this conversation in
Ideas
Replies: 1 comment
-
Let's discuss here: #860 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found a way of easily integrating TailwindCss with Puck, where in the editor we have full control over the styles, missing all the headaches cause by class purging.
https://medium.com/@welle-dev-duck/pucks-nextjs-recipe-with-the-full-power-of-tailwindcss-be615bdfe786
I think this could be added to the recipe.
Only modifications would be probably:
create postcss.config.mjs in the root
in styles.css
@import "tailwindcss";
Overriding Puck iframe in app/puck/[…puckPath]/client.tsx
Optionally adding a new field to the base HeadingBlock defined in puck config
Beta Was this translation helpful? Give feedback.
All reactions