# Themes and layout

> Pick one of six themes, change the layout, fonts, corners, header, sidebar and code blocks, and choose whether your site opens light or dark.

A theme sets how your whole site looks: its fonts, corners, header, sidebar, code blocks and layout. Your colour and logo stay the same in every theme. Pick one in **Settings** > **Look and feel**, or set `theme` in `typemark.json`:

```json
"theme": "blueprint"
```

A theme is a starting point. Change any one part of it, such as the corners or the code font, and the theme keeps everything else.

## Themes

| Theme | Looks like | For |
|---|---|---|
| `base` | Quiet and neutral, with Inter. Every site starts here. | Any docs |
| `blueprint` | Numbered sections, a framed header, square corners, IBM Plex. | Specifications, infrastructure, hardware |
| `halo` | Soft light from your colour at the top of the page, a glass sidebar, Instrument Sans. Opens dark. | AI products and developer platforms |
| `thread` | Uses the `assistant` [layout](#layout), so Ask AI can stay open beside the page, with "Ask AI" on each section. Manrope and Inter. | Products whose readers ask more than they browse |
| `console` | Dark and dense, with code examples beside the text. Geist. Opens dark. | APIs, SDKs and developer tools |
| `atlas` | Rounded, with your colour in the header and a home page built around search. Figtree. | Help centres and docs for customers |

## Layout

The layout arranges the header, sidebar, page and side columns. Each theme has its own; set `layout` to use another:

```json
"layout": "split"
```

| Layout | What it does |
|---|---|
| `classic` | Tabs in the header, the sidebar on the left, "On this page" on the right. |
| `sections` | No tabs in the header: the sidebar opens with a menu to switch sections. |
| `assistant` | [Ask AI](https://docs.typemark.dev/ai/ai-search) stays open beside the page on large screens; on smaller ones, readers open it themselves. Needs search and Ask AI turned on, and Ask AI is on Pro and Enterprise; without them, the site uses `classic`. |
| `split` | Each section's code blocks sit in a column beside its text on wide screens. |
| `hub` | Your home page opens with your site's name, a large search box and a card for each group of pages. |
| `wide` | A wider page for big tables and diagrams, with "On this page" above it. |

On phones, every layout is one column with the navigation behind the menu button.

## Light and dark

Your site has a light and a dark theme, and a button in the header to switch between them. Most themes open the way the reader's system is set; `halo` and `console` open dark. Set `default` to choose for yourself.

When a reader switches, their choice is saved in their browser and wins over `default` on their next visit. With `toggle` set to `false`, there's no button, and every reader sees `default`, even one who switched before.

```json
"appearance": {
  "default": "dark",
  "toggle": false
}
```

| Key | What it does |
|---|---|
| `default` | How the site opens: `system` (the reader's setting), `light` or `dark`. Each theme has its own; see above. |
| `toggle` | `false` removes the switch and any choice readers saved, so the site always opens as `default` says. |

## Fonts

Typemark hosts every font, so your readers' browsers never contact another site for them. A browser downloads only the fonts your site uses.

- **Text and headings:** Inter, Instrument Sans, Manrope, Geist, IBM Plex Sans, Figtree, Source Sans 3, Atkinson Hyperlegible and Source Serif 4.
- **Code:** JetBrains Mono, Geist Mono and IBM Plex Mono.

```json
"fonts": {
  "heading": { "family": "Source Serif 4", "weight": 600 },
  "body": { "family": "Inter", "size": 17 },
  "code": { "family": "Geist Mono" }
}
```

`weight` is the headings' weight, from 400 to 800 in steps of 100. `size` is the text size in pixels: 15, 16, 17 or 18.

To set headings and text to the same font, put `family` (and `weight`, if you like) directly under `fonts`. `heading` and `body` keep that font when they set only `weight` or `size`, and use another when they have a `family` of their own:

```json
"fonts": {
  "family": "Geist",
  "body": { "size": 17 },
  "heading": { "family": "Source Serif 4" }
}
```

Here the text is Geist at 17 pixels and the headings are Source Serif 4.

### Your own font

On Pro and Enterprise, use a font file from your repository: give it a name and the path to a `.woff2`, `.woff`, `.otf` or `.ttf` file. `.woff2` is the smallest.

```json
"fonts": {
  "family": "Acme Sans",
  "source": "/fonts/acme-sans.woff2"
}
```

Set at the top like this, your font is used for headings and text. For one of them only, put `family` and `source` inside `heading` or `body` instead. The name can have letters, numbers, spaces, dots and dashes; the path can't have spaces. On Free, your site uses the theme's font, and the build says so. Make sure your font's licence lets you use it on the web.

## Details

Change any of these under `styling`, or in **Settings** > **Look and feel** > **Details**:

```json
"styling": {
  "corners": "round",
  "header": "brand",
  "sidebar": "line",
  "codeblocks": "light",
  "density": "compact",
  "headingNumbers": true,
  "links": "underline"
}
```

| Key | Values |
|---|---|
| `corners` | `square`, `soft` or `round`: corners on code blocks, callouts, cards, buttons and the search box. |
| `header` | `plain`, `transparent` (the page shows through) or `brand` (filled with your colour). |
| `sidebar` | How the current page is marked: `tint` (a tinted row), `line`, `plain` (bold text) or `numbered` (1.1, 1.2). |
| `codeblocks` | `dark`, `light` or `page` (your page's colour with a thin border). In dark mode, code blocks are always dark. |
| `density` | `comfortable`, or `compact` for shorter sidebar rows and tighter paragraphs. |
| `headingNumbers` | `true` numbers your headings: 1, 1.1, 1.2. Handy for pages people cite by section. |
| `links` | `color`, or `underline` to underline links in full, for readers who can't tell them apart by colour. |

## Values Typemark doesn't know

A value Typemark doesn't know for one of the keys on this page, such as `"corners": "sqaure"`, doesn't break your site: Typemark uses the theme's own value and lists the problem on the deployment. [`typemark check`](https://docs.typemark.dev/automation/cli) reports it before you push, and **Settings** > **typemark.json** won't save it.

A key Typemark doesn't know, such as `corner` for `corners`, is ignored without a warning, so check the spelling of keys against this page.
