What is Tailwind CSS and how does it differ from traditional CSS frameworks?
expand_more
.btn or .card), Tailwind provides low-level utility classes (like flex, pt-4, text-center, bg-blue-500) that you apply directly in HTML.
This approach has three main advantages:
1. Zero CSS bloat: You write styles directly in markup, meaning you rarely write custom CSS.
2. Small bundle sizes: At build time, Tailwind scans your code and only compiles the classes you actually used, resulting in tiny CSS payloads.
3. Design system constraint: It enforces standard design tokens (spacing, colors, typography) out of the box, ensuring visual consistency.