Mono CSS v0.1.0

Build in markup.
Ship less CSS.

Mono is the utility-first CSS framework for responsive layouts, custom themes, and rich animations. The CLI generates CSS for the classes you use.

MONO / BUILD CANVASLogo preview
Build dependencies
0
Animation presets
24
Built-in breakpoints
5
Mono runtime JavaScript
0 KB

Features

From grid to type.

Watch the crew assemble an editorial spread using Mono’s layout, spacing, and typography utilities.

spread.html
Complete

Showcase

One toolkit, three interfaces.

Explore a publication, an analytics panel, and a product card. Each preview includes an excerpt from its markup.

Margin Journal Field notes

The shape of quiet streets

Editorial · markup excerpt
<div class="flex items-center justify-between">
  <span class="lab-publication">Margin Journal</span>
  <small>Field notes</small>
</div>

Responsive

One layout, many screens.

Start with a single column, then use sm:, md:, lg:, xl:, or 2xl: to adapt the layout.

sm · 640pxmd · 768pxlg · 1024pxxl · 1280px2xl · 1536px
Grid examplegrid gap-3 md:grid-cols-2 lg:grid-cols-4
Index
Content
Examples
Reference

The grid switches to two columns at 768px and four at 1024px.

Motion

Make motion intentional.

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-in

Theme

Bring your own design tokens.

Add colors, spacing, breakpoints, and animations with theme.extend. Use arbitrary values such as w-[22rem] for one-off adjustments.

mono.config.mjs
export default {
  theme: {
    extend: {
      colors: { ink: '#151515' },
      spacing: { gutter: '1.75rem' },
      screens: { wide: '1680px' }
    }
  }
}

Compiler

See what ships.

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"

Generated CSS55 B
.gap-4{gap:1rem}.grid{display:grid}.p-6{padding:1.5rem}

Quickstart

From classes to CSS.

Run these commands from the Mono directory with Node.js 20 or later.

Write your markup

Add utility classes to elements in index.html.

<main class="grid gap-4 p-6">
  Hello, Mono
</main>

Build the CSS

The scanner reads complete class names from your source files.

node ./bin/mono.mjs build \
  --content './index.html' \
  --output './dist/mono.css' --minify

Load the stylesheet

Include the generated stylesheet in <head>.

<link rel="stylesheet"
  href="./dist/mono.css">
Terminal · single command
node ./bin/mono.mjs build --content './index.html' --output './dist/mono.css' --minify

Reference

The utility index.

Explore the building blocks behind a Mono interface. Pick a specimen to open its reference.

Browse all utilities

Icon library

Explore outline, filled, and duotone SVGs. Copy an icon straight into your markup.

Browse icons

Start with your next component.

Turn a few classes into a stylesheet you can ship.

Open the quickstart