Hacker News new | ask | show | jobs
by tcfunk 1694 days 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
    `
  })``
1 comments

Author here, have you looked at twin.macro?

https://github.com/ben-rogerson/twin.macro