Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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
    `
  })``


Author here, have you looked at twin.macro?

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: