Open allforabit opened 4 years ago
Actually the resolveConfig
function https://tailwindcss.com/docs/configuration#referencing-in-java-script could help.
hey @allforabit I will look into it. I just became a dad the day before yesterday, so I'm afraid it will take a bit of time though :)
Generally speaking, I am generating already the types from the Tailwind CSS with the stylewind-bridge package, so if I manage to make that available to customly themed Tailwind CSSs, that should do the trick.
Congratulations Lukas, you must be over the moon :-)
Thanks for getting back to me. I'll take a look at the stylewind-bridge package and see if I can apply it to my custom theme. Will let you know how I get on.
All the best!
Great lightweight approach to integrating tailwind with React :-) I started using tailwind for a react app but wasn't enjoying having to go back to using the
classname
utility.I'm wondering if it allows for generating types for custom tailwind themes? Maybe it wouldn't be possible derive it though because it can contain functions.