---
title: Course style guide
description: The design system behind this site, with live examples. Use it as a model for your own project's style guide.
toc: true
---

[@styles]: ./style-guide.css

# Course style guide

This site has a design system, like the one you built in Project 5: **tokens**
for color, type, space, and shape, and a small set of **components** built only
from those tokens. Every example on this page is live. It uses the site’s real
styles and components, so this page changes when the site does.

Each section names where its styles live, so anyone changing the site (or an
agent helping them) knows which file to edit.

---

## Color

<ul class="sg-swatches">
<li style="--sg: var(--pmx-color-bg)"><span></span><code>--pmx-color-bg</code>Page background</li>
<li style="--sg: var(--pmx-color-surface)"><span></span><code>--pmx-color-surface</code>Cards and panels</li>
<li style="--sg: var(--pmx-color-fg)"><span></span><code>--pmx-color-fg</code>Text</li>
<li style="--sg: var(--pmx-color-muted)"><span></span><code>--pmx-color-muted</code>Secondary text, dates</li>
<li style="--sg: var(--pmx-color-border)"><span></span><code>--pmx-color-border</code>Lines and outlines</li>
<li style="--sg: var(--pmx-color-accent)"><span></span><code>--pmx-color-accent</code>Primary buttons, this week, today</li>
<li style="--sg: var(--pmx-color-link)"><span></span><code>--pmx-color-link</code>Links in text</li>
<li style="--sg: var(--csc-tint)"><span></span><code>--csc-tint</code>Soft highlight: due dates, selected items</li>
</ul>

Text on the accent color uses `--pmx-color-on-accent`. Every color has a light
and a dark value; switch the theme with the button at the bottom left to see
both.

**Where it lives:** the `theme` in `paths/index.md` (PathMX's synthwave preset,
as in PathMX Labs, with a quieter navy) and the course tokens in
`paths/styles/theme.css`.

---

## Type

<div class="sg-type">
<p class="sg-type__xl">Thinking With Machines</p>
<p class="sg-type__lg">Week 7 · October 5–9</p>
<p class="sg-type__md">Make your midterm project work end to end</p>
<p>Headings are Bricolage Grotesque. Body text is Atkinson Hyperlegible Next at a comfortable size, about 70 characters per line, so it reads easily on a laptop or a phone.</p>
<p class="sg-type__label">Label · small caps for section names</p>
<p><code>Geist Mono</code> is for code and for small uppercase instrument labels, such as the brand, table headers and the footer.</p>
</div>

**Where it lives:** `paths/styles/theme.css` (fonts and measure).

---

## Shape and space

<div class="sg-shapes">
<span style="--sg-radius: var(--csc-radius-sm)"><code>--csc-radius-sm</code></span>
<span style="--sg-radius: var(--csc-radius-md)"><code>--csc-radius-md</code></span>
<span style="--sg-radius: var(--csc-radius-lg)"><code>--csc-radius-lg</code></span>
<span style="--sg-radius: var(--csc-radius-pill)"><code>--csc-radius-pill</code></span>
</div>

<div class="sg-spaces">
<span style="--sg-space: var(--csc-space-1)"><code>1</code></span>
<span style="--sg-space: var(--csc-space-2)"><code>2</code></span>
<span style="--sg-space: var(--csc-space-3)"><code>3</code></span>
<span style="--sg-space: var(--csc-space-4)"><code>4</code></span>
<span style="--sg-space: var(--csc-space-5)"><code>5</code></span>
<span style="--sg-space: var(--csc-space-6)"><code>6</code></span>
</div>

Small things (fields) use `md`, cards and panels use `lg`, and buttons and
chips are pills. Spacing steps are `--csc-space-1` through `-6`.

**Where it lives:** `paths/styles/theme.css`.

---

## Buttons and links

<p class="sg-row">
<a class="pmx-button" data-pmx-link="button" href="../course.path.md">Open the schedule</a>
<span class="input-submit"><button type="button">Save answer</button></span>
<span class="input-submit"><button type="button" disabled>Not ready yet</button></span>
<a href="../syllabus.md">A text link</a>
</p>

One primary button per screen. Buttons say what happens (“Save answer”, “Open
Studio”), not “Click here”.

**Where it lives:** PathMX buttons (`.pmx-button`), and the shared course button
for Input, submissions, and guide completion in `paths/styles/styles.css`.

---

## Fields

<div class="sg-fields">
<label class="input-field"><span>Your answer</span><textarea placeholder="Write in your own words…"></textarea></label>
<label class="input-option"><input type="checkbox" checked><span>I tested the first slice and gave the agent specific feedback.</span></label>
</div>

**Where it lives:** `paths/styles/styles.css` (course controls).

---

## Callouts

> [!note]
> A note adds context the reader can skip.

> [!tip]
> A tip suggests a better way to do something.

> [!warning]
> A warning says what could go wrong and how to avoid it.

---

## Cards

[@link.card Project 6: Hill Climb](../projects/06/project-6.project.md)

**Where it lives:** PathMX link cards.

---

## Schedule week

The schedule and home page show each week as a card: one row per class day,
with deadlines as chips. “This week” and “Today” come from the date.

<x-style-guide-week />

**Where it lives:** `plugins/course-schedule/` (the weeks come from
[Course weeks](../schedule/weeks.md); deadlines come from each project).

---

## Studio launcher

An assignment that uses the Studio shows one card with the student’s status
and one button.

<x-style-guide-launchers />

**Where it lives:** `plugins/studio/` (the launcher) and `plugins/studio/page.css`.

---

## Writing on this site

- Use plain words and short sentences. Say what to do, then why.
- Name buttons and links by what they do or where they go.
- Dates read like “Thu, Oct 8, 2:30 pm”. Times are always Eastern.
- Write to students as “you”. The coach and the Studio never write work
  students are graded on.
