Roadmap › HTML5 & CSS3 — Semantic Markup to Responsive Layouts › Module: Modern CSS and Frameworks
Lessons in this course (11)

10. Bootstrap, Tailwind and CSS architecture

IntermediateMediumLesson 10 of 11
ApproachExampleProsCons
Component frameworkBootstrap 5Fast, consistent grid and componentsSites look alike, heavier CSS
Utility-firstTailwind CSSNo naming, small production CSS, design tokensLong class lists in markup
MethodologyBEM (.card__title--active)Predictable, low specificityVerbose names
Scoped CSSCSS Modules, Angular view encapsulation, Vue scopedNo global leaksTooling-specific
html
<!-- Bootstrap grid -->
<div class="container"><div class="row"><div class="col-12 col-md-6 col-lg-4">Card</div></div></div>
<!-- Tailwind -->
<div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3"><div class="rounded-xl p-4 shadow">Card</div></div>