---
title: "Comment by Bruno Prado on \"Typewind: The magic of Tailwind combined with the safety of Typescript\" | Hashnode"
description: "How can we create variants like Class Variance Authority?"
url: "https://hashnode.com/posts/typewind-the-magic-of-tailwind-combined-with-the-safety-of-typescript/63d12a3ccf098004f0e592b8/comment/63d1adeb2086bff3543cae6d"
---

[Discussion](https://hashnode.com/posts/typewind-the-magic-of-tailwind-combined-with-the-safety-of-typescript/63d12a3ccf098004f0e592b8)

Comment [Typewind: The magic of Tailwind combined with the safety of Typescript](https://hashnode.com/posts/typewind-the-magic-of-tailwind-combined-with-the-safety-of-typescript/63d12a3ccf098004f0e592b8)

[Bruno Prado](https://hashnode.com/@bwprado)

[Jan 25, 2023](https://hashnode.com/posts/typewind-the-magic-of-tailwind-combined-with-the-safety-of-typescript/63d12a3ccf098004f0e592b8/comment/63d1adeb2086bff3543cae6d)

How can we create variants like Class Variance Authority?

[Kavin Desi Valli](https://hashnode.com/@kavinvalli)

[Jan 26, 2023](https://hashnode.com/posts/typewind-the-magic-of-tailwind-combined-with-the-safety-of-typescript/63d12a3ccf098004f0e592b8/comment/63d1adeb2086bff3543cae6d#reply-63d2244086d46f062c9df162)

Typewind works with CVA. Just use `tw` instead of tailwind and you should be good to go!

[youtube.com/watch](https://www.youtube.com/watch?v=B6FrDu2Qbt0&t=11m24s)

Just replace the string classes with their tw equivalents.

Like `bg-white text-text` would be `tw.bg_white.text_text`
