LukasBombach / stylewind

Styled Components API for Tailwind CSS in just 427 B
MIT License
6 stars 0 forks source link

Custom tailwind themes #1

Open allforabit opened 4 years ago

allforabit commented 4 years ago

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.

allforabit commented 4 years ago

Actually the resolveConfig function https://tailwindcss.com/docs/configuration#referencing-in-java-script could help.

LukasBombach commented 4 years ago

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.

allforabit commented 4 years ago

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!