forma-css docs

The complete forma-css documentation: install, customize and browse every component.

What is forma-css?

forma-css is a tiny SCSS microframework born as the successor of Pico CSS: it styles semantic HTML with few or no class names, its interactive components run on zero JavaScript (details and the Popover API), and light and dark modes come for free with light-dark().

It is built for the 95% of the web that does not need a SPA: documentation sites, corporate pages, portfolios, blogs. A whole page can ship without a single class name, and the complete framework weighs ~30 kB raw, ~9 kB over the wire with Brotli.

forma-css by the numbers

~30 kB

transferred in raw, ~9 kB with Brotli

0 kB 

of JavaScript in the framework

A+ 

carbon rating at Ecograder

99/100

socre at Ecograder

A taste, zero classes

A small taste before diving in: a card, two buttons and an accordion without a single class name (one .secondary just to show a variant). The full page walkthrough lives in Getting started.

Hello, forma

Cards, buttons and accordions need no class names.

An accordion, no JS

It is a native details element.

HTML
<article>
  <h4>Hello, forma</h4>
  <p>Cards, buttons and accordions need no class names.</p>
  <div class="flex-row" style="align-items: center">
    <button>Click me</button>
    <button class="btn-secondary">Or me</button>
  </div>
  <div class="accordion">
    <details>
      <summary><h5>An accordion, no JS</h5><span></span></summary>
      <div class="content"><p class="sm">It is a native details element.</p></div>
    </details>
  </div>
</article>

Where to start

New here? Start with Getting started: install, your first page and the class-names-plus-custom-properties pattern.

Then browse by area: Customization, Layout, Content, Forms and Components.

Coming from another framework? The migration guides cover Bootstrap, Pico CSS and Tailwind.