Themes
Last updated 2026-11-28 · 4 min
Overview
A theme is one CSS file: a custom stylesheet that restyles the whole app rather than one corner of it. Themes are CSS only, so no code runs, and Garnet refuses any stylesheet that would load something from the internet. That makes a theme file safe to use wherever you found it.
To use a theme:
- Download its
.cssfile, from the themes on this page or from anyone who shares one. - In the app, open Settings › Appearance › Advanced › Custom stylesheet and choose Add CSS file….
- Pick the file. Garnet copies it into your Space's
.garnet/styles/folder, selects it and turns on Use custom CSS.
On a phone it can be easier to copy the CSS instead: choose Show the CSS and copy it, then in the app choose Paste CSS…, give it a name, paste, and choose Add.
You can also save the file into .garnet/styles/ yourself, then pick it under Stylesheet and turn on Use custom CSS.
A theme sits on top of the theme style, accent and display mode you pick in Appearance. If one breaks the layout, turn off Use custom CSS; your own theme style and accent come back.
Write a theme
Start from the variables. Most themes need nothing else:
/*
* @name Harbour
* @author Your Name
* @description Cool blue-grey surfaces with a softer card edge, in light and dark mode.
* @modes both
* @version 1.0.0
* @license MIT
*/
[data-mode="light"] {
--garnet-color-bg: oklch(0.97 0.01 240);
--garnet-color-surface: oklch(0.985 0.006 240);
--garnet-color-surface-elevated: oklch(0.995 0.003 240);
}
[data-mode="dark"] {
--garnet-color-bg: oklch(0.2 0.015 240);
--garnet-color-surface: oklch(0.24 0.015 240);
--garnet-color-surface-elevated: oklch(0.28 0.015 240);
}
.garnet-card {
border-radius: 1rem;
}
- Light and dark: Garnet sets
data-mode="light"ordata-mode="dark"on thehtmlelement. Scope colours to each. A theme for one mode only scopes every rule to it and leaves the other mode as the theme style draws it. - Override variables first. Set
--garnet-*variables on[data-mode]or:root. Variables you leave alone keep the theme style's values, so text sizes, density and contrast settings still work. - Style hooks second. Where a variable is not enough, select a documented
garnet-*class. Never select generated class names or element order. - Leave the accent alone. The accent marks New, the selection and links. Do not tint surfaces, borders or focus rings with
--garnet-color-primary. - Check both modes and every contrast setting. Try each contrast setting and text size in Appearance before you share a theme.
The full list of variables, root attributes and hooks is in Custom stylesheets.
Header block
A theme can start with one comment block of @key value lines, so people can tell what the file is. Every key is optional.
| Key | Value |
|---|---|
@name | The theme's name. |
@author | Your name or handle. |
@description | One sentence on what it looks like and which modes it changes. |
@modes | light, dark or both. |
@version | A version number, such as 1.0.0. Raise it with every change. |
@license | The licence you share it under, such as MIT or CC0-1.0. |
Share a theme
Share the .css file however you like: a link, a gist, a forum post. Before you do, check it in both modes and with every contrast setting and text size in Appearance, and make sure sync conflict notices, Doctor warnings, App Lock, confirmations and focus rings all stay visible.
Themes
Midnight
Dark mode · v1.0.0 · CC0-1.0By Garnet team
Deeper surfaces and calmer contrast for reading at night. Applies only in dark mode.
Download Midnight.cssShow the CSS
/* * @name Midnight * @author Garnet team * @description Deeper surfaces and calmer contrast for reading at night. Applies only in dark mode. * @modes dark * @version 1.0.0 * @license CC0-1.0 * * Secondary text stays brighter than the theme's muted text, so the text hierarchy holds. */ [data-mode="dark"] { --garnet-color-bg: oklch(0.16 0.012 285); --garnet-color-surface: oklch(0.2 0.014 285); --garnet-color-surface-elevated: oklch(0.24 0.016 285); --garnet-color-text-secondary: oklch(0.82 0.012 285); } [data-mode="dark"] .garnet-card { border-color: color-mix(in oklab, var(--garnet-color-border) 60%, transparent); }Paper
Light mode · v1.0.0 · CC0-1.0By Garnet team
A warm, paper-like page for long writing sessions, with softer card edges. Applies only in light mode.
Download Paper.cssShow the CSS
/* * @name Paper * @author Garnet team * @description A warm, paper-like page for long writing sessions, with softer card edges. Applies only in light mode. * @modes light * @version 1.0.0 * @license CC0-1.0 */ [data-mode="light"] { --garnet-color-bg: oklch(0.97 0.012 85); --garnet-color-surface: oklch(0.985 0.008 85); --garnet-color-surface-elevated: oklch(0.995 0.004 85); } [data-mode="light"] .garnet-card { border-radius: 1rem; }Wide Space
Light and dark · v1.0.0 · CC0-1.0By Garnet team
More horizontal room on large displays, with long-form pages kept at a comfortable reading width.
Download Wide Space.cssShow the CSS
/* * @name Wide Space * @author Garnet team * @description More horizontal room on large displays, with long-form pages kept at a comfortable reading width. * @modes both * @version 1.0.0 * @license CC0-1.0 */ .garnet-desktop-page-container { --garnet-page-max-width: 96rem; --garnet-page-padding: 3rem; } .garnet-page-journal, .garnet-page-item { --garnet-page-max-width: 56rem; }
Also available as Markdown for coding agents.
Still need help?
Email support for private account or Space questions. Use Reddit only for public community discussion.