3 ms·
I've been using tailwind in combination with styled components, so that I can easily capture repeated sets of classes. Something like: const PostImage = styl
by tcfunk 5y ago
I've been using tailwind in combination with styled components, so that I can easily capture repeated sets of classes. Something like:
const PostImage = styled(Img).attrs({
className: `
duration-100
transform
transition-transform
ease-in
hover:scale-110
`
})``
- 01brett 5y agoAuthor here, have you looked at twin.macro? https://github.com/ben-rogerson/twin.macro https://github.com/ben-rogerson/twin.macro