Hello, forma
Buttons, forms and cards need no class names.
forma-css styles the HTML you already write. Semantic elements are the components: forms, headings, buttons, tables and cards work without a single class name.
forma-css is distributed on npm:
npm i forma-cssImport the framework in your main SCSS file and compile as usual:
@use "forma-css";That is all. Drop the import inside any build pipeline (Vite, esbuild, Dart Sass) or compile it once and ship the resulting CSS.
No build step at all: link the compiled CSS from a CDN and you are done. Pin the major version with the @1 tag so minor updates arrive automatically without breaking changes:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/forma-css@1/css/forma-css.min.css" />Nothing to install, nothing to compile. If you only need the base layer (normalize, layout and typography), swap it for forma-css-base.min.css.
This page needs no classes at all: the nav, headings, article, button and footer are styled from semantic HTML alone. One .secondary class appears only where a variant is needed.
Buttons, forms and cards need no class names.
<body>
<header>
<nav>
<ul>
<li><strong>My site</strong></li>
<li><a href="#">Docs</a></li>
<li><a href="#">About</a></li>
</ul>
</nav>
</header>
<main>
<article>
<h1>Hello, forma</h1>
<p>Buttons, forms and cards need no class names.</p>
<div class="flex-row">
<button>Click me</button>
<button class="secondary">Or me</button>
</div>
</article>
</main>
<footer><p class="sm">© 2026</p></footer>
</body>forma-css combines class names with custom properties used as inline style to keep the shipped CSS small. Instead of shipping .col-1 … .col-12 for every breakpoint, one class plus --span: 2.5 in a style attribute does the job – with decimal values no utility grid can express.
This pattern repeats across the whole framework: size utilities (.sm, .lg, .xl), grids, and per-element tokens like --forma-button-*.
Read Customization to adapt colors and typography, Layout for containers and grids, and the Migration guides if you come from Pico CSS, Bootstrap or Tailwind.