Standard Framework
A fine-art design framework implementing classical typography, Swiss grid systems, and vertical rhythm with mathematical precision.
Typography is the voice · Grid is the structure · Rhythm is the flow · Color is the emotion
Philosophy
Standard is built on the belief that design systems should be rooted in centuries of typographic tradition, mathematical precision, and the timeless principles of Swiss International Style.
“Typography is the craft of endowing human language with a durable visual form.”
— Robert Bringhurst
Core Principles
- Mathematical Precision — Every measurement derives from the golden ratio (φ = 1.618)
- Fine-Art Typography — Classical typography rules that CSS cannot handle
- Swiss Grid System — 12-column responsive grid inspired by Josef Müller-Brockmann
- Vertical Rhythm — All elements align to a baseline grid using
1rlhunits - Zero Configuration — Works beautifully out of the box with 11ty
- Zero Dependencies — Pure CSS and vanilla JavaScript
Key Features
🎨 Typography Engine
Automatic enhancement of text with smart quotes, proper punctuation, em-dashes, fraction formatting, and widow prevention.
📐 Swiss Grid System
12-column responsive grid with asymmetric layouts and free column positioning.
🎵 Vertical Rhythm
Bulletproof spacing system where all elements align to a baseline grid.
🌈 Color System
Automatic light/dark theming with semantic colors and high-contrast support.
📖 Reading Layout
Editorial-quality layouts optimized for long-form content with multiple width variants.
11ty Ready
Complete 11ty plugin with Markdown enhancements, backlinks, encryption, and filters.
Getting Started
Installation
npm install @zefish/standard
Quick Setup (5 minutes)
npm init -y
npm install --save-dev @11ty/eleventy
npm install @zefish/standard
Create eleventy.config.js:
import Standard from "@zefish/standard";
export default function (eleventyConfig) {
eleventyConfig.addPlugin(Standard);
return {
dir: { input: "content", output: "_site" }
};
}
Create _includes/layouts/base.njk:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title or "My Site" }}</title>
{% standardAssets %}
</head>
<body class="bg-background text-foreground">
<header class="rhythm-block p-4">
<h1>My Website</h1>
</header>
<main class="max-w-prose mx-auto px-4 rhythm-block">
{{ content | safe }}
</main>
<footer class="rhythm-block p-4">
<p>© 2024</p>
</footer>
</body>
</html>
Create content/index.md:
---
layout: layouts/base.njk
title: Home
---
# Welcome
Beautiful website. Beautiful typography. No CSS to write.
Build and view:
npx @11ty/eleventy --serve
Done. Your website is live at http://localhost:8080 🚀
What You Get
✅ Professional Typography — Golden ratio proportions, perfect spacing
✅ Responsive Design — Mobile, tablet, desktop — all handled
✅ Dark Mode — Automatic system preference detection
✅ Accessibility — WCAG AA compliant from the start
✅ No Configuration — Works out of the box
✅ Small & Fast — 15KB CSS, 2KB JS (gzipped)
✅ 11ty Integration — Enhanced markdown, backlinks, encryption
Documentation
Comprehensive guides and API reference:
User Guides
- CSS Framework - Typography, grid, spacing, colors
- 11ty Plugin - Setup, markdown, filters, backlinks
- Quick Start - Build your first site in 5 minutes
- Getting Started - Complete setup guide
11ty Features
- Markdown Enhancements - Extended markdown syntax
- Filters & Helpers - Data transformation
- Backlinks - Wiki-style linking
- Encryption - Password protection
- Advanced Features - Power user techniques
CSS Features
- Typography System - Font scales and sizing
- Grid System - Responsive layouts
- Color System - Light/dark theming
- Spacing & Rhythm - Vertical rhythm
API Reference
- Full API Docs - Auto-generated from source code
Examples
Basic HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="standard.min.css">
</head>
<body class="rhythm reading">
<h1>Hello World</h1>
<p>Beautiful typography, automatically.</p>
<script src="standard.min.js" type="module"></script>
</body>
</html>
Responsive Grid
<div class="grid">
<div class="col-12 md:col-6 lg:col-4">
Full width on mobile, half on tablet, third on desktop
</div>
<div class="col-12 md:col-6 lg:col-4">...</div>
<div class="col-12 md:col-12 lg:col-4">...</div>
</div>
11ty with Backlinks
---
layout: layouts/article.njk
title: My Article
---
# {{ title }}
Learn about [[TypeScript]] and [[Web Development]].
Backlinks automatically appear on those pages!
Protected Content
---
layout: layouts/article.njk
title: Premium Content
encrypted: true
password: members-only
---
# Exclusive Article
Password protected, decrypts in the browser.
Browser Support
- Chrome/Edge 90+
- Firefox 88+
- Safari 14+
- Mobile browsers
File Sizes
- CSS: ~15KB gzipped
- JavaScript: ~2KB gzipped
- Total: ~17KB gzipped
Customization
Override CSS variables:
:root {
--color-accent: #0066cc;
--font-family-serif: "Georgia", serif;
--line-width: 60rem; /* Optimal reading width */
}
License
MIT — see LICENSE
Credits
Created by Francis Fontaine
Inspired by:
- Robert Bringhurst — The Elements of Typographic Style
- Josef Müller-Brockmann — Swiss grid systems
- The web typography community
Links
- Homepage: standard.ffp.com
- GitHub: github.com/ZeFish/Standard
- npm: @zefish/standard
Standard Framework — Stop configuring. Start creating. ✨
Version 0.10.52 · MIT Licensed · Zero Dependencies