How do I use a CSS Bed theme on my website?
Updated
Pick a theme on CSS Bed, copy its snippet, and paste it into your page's HTML — no classes or framework setup required. This works if you're starting a plain HTML page and want decent default styling without writing CSS. You'll also want the responsive viewport tag so the theme behaves well on mobile.
What CSS Bed actually gives you
CSS Bed describes itself as "a collection of classless css themes to use as starting points in web development." Classless means you style normal HTML elements (<h1>, <table>, <form>, <blockquote>) and the theme handles the look. The site lists its themes as responsive, broadly browser-supported, small (under a few kilobytes), and free of a learning curve — you write HTML the way you normally would instead of looking up which class does what.
The theme list on the page includes: HTML only, awsm.css, bahunya, bamboo, bootstrap, evenbettermotherfucking, holiday.css, kacit, marx, meyer, minicss, mvp.css, no-class, pico.css, sakura, sakura-vader, simple.css, stylize.css, tacit, thebestmotherfucking, tufte, vanillacss, w3c-chocolate, w3c-traditional, water.css-dark, water.css-light, writ, and yorha.
Steps to apply a theme
- Open CSS Bed and pick a theme. Use the theme list to switch the demo page between styles and see how the same markup renders in each.
- Get the theme's snippet. The page's "How do I get this theme?" section says to paste the snippet into your website. Each theme has its own source behind it (the page links to the source for the theme it's currently showing).
- Paste it into your page. Put the snippet in your HTML — typically in the
<head>— so it loads before your content renders. - Add the responsive viewport tag. CSS Bed states the themes are mobile responsive as long as you add "the famous responsive viewport tag." That's the standard
<meta name="viewport" content="width=device-width, initial-scale=1">line. - Verify. Load your page and resize the browser window. CSS Bed notes that on its own demo page "everything flows super nicely" when you resize — your page should behave the same if the snippet and viewport tag are in place.
Previewing the same page in different themes
CSS Bed's demo page is built exactly for this: it shows one identical page rendered in every theme, so you can compare typography, form styling, tables, and code blocks side by side before committing. Use it to judge how a theme handles the elements you actually use — forms, tables, and blockquotes tend to differ the most between themes.
Common snags
- Missing viewport tag. Without it, the theme still loads but won't scale properly on phones. This is the single most common reason a classless theme "looks broken" on mobile.
- Expecting classes to work. Classless themes target bare elements. If you add framework-style classes, they generally won't do anything.
- Overriding too early. Since the theme is your starting point, add your own CSS after the snippet rather than editing the theme itself, so you can swap themes later.
- Found a bug or want to add a theme? The page points to the CSS Bed source on GitHub for bug reports and theme submissions.
When this is the right choice
Use CSS Bed if you want a fast, lightweight starting point for a simple page and don't want to learn a framework. If you need component libraries, utility classes, or heavy customization out of the box, a classless theme will feel limiting — it's designed to style plain HTML, not to be a full framework.