STYLES.md

A simple, open format for defining how your project writes, designs, and communicates — readable by humans and AI coding agents alike.

Think of STYLES.md as a README for style: a predictable, single place for your writing standards, design tokens, and AI agent constraints.

⚠️ Experimental — Validate before use

This project is still experimental. Most content was generated with AI assistance and has not yet been fully validated in real-world conditions.

A STYLES.md file will not automatically make your project consistent or accessible. What it can do is make your standards explicit, machine-readable, and easier for both humans and AI agents to follow.

Please share your experience — positive or negative — in the issue queue.

Why STYLES.md?

Style guides used to be PDFs, Figma boards, or wiki pages that nobody could find. In an era of AI-assisted development, a style guide must be a machine-readable logic gate.

STYLES.md puts your writing conventions, design tokens, and AI agent constraints in one predictable file at your repo root — where humans, automation, and AI agents can all find and use it.

It is part of a broader ecosystem of open standards: ACCESSIBILITY.md and SUSTAINABILITY.md provide the foundational guardrails that STYLES.md builds on.

Two surfaces, one standard

STYLES.md distinguishes between two surfaces that share the same project:

GitHub Pages site

Public-facing pages built with Jekyll. Governed by design tokens, layout patterns, typography, and responsive breakpoints.

Repository documentation

README, AGENTS.md, STYLES.md, examples, and templates. Governed by writing standards, heading hierarchy, and link conventions.

How to get started

  1. Fork this repository or copy STYLES-template.md into your project root.
  2. Choose a flavor from the examples folder that matches your context.
  3. Customize the voice, tokens, and rules for your project. Replace all [PLACEHOLDER] values.
  4. Reference it in your AGENTS.md and LLM prompts so AI agents stay on-brand.
  5. Add the companion standardsACCESSIBILITY.md and SUSTAINABILITY.md — for a complete governance baseline.