These are 2 snippets that I have written.
Component variant make easy with tailwindcss and typescript
Sử dụng nhiều theme cho tailwindcss một cách đơn giản