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


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>&copy; 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

11ty Features

CSS Features

API Reference


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


File Sizes


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:


Links


Standard Framework — Stop configuring. Start creating. ✨

Version 0.10.52 · MIT Licensed · Zero Dependencies