Replies: 4 comments 1 reply
-
I think that's a great idea. |
Beta Was this translation helpful? Give feedback.
-
In a gatsby/twin project the only other thing is the
line that I think is still required. If it is, perhaps someone might also need |
Beta Was this translation helpful? Give feedback.
-
That guide needs to be updated, the base.min.css file is now added via the GlobalStyles also adds some keyframes for the animation classes and some variables for some other classes. Check this PR. |
Beta Was this translation helpful? Give feedback.
-
I've decided to go with the tailwindcss installation as it's the easiest way to tackle this and there were some current issues installing twin with yarn when not adding tailwindcss yourself. |
Beta Was this translation helpful? Give feedback.
-
twin imports tailwindcss behind the scenes.
Extending a default tailwind theme in the config may require directly importing from
tailwindcss
which in my case (gatsby in monorepo) fails to build unlesstailwindcss
is added as a directpackage.json
dependency. But this can lead to version inconsistencies.Example:
Since twin imports tailwindcss, it might lead to a consistent experience if it exposes such tailwind interfaces?
Even something like:
const defaultTheme = require('twin/tailwindcss/defaultTheme')
Beta Was this translation helpful? Give feedback.
All reactions