Hello, forma
Cards, buttons and accordions need no class names.
An accordion, no JS
It is a native details element.
The complete forma-css documentation: install, customize and browse every component.
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.
transferred in raw, ~9 kB with Brotli
of JavaScript in the framework
carbon rating at Ecograder
socre at Ecograder
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.
Cards, buttons and accordions need no class names.
It is a native details element.
<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>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.