Coming from Bootstrap

Years of Bootstrap teach you to reach for classes for everything. forma-css inverts the habit: the element is the component, and custom properties replace utility CSS.

The main translations

  • .btn → just <button>; variants like .btn-secondary → class="secondary".
  • .card → <article> (optionally with <header>/<footer>).
  • .container → body > main or .main-container.
  • .row/.col-md-* → .responsive-container and .responsive-column with --span-md:*.
  • Badges .badge .bg-* → .badge (self-inverting) or .color-* text utilities.
  • Accordion and dropdown JS plugins → <details>; modals → the native Popover API with popovertarget.
  • .btn-sm/.btn-lg → the universal .sm/.lg classes.
  • !important and specificity wars → gone: the framework lives in lower cascade layers, your rules win without force.

The end of the !important wars

In Bootstrap, overriding a rule meant escalating specificity until !important — and then escalating again to beat your own !important. forma-css declares its cascade layers up front (forma.reset, base, components, utilities), so the framework loses to your stylesheet by construction. Override any component by writing plain CSS again: no selectors to out-gun, no force to escalate, and the entire codebase ships without a single !important.

Bootstrap card vs forma article

Same card, side by side: five Bootstrap class names become one semantic article with header and footer, and the button loses .btn entirely.

Card title

Some text.

Go

Card title

Some text.

HTML
<!-- Bootstrap -->
<div class="card" style="max-width:18rem">
  <div class="card-body">
    <h5 class="card-title">Card title</h5>
    <p class="card-text">Some text.</p>
    <a href="#" class="btn btn-primary">Go</a>
  </div>
</div>

<!-- forma-css -->
<article style="max-width:18rem">
  <div>
    <h3>Card title</h3>
    <p>Some text.</p>
  </div>
  <footer><button>Go</button></footer>
</article>