Semantic HTML.
Zero JavaScript.
forma is a CSS framework that unleashes the power of native HTML components.
The web got heavy.
The average modern web page weighs ~4.2 MB of CSS and JavaScript — to render what the browser can already do natively.
forma-css was born from a simple question:
what if we stopped fighting the platform and let HTML do the work?
The answer: a class-light SCSS microframework in the spirit of Pico CSS. Import one file — under 50 kB of CSS, under 10 kB over the wire — and semantic HTML becomes a styled, accessible interface. Zero JavaScript.
With forma CSS you get...
< 50 kb
A complete site, styled: under 50 kB of CSS, under 10 kB over the wire. What other frameworks ship in one button row.
0% JavaScript
Accordions, tabs and dropdowns built on <details>, Popover API and other native HTML.
A+ at Ecograder
Green by default: forma-css is a fundamental piece to achieve a good rating in energy efficiency audits. Lightweight by design.
Accessible by principle
Keyboard, focus and screen readers come for free when components are native HTML — without any JavaScript layer on top.
4 CSS Layers
Cascade layers via @layer — forma.reset, base, components, utilities. Not a single !important in the whole codebase: your rules always win.
1 token set
Every element exposes its own --forma-* custom properties, wrapped in light-dark(). Dark mode without duplicating a single line.
2 colors to rule them all.
Define primary and secondary per theme (light and dark) and every hover, active and secondary state derives automatically in relative oklch.
Optional modules.
Toggle any component from $modules in _config.scss and ship only what you use.
Your markup is the API.
Write semantic HTML; forma-css does the rest. States derive in relative oklch, themes switch with light-dark(), and cascade layers keep your stylesheet tidy.
Minimalism is the feature: almost no class names — only a few utilities like .grid, .sm or .badge where HTML alone can't express it.
Don't take my word for the weight: this site runs on forma-css and holds an A+ carbon rating at Ecograder (under 0.02 g CO₂ per visit). The full comparison with Pico CSS, Bootstrap and Tailwind — raw and gzipped — lives in Philosophy.
Coming from Bootstrap, Pico or Tailwind? The migration guides map the way.
This dropdown is interactive — open it, hover it, navigate it with the keyboard. Not a single line of JavaScript: details, summary and the Popover API do all the work, and forma-css styles them.
Drop down
<details class="dropdown">
<summary class="btn">Drop down</summary>
<ul>
<li><button type="button">Action</button ></li>
<li><button type="button">Another action</button ></li>
<li><button type="button">Something else here</button ></li>
</ul>
</details>