Skip to content

Latest commit

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

STYLE.md

A file format for portable creative style specifications.

STYLE.md is a Markdown file with YAML front matter that describes a creative style — colors, typography, mood, voice, lighting, composition, materials, motion, and more. Any AI tool that reads Markdown can consume it.

The format is designed for the same use case as DESIGN.md (UI implementation tokens for coding agents), but for a broader creative surface: photography, illustration, copywriting, motion graphics, product design, video, and any discipline where consistent aesthetic output matters.

Drop a STYLE.md file in your project root. Your coding agent, image generator, writing assistant, or diffusion model reads it as context and applies the style to every output.

Quick Start

Create a file called STYLE.md in your project root:

---name: "Studio Warm"description: "Warm minimal photography style with soft lighting"sections:
- output-format
- colors
- light-and-shadow
- mood-and-personalitysignals:
color_palette: "#F5E6D3 30%, #2C1810 25%, #D4956A 20%"mood_personality: "Calm, Minimal, Warm"lighting_mood_style: "Golden-hour"---# Studio Warm> This file defines a creative style specification for AI-generated content.> Apply all rules below to every generated image, text, video, or design.## Output Format
Photography. Digital. 3:2 aspect ratio.
## Colors
Palette: #F5E6D3 30%, #2C1810 25%, #D4956A 20%, #8B6914 15%, #F0F0E8 10%.
Warm temperature. Muted saturation. Low-medium contrast.
## Light & Shadow
Natural lighting. Soft key light. Single source. Golden-hour mood.
Shadow type: Soft. Exposure: Slightly overexposed.
## Mood & Personality
Calm, Minimal, Warm. Energy: Gentle. Emotional bias: Positive.

That's it. Any AI tool that reads your project files will apply this style.

File Structure

A STYLE.md file has two parts:

YAML Front Matter

Machine-readable metadata for quick discovery. Agents can branch on signals without parsing the full document.

---
name: <string> # required — human-readable style namedescription: <string> # optional — one-line summarygenerator: <string> # optional — tool that produced this filesections: # required — section IDs present in the body
- <section-id>signals: # optional — key-value summary of top style attributes<key>: <string>
---

Markdown Body

The full style specification, organized into ## sections. The prose body is authoritative — signals are for routing only.

Sections

STYLE.md defines 20 creative domains. Include only the ones relevant to your style.

Section IDHeadingCovers
output-formatOutput FormatMedium, platform, aspect ratio, resolution, discipline
mood-and-personalityMood & PersonalityEnergy, emotional bias, humor, narrative, characters
colorsColorsPalette (hex + weights), temperature, contrast, saturation
typographyTypographyFont family, weights, hierarchy, case, scale
light-and-shadowLight & ShadowLighting mood, key light, direction, shadows, atmosphere
voice-and-languageVoice & LanguageFormality, vocabulary, directness, sentence length
spatial-structureSpatial Structure & HierarchyPerspective, focal structure, layout, symmetry
camera-and-motionCamera & MotionShot size, angle, DOF, lens, film stock, animation
shape-languageShape LanguageShape basis, edges, silhouette, negative space
container-and-boundaryContainer & BoundaryContainer shape, corners, padding, edge behavior
stroke-systemLine & Stroke SystemStroke usage, weight, consistency, color
surface-and-materialSurface, Material & DetailTexture, material simulation, patterns, micro-detail
post-processingPost-processing & Render StyleTone curve, grain, sharpening, render engine
background-and-environmentBackground & EnvironmentBackground type, environment mood, props
artistic-mediumsArtistic Mediums & TechniquesPhysical medium, illustrative technique
ui-and-webUI & WebColor theme, elevation, buttons, icons, navigation
referencesReferencesCultural references, temporal era, reference brands
inspirationInspirationReference image URLs
guardrailsGuardrailsAvoided visuals, colors, words, layouts, legal constraints
customCustom Style ItemsFree-form key-value pairs

Unknown sections are valid and should be preserved by consumers — the format is extensible.

Signals

The signals block provides a compact, machine-readable summary for agents that need to branch on style attributes without parsing the full document.

  • Dynamic. Signal keys are derived from the style's content. Different styles produce different keys.
  • For routing, not application. Signals tell an agent what kind of style this is. The prose body is what gets applied.
  • Budget: ~150 tokens. Typically 6–10 key-value pairs.

Consumer Behavior

Tools that read STYLE.md files should follow these conventions:

ScenarioExpected behavior
Unknown section headingPreserve and apply; do not error
Unknown signal keyAccept if value is a string
Missing signals blockValid; signals are optional
Missing descriptionValid
Missing generatorValid
Duplicate section headingError; reject the file
Empty section bodyValid; no rules for this domain

Relationship to DESIGN.md

DESIGN.md specifies UI implementation tokens — CSS-ready values for colors, spacing, typography, border-radius, and components. It's precise, code-level, and scoped to web/app interfaces.

STYLE.md specifies creative intent across any medium. It covers the broader aesthetic surface: mood, voice, lighting, camera, materials, composition, motion — and includes a ui-and-web section that overlaps with DESIGN.md for UI direction.

The two formats are complementary. A project can use both: DESIGN.md for exact design tokens, STYLE.md for the creative direction that informs everything else.

Examples

See examples/ for complete STYLE.md files:

  • kokeshi/STYLE.md — Japanese kokeshi doll aesthetic (photography, muted earth tones, geometric shapes)

Specification

The full format specification is in spec.md.

Tools

  • StyleRef — Visual builder for STYLE.md files. Define your style with structured blocks, extract from images or documents, and export as STYLE.md. Created and maintained by the authors of this format.

Building a tool that reads or writes STYLE.md? Open an issue or email us to be listed here.

License

MIT

Releases

Packages

Contributors