<!-- ScreamingFace Design System 2.1.0 · 3f864eb · https://brand.screamingface.ai -->
# ScreamingFace Design System: for AI agents

How ScreamingFace looks and reads, served as plain files. This file is the entry point.
Everything it names is on https://brand.screamingface.ai.

**Status: released.** Every guidance file is `status: released`. Decision records marked
`reconstructed: true` were recovered from past records and list their sources.

## Start here

1. **Pick the register.** Product (interfaces people work in) or marketing (pages that make
   the case). It decides the accent, the display type and whether gold appears. Read
   `/design/foundations/register.md`. If you can't tell which one applies, ask.
2. **Read the file for what you're making**, then only the guidance and components it names:

   | Making | File |
   |---|---|
   | A web page or section | `/design/media/web-pages.md` |
   | A Claude artifact | `/design/media/claude-artifacts.md` |
   | An internal tool or dashboard | `/design/media/internal-tools.md` |
   | A graphic or diagram | `/design/media/graphics.md` |
   | Slides | `/design/media/slides.md` |
   | A Google Doc | `/design/media/google-docs.md` |
   | A product app | `/design/media/product-apps.md` |

   Each states its default register, how much the system covers it, and its gaps.
3. **Take the files; don't rewrite them.** `/sfds.css` is the tokens and every component
   class in one stylesheet, with a stamp on its first line. Keep the stamp. Copy the files
   it loads with it, at the same relative paths (`bundles.cssAssets` in `/manifest.json`).
   Fonts are `/fonts.css`. For a Claude artifact start from `/starter/artifact`.
4. **Look at one example** for the medium, as visual reference. Where an example differs
   from the guidance, the guidance wins.
5. Read `/llms.txt` only when the medium file doesn't cover the request, and say so: that
   is a gap worth reporting.

**Do and don't blocks.** A guidance file may show its rule as fenced blocks marked
`html do` and `html dont`, with the register and a caption after the marker. They are
examples, not components: match a `do`; never copy a `dont`, whose inline styles are the
mistake it shows.

## Rules that matter most

Each of these is a guidance file with its reason; read the file before relying on the line.

- **Use tokens by name, never by value.** Every color, size and space is a custom property
  in `/tokens.css`. Don't type a hex. `/design/foundations/color.md`
- **The register is set once, on the root**, with `data-brand`. Don't mix registers on one
  surface. `/design/foundations/register.md`
- **Gold is rationed.** It marks the win. A product settings or admin screen has none.
  `/design/guidelines/gold-is-for-the-win.md`
- **Corners are square.** `/design/guidelines/corners-are-square.md`
- **The mark and the logos are used as supplied.** Take the files under `/assets/mark/` and
  `/assets/logo/`. Never retype the wordmark, redraw the mark or rebuild a lockup, and
  never place a logo unless asked. `/design/foundations/logo.md`,
  `/design/guidelines/never-retype-the-wordmark.md`
- **Model and provider logos are used as supplied.** `/design/guidelines/model-logos-as-supplied.md`
- **Numbers lead.** Data is set in the mono face with tabular figures.
  `/design/guidelines/numbers-are-mono.md`
- **Claims need receipts.** Don't write a performance claim the page can't back.
  `/design/guidelines/claims-need-receipts.md`

## Files

| File | What it is |
|---|---|
| `/llms.txt` | Every guidance file by kind, one line each, by medium first |
| `/manifest.json` | Version, commit and every served file |
| `/design/index.json` | Every guidance file with its type, status, tags and tokens |
| `/design/<path>.md` | One guidance file, frontmatter included |
| `/design/log.md` | The change log |
| `/sfds.css` | Tokens and component classes, stamped |
| `/tokens.css`, `/tokens.json`, `/tokens.resolved.json` | The tokens, their source, and resolved values |
| `/style.css`, `/fonts.css` | Component classes; font faces |
| `/starter/artifact` | A self-contained starting file for a Claude artifact |

Every file of the system is listed in the manifest; a system path that isn't there doesn't
exist, and the site answers 404. The site also serves pages and data outside the system (the
product demos, `/vibes`, a demo's data file); the manifest doesn't list those. If you asked
for a file and got an HTML page, you have the wrong address.

## Color mode

Tokens answer to `data-theme` on the root; light is the default. For a page in both modes,
put this in `<head>` before the stylesheets so the page never flashes the wrong mode:

```html
<script>document.documentElement.setAttribute('data-theme', matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');</script>
```

Add a switch only when asked. `/design/behaviors/color-modes.md` has the rules.

## Examples

Examples are whole pages on the live sites, listed in `/manifest.json` (`examples`) with
the register each is in. They are for looking at, not for reading rules from, and they
aren't in a local build. If you can't open one, build from the guidance and say so.

## Versions

The stamp on `/sfds.css` and the `version` in `/manifest.json` name the release. When you
copy files into a project, record the version you took in `sfds-version.txt` at the project
root. Don't update a project to a newer version unless asked; say when one exists.

## What stays human

Taste calls, the choice of imagery, and anything about the mark or the logo. Ask.

## Feedback

When the system didn't cover something, or a rule got in the way, write down what you were
making, what was missing and what you did instead. Show the person the full text, ask, and
then file it at the address in `/manifest.json` (`feedback`). A tool you couldn't run or a
sign-in you don't have is not design feedback.
