The Lazy Way to Make Plain HTML Look Good
Compare five classless CSS frameworks—Pico, Water.css, MVP.css, Simple.css and Sakura—to style plain HTML, with setup links, dark mode notes and use cases.
A classless CSS framework is a stylesheet that styles HTML elements directly (headings, links, tables, form controls), so one <link> tag in the <head> makes a plain HTML page look finished without a single class attribute or build step.
You wrote the docs page, internal admin form or blog post in clean semantic HTML, and it renders in Times New Roman with blue underlined links and an unstyled table. You don’t want to install a framework just to fix that.
This article uses one realistic sample page and runs five classless stylesheets against it: Pico CSS, Water.css, MVP.css, Simple.css and Sakura. Each gets the same four checks: the link tag, the overall look, dark mode support and when to pick it.
Key Takeaways
- Classless CSS styles semantic elements directly, so changing frameworks means changing one
<link>href and nothing else. - Pico CSS’s default build is class-light. For markup with no classes, link
pico.classless.min.css, which also turnsheader,mainandfooterinsidebodyinto centred containers. - Water.css and Simple.css follow the system dark mode setting automatically. Pico ships light and dark schemes. MVP.css follows the system only when
<html color-mode="user">is set. Sakura provides dark mode as a separate stylesheet. - MVP.css adds its own layout to
header,nav,sectionandaside, so ordinary document markup can look quite different under it. - Classless CSS gives you typography and form styling, not layout. Sidebars, dashboards and app shells still need classes or your own CSS.
What Does Classless CSS Do (and Who Is It For)?
Classless CSS uses element selectors instead of class selectors. If your markup uses <header>, <nav>, <main>, <article>, <table> and <form> properly, the stylesheet already has everything it needs. You don’t run a build, learn a naming convention or depend on JavaScript.
Classless CSS suits documentation, prototypes, internal tools, Markdown-generated pages and personal blogs: pages where the content is the product and nobody is paying for a custom design. For the full range of options, the classless-css list on GitHub catalogues dozens of them. The five below are the ones most people end up choosing between. If you’d rather read about one framework in depth, see A Beginner’s Guide to BareCSS.
Classless CSS Frameworks Compared at a Glance
All five classless CSS frameworks (Pico CSS, Water.css, MVP.css, Simple.css and Sakura) work on the same markup, so switching between them is a one-line change to the <link> tag. That makes it easy to try each one on your real page before you commit.
| Library | File to link | Dark mode | Pick it if |
|---|---|---|---|
| Pico CSS | pico.classless.min.css | Light and dark schemes | You want polished forms and a centred container |
| Water.css | water.min.css | Automatic, plus forced light or dark builds | You want the safest default for any page |
| MVP.css | mvp.css | Opt-in via color-mode="user" | You’re prototyping a landing page |
| Simple.css | simple.min.css | Automatic | You’re writing a blog or docs site |
| Sakura | sakura.css | Separate dark stylesheet | You want a narrow, reading-first column |
The Sample Page
The page below includes the parts a real internal page tends to have: a header with navigation, an article containing a table, a form and a footer. To try a framework, replace the href on the stylesheet <link>.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Release notes</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.min.css">
</head>
<body>
<header>
<h1>Release notes</h1>
<nav>
<ul>
<li><a href="#changes">Changes</a></li>
<li><a href="#feedback">Feedback</a></li>
</ul>
</nav>
</header>
<main>
<article id="changes">
<h2>Version 1.4</h2>
<p>This release adds CSV export and fixes two date-parsing bugs.</p>
<table>
<thead><tr><th>Area</th><th>Change</th></tr></thead>
<tbody>
<tr><td>Export</td><td>CSV download added</td></tr>
<tr><td>Dates</td><td>ISO week numbers fixed</td></tr>
</tbody>
</table>
</article>
<form id="feedback">
<label for="email">Email</label>
<input id="email" type="email">
<label for="msg">Message</label>
<textarea id="msg"></textarea>
<button type="submit">Send</button>
</form>
</main>
<footer><p>Internal tool · Team Docs</p></footer>
</body>
</html>
header, main and footer sit directly inside body. Some frameworks rely on that structure, as the Pico section explains.
Pico CSS (Classless Build)
Pico CSS’s default build is class-light. Pico publishes a separate classless build, pico.classless.min.css, and that is the file to link when your HTML has no classes.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css">
Look: modern and app-like, with generous spacing and especially well-finished form controls. In the classless build, header, main and footer as direct children of body become the centred container, which the sample page already matches. For a full-width layout, the Pico README also lists a fluid variant, pico.fluid.classless.min.css.
Dark mode: Pico includes both light and dark color schemes.
Pick it if your page is mostly forms, such as an admin tool or settings page, and you want it to look like a product.
Water.css
Water.css is the least opinionated of the five. It improves typography, form controls and tables without imposing a page layout.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.min.css">
Look: a neutral, centred reading column with understated controls. See the Water.css demo.
Dark mode: according to the Water.css README, the main file follows the system light or dark setting. Link out/dark.min.css or out/light.min.css instead if you want to force one scheme.
Pick it if you want a sensible default you can drop onto any page and forget about.
MVP.css
MVP.css treats structural elements as layout primitives. It styles header, nav, section and aside with its own layout rules, so a page that uses them only for document structure can look noticeably different under MVP.css than under the other four.
<link rel="stylesheet" href="https://unpkg.com/mvp.css">
The MVP.css documentation page gives this unpkg URL as its copy-and-paste link tag.
Look: landing-page style. Headers are centred, nav becomes a horizontal bar, and aside elements inside a section render as cards. Before you choose it, read the MVP.css source for any element you use for ordinary document structure.
Dark mode: opt-in. Without the attribute, MVP.css stays light. When the <html> element carries color-mode="user", it follows the system preference, as in the project’s own docs page:
<html lang="en" color-mode="user">
Pick it if you’re mocking up a product page or MVP pitch and want hero sections and cards without writing classes.
Simple.css
Simple.css is aimed at blogs and small websites, and its defaults read well for long-form text.
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
The project’s getting-started guide recommends this CDN-hosted minified file, which is republished whenever the GitHub repository is updated, and it also documents unpkg as an alternative.
Look: a clean, centred blog layout with a full-width header band. It is classless by default but includes two optional classes, .button and .notice, for the occasional styled link or callout.
Dark mode: automatic, driven by the system setting. The Simple.css wiki also explains how to force light or dark only.
Pick it if you’re publishing a blog or docs site.
Sakura
Sakura is a minimal stylesheet built for reading, with a narrow measure and soft colors.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sakura.css/css/sakura.css">
Look: a tight text column with restrained styling, close to a well-typeset plain document. See the Sakura demo.
Dark mode: Sakura ships its dark theme as a separate file, css/sakura-dark.css. The Sakura README documents a two-link pattern. The base file always loads, and the dark file applies on top only when the prefers-color-scheme media query matches:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sakura.css/css/sakura.css" media="screen">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sakura.css/css/sakura-dark.css" media="screen and (prefers-color-scheme: dark)">
Pick it if your page is almost all prose and you want it to read like an essay.
What Are the Limits of Classless CSS?
Classless CSS does not handle layout. A sidebar, a dashboard grid or a multi-column app shell still needs classes or your own CSS. These frameworks style elements, and they have no way of knowing that one <div> should be a 240px rail beside another.
Expect to write a little custom CSS alongside a classless framework. Put it in a stylesheet linked after the framework, because when two rules have equal specificity, the later one wins. Load order is enough, so you don’t need !important.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.min.css">
<link rel="stylesheet" href="custom.css">
/* custom.css, loaded after the framework */
h1, h2, h3 { text-wrap: balance; }
main { max-width: 60rem; }
The first rule keeps long headings from leaving one word alone on the last line. Fixing headline breaks with text-wrap covers it in detail. The second widens the content column for table-heavy pages.
Before you ship, check the chosen theme’s text and link colors with a color contrast checker, in both light and dark mode. Muted secondary text is where default themes most often fall short.
Choose by Swapping One Line
Classless CSS works because semantic HTML already describes the page, so the stylesheet only has to make it look good. Paste the sample page above (or your own) into a file, then swap the <link> through Pico’s classless build, Water.css, MVP.css, Simple.css and Sakura. Keep the one that looks right for your content, then add a short custom.css after it for the details it doesn’t cover.
FAQs
How do I change the colors of a classless CSS framework without editing its file?
Override its CSS custom properties in a stylesheet loaded after the framework. Water.css defines its base colors as custom properties, so setting a variable such as --links on :root recolors every link, and wrapping the override in a prefers-color-scheme: dark media query changes it for dark mode only. Pico CSS v2 exposes its theme through variables prefixed with --pico-, which you override the same way.
Can I use a classless CSS framework on a page that also uses Bootstrap or Tailwind?
Not safely with a standard classless build. Classless stylesheets target elements such as button, input and table globally, so they restyle every matching element, including the ones inside another library's components. Pico CSS v2 handles this case with conditional builds such as pico.conditional.min.css, which apply styling only to elements inside a container with the .pico class.
What is the difference between classless CSS and a reset like normalize.css?
A reset or normalize.css only removes or evens out browser default styles, so the page still looks plain afterwards. A classless framework applies a complete theme to semantic elements, covering typography, spacing, colors, links, tables and form controls. Use a reset as the base for a design you plan to write yourself. Use a classless framework when you want a finished look with no design work.
Gain Debugging Superpowers
Unleash the power of session replay to reproduce bugs, track slowdowns and uncover frustrations in your app. Get complete visibility into your frontend with OpenReplay — the most advanced open-source session replay tool for developers.
Star on GitHub12k