Sandro Maglione @sandromaglione.bsky.social · 23/12/2024👉 HTML custom data attributes Define states as `data-` attributes, and then reference them easily as tailwind classes Use the new `variant` to clean all up as well 100
Sandro Maglione @sandromaglione.bsky.social · 23/12/2024👉 className instead of variants Extract variants as `utility` and compose styles as classes instead of props 100
Sandro Maglione @sandromaglione.bsky.social · 23/12/2024Read the full details and examples in the article 👇 www.typeonce.dev/article/patt...typeonce.devPatterns for composable tailwindcss styles | TypeonceProfessional training for Full-Stack software development teams 000