Shape & space.
Two columns, a folded arch, and a little breathing room. A study in contrast.
Mono CSS v0.1.0
Mono is the utility-first CSS framework for responsive layouts, custom themes, and rich animations. The CLI generates CSS for the classes you use.
Features
Watch the crew assemble an editorial spread using Mono’s layout, spacing, and typography utilities.
Two columns, a folded arch, and a little breathing room. A study in contrast.
Showcase
Explore a publication, an analytics panel, and a product card. Each preview includes an excerpt from its markup.
<div class="flex items-center justify-between">
<span class="lab-publication">Margin Journal</span>
<small>Field notes</small>
</div>
2,418
<div class="flex items-center justify-between">
<h3 class="text-lg font-bold">Page views</h3>
<small>Last 7 days</small>
</div>
$84
Matte steel<div>
<small>Lighting</small>
<h3 class="font-serif">Arc table lamp</h3>
<p class="font-mono">$84</p>
<small class="lab-material">Matte steel</small>
</div>
Responsive
Start with a single column, then use sm:, md:, lg:, xl:, or 2xl: to adapt the layout.
sm · 640pxmd · 768pxlg · 1024pxxl · 1280px2xl · 1536pxgrid gap-3 md:grid-cols-2 lg:grid-cols-4The grid switches to two columns at 768px and four at 1024px.
Motion
Preview all 24 presets. Set duration, delay, easing, and iteration count with utilities, or define your own keyframes.
motion-safe: respects the device’s reduced-motion preference.
motion-safe:animate-fade-inTheme
Add colors, spacing, breakpoints, and animations with theme.extend. Use arbitrary values such as w-[22rem] for one-off adjustments.
export default {
theme: {
extend: {
colors: { ink: '#151515' },
spacing: { gutter: '1.75rem' },
screens: { wide: '1680px' }
}
}
}
Compiler
Choose a set of classes to inspect its compiled output. Byte counts cover the minified utility rules with the base reset turned off.
class="grid gap-4 p-6"
.gap-4{gap:1rem}.grid{display:grid}.p-6{padding:1.5rem}
class="grid gap-4 md:grid-cols-2"
.gap-4{gap:1rem}.grid{display:grid}@media (width >= 768px){.md\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}}
class="underline focus-visible:ring-2"
@property --mono-ring-offset-shadow{syntax:"*";inherits:false}@property --mono-ring-shadow{syntax:"*";inherits:false}.underline{text-decoration-line:underline}.focus-visible\:ring-2:focus-visible{--mono-ring-offset-shadow:var(--mono-ring-inset,) 0 0 0 var(--mono-ring-offset-width, 0px) var(--mono-ring-offset-color, #fff);--mono-ring-shadow:var(--mono-ring-inset,) 0 0 0 calc(2px + var(--mono-ring-offset-width, 0px)) var(--mono-ring-color, currentColor);box-shadow:var(--mono-ring-offset-shadow, 0 0 #0000), var(--mono-ring-shadow, 0 0 #0000), var(--mono-shadow, 0 0 #0000)}
Quickstart
Run these commands from the Mono directory with Node.js 20 or later.
Add utility classes to elements in index.html.
<main class="grid gap-4 p-6">
Hello, Mono
</main>The scanner reads complete class names from your source files.
node ./bin/mono.mjs build \
--content './index.html' \
--output './dist/mono.css' --minifyInclude the generated stylesheet in <head>.
<link rel="stylesheet"
href="./dist/mono.css">node ./bin/mono.mjs build --content './index.html' --output './dist/mono.css' --minify
Reference
Explore the building blocks behind a Mono interface. Pick a specimen to open its reference.
Browse all utilitiesGrid tracks, flex items, and the space between.
grid-cols-3 · p-4Scale, weight, and rhythm.
leading-tighthover:underlineanimate-fade-inExplore outline, filled, and duotone SVGs. Copy an icon straight into your markup.
Turn a few classes into a stylesheet you can ship.