Extending Tailwind in Twin.Macro #517
-
Hello there, I'm trying to extend Tailwind's CSS classes in order to add
But I have no idea how to achieve the same thing in Twin.Macro. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
There's a few ways you could add this (not in order):
|
Beta Was this translation helpful? Give feedback.
-
Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
Should this extension be necessary now? According to the tailwind docs (https://tailwindcss.com/docs/scroll-snap-type), scroll-related properties are built into tailwind. However, when I attempt to use, for example,
Seems like none of the snap classes are usable in |
Beta Was this translation helpful? Give feedback.
There's a few ways you could add this (not in order):
The global provider can be imported from your css-in-js library. `className="..." is used to add the styles to JSX elements