Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
import { THEME_API_VERSION, themeTokensCss, type BuiltInTheme, type ThemeTokens } from "./themes";
/**
* The themes Multica ships. Each is a token table (read by the contrast test
* in apps/web) plus CSS for what variables can't express, compiled to the same
* CSS an installed theme ships.
*/
function builtInTheme(theme: Omit<BuiltInTheme, "apiVersion" | "css"> & { css?: string }): BuiltInTheme {
return {
...theme,
apiVersion: THEME_API_VERSION,
css: [themeTokensCss(theme), theme.css].filter(Boolean).join("\n\n"),
};
}
export const DEFAULT_THEME_ID = "default";
const INK = "oklch(0.145 0 0)";
const POP_YELLOW = "oklch(0.9 0.17 98)";
const POP_PAPER_FRAME = "oklch(0.925 0.02 95)";
/** Tokens for what sits on Pop's black frame: always in dark mode, and in light mode with the ink frame. */
const POP_FRAME: ThemeTokens = {
foreground: "oklch(0.97 0 0)",
"muted-foreground": "oklch(0.8 0 0)",
"faint-foreground": "oklch(0.64 0 0)",
background: INK,
"page-canvas": "oklch(0.25 0 0)",
surface: "oklch(0.2 0 0)",
"surface-raised": "oklch(0.25 0 0)",
"surface-hover": "oklch(0.3 0 0)",
"surface-selected": "oklch(0.32 0.05 98)",
muted: "oklch(0.27 0 0)",
"sidebar-accent": "oklch(0.27 0 0)",
"sidebar-accent-foreground": POP_YELLOW,
"surface-border": "oklch(0.4 0 0)",
"surface-shadow": "none",
ring: POP_YELLOW,
};
const POP_SIGNALS = {
yellow: POP_YELLOW,
mint: "oklch(0.87 0.12 165)",
sky: "oklch(0.83 0.1 230)",
coral: "oklch(0.8 0.13 30)",
};
const POP_FRAME_ANCHORS = ':is([data-mc="app-rail"], [data-mc="window-toolbar"], [data-mc="tab-bar"], [data-mc="bottom-bar"])';
const POP_STATUS_BLOCKS: [string, string][] = [
['[data-status="backlog"], [data-status="todo"]', "oklch(0.88 0.035 250)"],
['[data-status="in_progress"]', "oklch(0.84 0.13 68)"],
['[data-status="in_review"]', "oklch(0.86 0.1 165)"],
['[data-status="done"]', "oklch(0.8 0.09 255)"],
['[data-status="blocked"]', "oklch(0.78 0.13 28)"],
];
const POP_SIGNAL_ON = ':root[data-theme-option-signal]:not([data-theme-option-signal="yellow"])';
const POP_FRAME_IS = (frame: string) => `:root.theme-light[data-theme-option-frame="${frame}"]`;
const POP_DARK_FRAME = ':is(.theme-dark, [data-theme-option-frame="ink"])';
const POP_BUTTON = '[data-slot="button"][data-variant="default"]:not(:disabled):hover';
const POP_GROUP = '[data-mc="issue-group-header"]';
const POP_BLOCKED_STATUSES = POP_STATUS_BLOCKS.map(([status]) => status).join(", ");
/** Pop's signal colour, whichever one is picked. */
const POP_SIGNAL = `var(--pop-signal, ${POP_YELLOW})`;
/** Shape and content treatments Pop uses in both modes. */
const POP_SHARED: ThemeTokens = {
radius: "0.25rem",
"menu-radius": "0.25rem",
"popover-radius": "0.25rem",
"dialog-radius": "0.25rem",
"card-radius": "0.25rem",
"page-radius": "0.375rem",
"menu-item-radius": "0.125rem",
"menu-item-hover-background": "var(--surface-selected)",
"menu-item-hover-color": "var(--foreground)",
"display-chip-pressed-background": "var(--surface-selected)",
"display-chip-pressed-color": "var(--foreground)",
// --primary and --input are the same ink, so switches get their own fills.
"switch-checked-background": "var(--button-primary)",
"switch-unchecked-background": "var(--surface)",
"switch-checked-thumb": "var(--button-primary-foreground)",
"switch-unchecked-thumb": "var(--surface-border)",
"switch-border-color": "var(--surface-border)",
"label-radius": "0.25rem",
"board-column-radius": "0.25rem",
"board-card-radius": "0.25rem",
"h1-weight": "800",
"h2-weight": "800",
"h3-weight": "700",
"h1-letter-spacing": "-0.02em",
"h2-letter-spacing": "-0.015em",
"bold-weight": "700",
"mention-color": "var(--foreground)",
"mention-weight": "700",
"link-color": "var(--foreground)",
"link-decoration-color": POP_SIGNAL,
"link-decoration-color-hover": "var(--foreground)",
"link-underline-offset": "3px",
"highlight-radius": "0",
"checkbox-color": "var(--foreground)",
"blockquote-border-width": "4px",
"blockquote-border-color": "var(--surface-border)",
"blockquote-style": "normal",
"blockquote-color": "var(--foreground)",
"code-background": "var(--surface-selected)",
"code-border-color": "var(--surface-border)",
"code-color": "var(--foreground)",
"code-radius": "0.125rem",
"code-block-background": "var(--surface)",
"code-block-border": "1px solid var(--surface-border)",
"code-block-radius": "0.25rem",
"table-radius": "0.25rem",
"table-border-color": "var(--surface-border)",
"table-header-background": "var(--muted)",
"table-header-color": "var(--foreground)",
"table-header-weight": "700",
"hr-color": "var(--surface-border)",
"hr-thickness": "2px",
};
/** Pop's component treatments, each behind one of its options. */
const POP_CSS = [
"/* Signal colour: button fill, selection, focus ring and dark floating shadows. */",
...Object.entries(POP_SIGNALS)
.filter(([id]) => id !== "yellow")
.map(([id, color]) => `:root[data-theme-option-signal="${id}"] { --pop-signal: ${color}; }`),
`${POP_SIGNAL_ON} { --button-primary: var(--pop-signal); --surface-selected: color-mix(in oklab, var(--pop-signal) 35%, oklch(1 0 0)); }`,
`${POP_SIGNAL_ON}.theme-dark { --ring: var(--pop-signal); --floating-shadow: 6px 6px 0 var(--pop-signal); --menu-shadow: 4px 4px 0 var(--pop-signal); --surface-selected: color-mix(in oklab, var(--pop-signal) 22%, oklch(0.2 0 0)); }`,
`${POP_SIGNAL_ON}${POP_DARK_FRAME} ${POP_FRAME_ANCHORS} { --sidebar-accent-foreground: var(--pop-signal); --ring: var(--pop-signal); --surface-selected: color-mix(in oklab, var(--pop-signal) 22%, oklch(0.2 0 0)); }`,
"",
"/* Frame in light mode: paper by default, or ink or the signal colour. Dark mode keeps the black frame. */",
`${POP_FRAME_IS("paper")} ${POP_FRAME_ANCHORS} { --sidebar-accent: oklch(0.974 0.008 95); }`,
`${POP_FRAME_IS("paper")} [data-mc="app-rail"] [aria-current="page"] { box-shadow: inset 0 0 0 1px var(--surface-border); }`,
`${POP_FRAME_IS("ink")} { --app-shell: ${INK}; }`,
`${POP_FRAME_IS("ink")} ${POP_FRAME_ANCHORS} { ${Object.entries(POP_FRAME).map(([name, value]) => `--${name}: ${value};`).join(" ")} }`,
`${POP_FRAME_IS("signal")} { --app-shell: ${POP_SIGNAL}; }`,
`${POP_FRAME_IS("signal")} ${POP_FRAME_ANCHORS} { --muted-foreground: oklch(0.28 0.02 95); --faint-foreground: oklch(0.38 0.02 95); --sidebar-accent: ${INK}; --sidebar-accent-foreground: ${POP_SIGNAL}; --surface-hover: color-mix(in oklab, ${INK} 12%, transparent); --ring: ${INK}; }`,
"",
"/* Primary buttons lift onto a hard shadow on hover instead of darkening. */",
`:root[data-theme-option-offset-shadow] ${POP_BUTTON} { background-color: var(--button-primary, var(--primary)); translate: -2px -2px; box-shadow: 3px 3px 0 var(--surface-border); }`,
`@media (prefers-reduced-motion: reduce) { :root[data-theme-option-offset-shadow] ${POP_BUTTON} { translate: none; } }`,
"",
"/* Issue group headers become solid blocks per status; custom statuses stay neutral. */",
`:root[data-theme-option-status-blocks] ${POP_GROUP} { box-shadow: inset 0 0 0 1px var(--surface-border); }`,
`:root[data-theme-option-status-blocks] ${POP_GROUP}:is(${POP_BLOCKED_STATUSES}) { --foreground: ${INK}; --muted-foreground: oklch(0.3 0 0); color: var(--foreground); }`,
`:root[data-theme-option-status-blocks] ${POP_GROUP}:is(${POP_BLOCKED_STATUSES}) svg { color: var(--foreground); }`,
...POP_STATUS_BLOCKS.map(
([status, color]) =>
`:root[data-theme-option-status-blocks] ${POP_GROUP}:is(${status}) { background-color: ${color}; }`,
),
"",
"/* Label chips get an ink outline. */",
`:root[data-theme-option-outlined-chips] [data-mc="label-chip"] { box-shadow: inset 0 0 0 1px var(--surface-border); }`,
"",
"/* Code blocks sit on the same hard shadow as cards. */",
`:root[data-theme-option-offset-shadow] [data-mc="content"] pre { box-shadow: 3px 3px 0 var(--surface-border); }`,
"",
"/* Thick signal underlines, and an ink outline on the current sidebar item. */",
'[data-mc="content"] a { text-decoration-thickness: 3px; }',
'[data-mc="nav-item"][data-active="true"] { box-shadow: inset 0 0 0 1px var(--surface-border); }',
].join("\n");
/**
* Pop: paper, ink or signal-colour frame, warm paper canvas, ink outlines,
* small radius, hard offset shadows and a signal-colour primary. --primary stays ink because it
* also paints text (`text-primary`); the signal colour reaches buttons
* through --button-primary.
*/
const POP = builtInTheme({
id: "pop",
name: "Pop",
tokens: {
light: {
...POP_SHARED,
"highlight-background": POP_SIGNAL,
"app-shell": POP_PAPER_FRAME,
"page-shadow": `3px 3px 0 ${INK}`,
"page-canvas": "oklch(0.974 0.008 95)",
surface: "oklch(1 0 0)",
"surface-raised": "oklch(1 0 0)",
"surface-hover": "oklch(0.945 0.014 95)",
"surface-selected": "oklch(0.93 0.08 98)",
"surface-border": INK,
"surface-shadow": `2px 2px 0 ${INK}`,
"floating-shadow": `6px 6px 0 ${INK}`,
"menu-shadow": `4px 4px 0 ${INK}`,
secondary: "oklch(0.945 0.014 95)",
muted: "oklch(0.945 0.014 95)",
accent: "oklch(0.945 0.014 95)",
"muted-foreground": "oklch(0.44 0.012 95)",
"faint-foreground": "oklch(0.56 0.012 95)",
border: INK,
input: INK,
ring: INK,
sidebar: "oklch(0.945 0.014 95)",
"sidebar-accent": "oklch(0.91 0.02 95)",
"sidebar-border": INK,
brand: "oklch(0.5 0.2 262)",
"button-primary": POP_YELLOW,
"button-primary-foreground": INK,
"button-primary-border": INK,
},
dark: {
...POP_SHARED,
"highlight-background": `color-mix(in oklab, ${POP_SIGNAL} 35%, transparent)`,
"app-shell": "oklch(0 0 0)",
"page-canvas": "oklch(0.17 0 0)",
surface: "oklch(0.2 0 0)",
"surface-raised": "oklch(0.22 0 0)",
"surface-hover": "oklch(0.26 0 0)",
"surface-selected": "oklch(0.32 0.06 98)",
"surface-border": "oklch(0.92 0 0)",
"surface-shadow": `2px 2px 0 oklch(0.92 0 0)`,
"floating-shadow": `6px 6px 0 ${POP_YELLOW}`,
"menu-shadow": `4px 4px 0 ${POP_YELLOW}`,
secondary: "oklch(0.26 0 0)",
muted: "oklch(0.26 0 0)",
accent: "oklch(0.26 0 0)",
"muted-foreground": "oklch(0.8 0 0)",
"faint-foreground": "oklch(0.62 0 0)",
border: "oklch(0.92 0 0)",
input: "oklch(0.92 0 0)",
ring: POP_YELLOW,
sidebar: "oklch(0.2 0 0)",
"sidebar-accent": "oklch(0.26 0 0)",
"sidebar-border": "oklch(0.92 0 0)",
brand: "oklch(0.72 0.15 262)",
"button-primary": POP_YELLOW,
"button-primary-foreground": INK,
"button-primary-border": "oklch(0.92 0 0)",
},
},
frame: { dark: POP_FRAME },
options: [
{
id: "signal",
type: "select",
label: {
en: "Signal color",
"zh-Hans": "信号色",
"zh-Hant": "信號色",
ja: "シグナルカラー",
ko: "시그널 색상",
es: "Color de señal",
fr: "Couleur signal",
ru: "Сигнальный цвет",
},
description: {
en: "Primary buttons, selection and focus.",
"zh-Hans": "主按钮、选中项和焦点。",
"zh-Hant": "主按鈕、選取項目和焦點。",
ja: "主要ボタン、選択項目、フォーカス。",
ko: "기본 버튼, 선택 항목, 포커스.",
es: "Botones principales, selección y foco.",
fr: "Boutons principaux, sélection et focus.",
ru: "Основные кнопки, выделение и фокус.",
},
default: "yellow",
choices: [
{ value: "yellow", label: { en: "Yellow", "zh-Hans": "黄", "zh-Hant": "黃", ja: "イエロー", ko: "노랑", es: "Amarillo", fr: "Jaune", ru: "Жёлтый" }, swatch: POP_SIGNALS.yellow },
{ value: "mint", label: { en: "Mint", "zh-Hans": "薄荷", "zh-Hant": "薄荷", ja: "ミント", ko: "민트", es: "Menta", fr: "Menthe", ru: "Мятный" }, swatch: POP_SIGNALS.mint },
{ value: "sky", label: { en: "Sky", "zh-Hans": "天蓝", "zh-Hant": "天藍", ja: "スカイ", ko: "하늘", es: "Cielo", fr: "Ciel", ru: "Небесный" }, swatch: POP_SIGNALS.sky },
{ value: "coral", label: { en: "Coral", "zh-Hans": "珊瑚", "zh-Hant": "珊瑚", ja: "コーラル", ko: "코랄", es: "Coral", fr: "Corail", ru: "Коралловый" }, swatch: POP_SIGNALS.coral },
],
},
{
id: "frame",
type: "select",
label: { en: "Frame", "zh-Hans": "外框", "zh-Hant": "外框", ja: "フレーム", ko: "프레임", es: "Marco", fr: "Cadre", ru: "Рамка" },
description: {
en: "The frame around the page in light mode. Dark mode keeps it black.",
"zh-Hans": "浅色模式下页面四周的外框。深色模式始终为黑色。",
"zh-Hant": "淺色模式下頁面四周的外框。深色模式一律為黑色。",
ja: "ライトモードでページを囲むフレーム。ダークモードでは常に黒です。",
ko: "라이트 모드에서 페이지를 둘러싼 프레임입니다. 다크 모드에서는 항상 검은색입니다.",
es: "El marco alrededor de la página en modo claro. En modo oscuro sigue siendo negro.",
fr: "Le cadre autour de la page en mode clair. En mode sombre, il reste noir.",
ru: "Рамка вокруг страницы в светлой теме. В тёмной теме она всегда чёрная.",
},
default: "paper",
choices: [
{ value: "paper", label: { en: "Paper", "zh-Hans": "纸面", "zh-Hant": "紙面", ja: "ペーパー", ko: "종이", es: "Papel", fr: "Papier", ru: "Бумага" } },
{ value: "ink", label: { en: "Ink", "zh-Hans": "墨黑", "zh-Hant": "墨黑", ja: "インク", ko: "잉크", es: "Tinta", fr: "Encre", ru: "Чернила" } },
{ value: "signal", label: { en: "Signal", "zh-Hans": "信号色", "zh-Hant": "信號色", ja: "シグナル", ko: "시그널", es: "Señal", fr: "Signal", ru: "Сигнал" } },
],
},
{
id: "offset-shadow",
type: "toggle",
label: { en: "Hard shadows", "zh-Hans": "硬投影", "zh-Hant": "硬投影", ja: "ハードシャドウ", ko: "하드 섀도", es: "Sombras duras", fr: "Ombres franches", ru: "Жёсткие тени" },
description: {
en: "Primary buttons lift onto a solid offset shadow on hover.",
"zh-Hans": "悬停时主按钮浮起,露出实色投影。",
"zh-Hant": "滑過時主按鈕浮起,露出實色投影。",
ja: "ホバー時に主要ボタンが浮き、ベタの影が出ます。",
ko: "마우스를 올리면 기본 버튼이 떠오르며 단색 그림자가 생깁니다.",
es: "Los botones principales se elevan sobre una sombra sólida al pasar el cursor.",
fr: "Les boutons principaux se soulèvent sur une ombre pleine au survol.",
ru: "При наведении основные кнопки приподнимаются над сплошной тенью.",
},
default: true,
},
{
id: "status-blocks",
type: "toggle",
label: { en: "Status blocks", "zh-Hans": "状态色块", "zh-Hant": "狀態色塊", ja: "ステータスブロック", ko: "상태 블록", es: "Bloques de estado", fr: "Blocs de statut", ru: "Блоки статусов" },
description: {
en: "Group headers in issue lists fill with their status color.",
"zh-Hans": "列表按状态分组时,分组标题整块填色。",
"zh-Hant": "列表依狀態分組時,分組標題整塊填色。",
ja: "課題リストのグループ見出しをステータス色で塗ります。",
ko: "이슈 목록의 그룹 제목을 상태 색으로 채웁니다.",
es: "Los encabezados de grupo se rellenan con el color de su estado.",
fr: "Les en-têtes de groupe prennent la couleur de leur statut.",
ru: "Заголовки групп окрашиваются в цвет своего статуса.",
},
default: true,
},
{
id: "outlined-chips",
type: "toggle",
label: { en: "Outlined labels", "zh-Hans": "标签描边", "zh-Hant": "標籤描邊", ja: "ラベルの枠線", ko: "라벨 테두리", es: "Etiquetas con contorno", fr: "Étiquettes contourées", ru: "Метки с обводкой" },
description: {
en: "Label chips get an ink outline.",
"zh-Hans": "标签加一圈墨线。",
"zh-Hant": "標籤加一圈墨線。",
ja: "ラベルに墨色の枠線を付けます。",
ko: "라벨에 먹색 테두리를 둘러요.",
es: "Las etiquetas llevan un contorno de tinta.",
fr: "Les étiquettes reçoivent un contour encre.",
ru: "Метки получают чернильную обводку.",
},
default: true,
},
],
css: POP_CSS,
});
/** Primer's font stacks, shared by GitHub. */
/**
* Latin stacks name families only. A generic family (`sans-serif`, `serif`)
* matches Han through the browser's per-language default, so the CJK stack
* after it, which carries the person's CJK choice and its own generic, would
* never apply.
*/
const SYSTEM_SANS = "-apple-system, BlinkMacSystemFont, Segoe UI, Noto Sans, Helvetica, Arial";
const SYSTEM_MONO = "ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace";
/** Shape and content treatments GitHub uses in both modes. */
const GITHUB_SHARED: ThemeTokens = {
"font-ui": SYSTEM_SANS,
"font-mono": SYSTEM_MONO,
radius: "0.375rem",
"icon-stroke-width": "1.75",
"menu-radius": "0.75rem",
"popover-radius": "0.75rem",
"dialog-radius": "0.75rem",
"menu-item-radius": "0.375rem",
"card-radius": "0.375rem",
"page-radius": "0.375rem",
"nav-item-radius": "0.375rem",
"nav-item-color": "var(--foreground)",
"nav-item-active-color": "var(--foreground)",
"menu-item-hover-color": "var(--foreground)",
"issue-group-header-radius": "0.375rem",
"board-column-radius": "0.375rem",
"board-card-radius": "0.375rem",
"board-card-shadow": "none",
"h1-size": "2em",
"h2-size": "1.5em",
"h3-size": "1.25em",
"h1-line-height": "1.25",
"h2-line-height": "1.25",
"blockquote-border-width": "0.25em",
"blockquote-padding": "1em",
"blockquote-style": "normal",
"code-font-size": "85%",
"code-padding": "0.2em 0.4em",
"code-radius": "0.375rem",
"code-border-color": "transparent",
"code-color": "var(--foreground)",
"code-block-radius": "0.375rem",
"code-block-padding": "1rem",
"code-block-font-size": "85%",
"code-block-line-height": "1.45",
"table-radius": "0",
"table-header-background": "transparent",
"table-header-color": "var(--foreground)",
"table-header-weight": "600",
"table-cell-padding": "0.375rem 0.8125rem",
"link-decoration-color": "transparent",
"link-decoration-color-hover": "currentColor",
"hr-thickness": "0.25em",
"mention-color": "var(--foreground)",
};
/** GitHub's content CSS: ruled h1/h2, striped tables, and NavList's current-item bar. */
const GITHUB_CSS = [
'[data-mc="content"] :is(h1, h2) { padding-bottom: 0.3em; border-bottom: 1px solid var(--border); }',
'[data-mc="content"] tr:nth-child(2n) { background-color: var(--muted); }',
'[data-mc="nav-item"][data-active="true"] { position: relative; font-weight: 600; }',
'[data-mc="nav-item"][data-active="true"]::before { content: ""; position: absolute; left: -0.5rem; top: calc(50% - 0.75rem); width: 0.25rem; height: 1.5rem; border-radius: 0.375rem; background-color: var(--brand); }',
].join("\n");
/**
* GitHub (Primer): system type, cool greys, green primary, blue links, the
* Primer status colours (open green, done purple) and markdown-body content.
*/
const GITHUB = builtInTheme({
id: "github",
name: "GitHub",
author: "Primer",
tokens: {
light: {
...GITHUB_SHARED,
"app-shell": "oklch(0.978 0.003 247.9)",
"page-canvas": "oklch(1 0 0)",
surface: "oklch(1 0 0)",
"surface-raised": "oklch(1 0 0)",
"surface-hover": "oklch(0.96 0.005 247.9)",
"surface-selected": "oklch(0.948 0.005 247.9)",
"surface-border": "oklch(0.881 0.013 244.3)",
"surface-shadow": "0 1px 0 rgb(31 35 40 / 0.04)",
"menu-shadow": "0 0 0 1px rgb(209 217 224 / 0.5), 0 6px 12px -3px rgb(37 41 46 / 0.04), 0 6px 18px 0 rgb(37 41 46 / 0.12)",
"floating-shadow": "0 0 0 1px rgb(209 217 224), 0 40px 80px 0 rgb(37 41 46 / 0.24)",
foreground: "oklch(0.254 0.011 254)",
"surface-foreground": "oklch(0.254 0.011 254)",
"surface-selected-foreground": "oklch(0.254 0.011 254)",
"card-foreground": "oklch(0.254 0.011 254)",
"popover-foreground": "oklch(0.254 0.011 254)",
primary: "oklch(0.254 0.011 254)",
secondary: "oklch(0.978 0.003 247.9)",
muted: "oklch(0.978 0.003 247.9)",
accent: "oklch(0.96 0.005 247.9)",
"muted-foreground": "oklch(0.495 0.022 250.8)",
"faint-foreground": "oklch(0.596 0.022 253)",
border: "oklch(0.916 0.009 247.9)",
input: "oklch(0.881 0.013 244.3)",
ring: "oklch(0.54 0.191 257.5)",
sidebar: "oklch(0.978 0.003 247.9)",
"sidebar-accent": "oklch(0.935 0.008 253.9)",
"sidebar-border": "oklch(0.881 0.013 244.3)",
brand: "oklch(0.54 0.191 257.5)",
"button-primary": "oklch(0.552 0.145 148.2)",
"button-primary-foreground": "oklch(1 0 0)",
"button-primary-border": "oklch(0.5 0.13 148)",
"nav-item-hover-background": "rgb(129 139 152 / 0.1)",
"nav-item-active-background": "rgb(129 139 152 / 0.15)",
"menu-item-hover-background": "rgb(129 139 152 / 0.1)",
"issue-row-hover-background": "var(--muted)",
"issue-group-header-background": "var(--muted)",
"issue-group-header-hover-background": "rgb(129 139 152 / 0.15)",
"board-column-background": "var(--muted)",
"status-backlog": "#59636e",
"status-todo": "#1a7f37",
"status-in-progress": "#9a6700",
"status-in-review": "#0969da",
"status-done": "#8250df",
"status-blocked": "#d1242f",
"status-cancelled": "#59636e",
"priority-urgent": "#d1242f",
"priority-high": "#bc4c00",
"priority-medium": "#9a6700",
"priority-low": "#0969da",
"code-background": "rgb(129 139 152 / 0.2)",
"code-block-background": "#f6f8fa",
"code-block-color": "#1f2328",
"code-keyword": "#cf222e",
"code-string": "#0a3069",
"code-comment": "#59636e",
"code-number": "#0550ae",
"code-function": "#8250df",
"code-property": "#0550ae",
"code-variable": "#953800",
"code-type": "#953800",
"code-deletion": "#82071e",
"code-tag": "#116329",
"code-punctuation": "#1f2328",
"blockquote-border-color": "#d1d9e0",
"table-border-color": "#d1d9e0",
"hr-color": "#d1d9e0",
"highlight-background": "#fff8c5",
},
dark: {
...GITHUB_SHARED,
"app-shell": "oklch(0.104 0.019 248.3)",
"page-canvas": "oklch(0.176 0.014 258.4)",
surface: "oklch(0.22 0.018 255.7)",
"surface-raised": "oklch(0.22 0.018 255.7)",
"surface-hover": "oklch(0.274 0.018 251.9)",
"surface-selected": "oklch(0.292 0.02 260.6)",
"surface-border": "oklch(0.384 0.018 254.7)",
"menu-shadow": "0 0 0 1px rgb(61 68 77), 0 6px 12px -3px rgb(1 4 9 / 0.4), 0 6px 18px 0 rgb(1 4 9 / 0.4)",
"floating-shadow": "0 0 0 1px rgb(61 68 77), 0 24px 48px 0 rgb(1 4 9)",
foreground: "oklch(0.97 0.01 247.9)",
"surface-foreground": "oklch(0.97 0.01 247.9)",
"surface-selected-foreground": "oklch(0.97 0.01 247.9)",
"card-foreground": "oklch(0.97 0.01 247.9)",
"popover-foreground": "oklch(0.97 0.01 247.9)",
secondary: "oklch(0.274 0.018 251.9)",
muted: "oklch(0.22 0.018 255.7)",
accent: "oklch(0.274 0.018 251.9)",
"muted-foreground": "oklch(0.706 0.015 254.6)",
"faint-foreground": "oklch(0.604 0.021 258.4)",
border: "oklch(0.326 0.016 255.6)",
input: "oklch(0.384 0.018 254.7)",
ring: "oklch(0.663 0.169 255.9)",
sidebar: "oklch(0.176 0.014 258.4)",
"sidebar-accent": "oklch(0.274 0.018 251.9)",
"sidebar-border": "oklch(0.326 0.016 255.6)",
brand: "oklch(0.663 0.169 255.9)",
"button-primary": "oklch(0.546 0.147 146.3)",
"button-primary-foreground": "oklch(1 0 0)",
"button-primary-border": "oklch(0.6 0.15 146)",
"nav-item-hover-background": "rgb(101 108 118 / 0.2)",
"nav-item-active-background": "rgb(101 108 118 / 0.3)",
"menu-item-hover-background": "rgb(101 108 118 / 0.2)",
"issue-row-hover-background": "var(--surface)",
"issue-group-header-background": "var(--surface)",
"issue-group-header-hover-background": "rgb(101 108 118 / 0.3)",
"board-column-background": "var(--surface)",
"board-card-background": "var(--page-canvas)",
"status-backlog": "#9198a1",
"status-todo": "#3fb950",
"status-in-progress": "#d29922",
"status-in-review": "#4493f8",
"status-done": "#ab7df8",
"status-blocked": "#f85149",
"status-cancelled": "#9198a1",
"priority-urgent": "#f85149",
"priority-high": "#db6d28",
"priority-medium": "#d29922",
"priority-low": "#4493f8",
"code-background": "rgb(101 108 118 / 0.4)",
"code-block-background": "#151b23",
"code-block-color": "#f0f6fc",
"code-keyword": "#ff7b72",
"code-string": "#a5d6ff",
"code-comment": "#9198a1",
"code-number": "#79c0ff",
"code-function": "#d2a8ff",
"code-property": "#79c0ff",
"code-variable": "#ffa657",
"code-type": "#ffa657",
"code-deletion": "#ffdcd7",
"code-tag": "#7ee787",
"code-punctuation": "#f0f6fc",
"blockquote-border-color": "#3d444d",
"table-border-color": "#3d444d",
"hr-color": "#3d444d",
"highlight-background": "rgb(187 128 9 / 0.15)",
},
},
css: GITHUB_CSS,
});
/** Shape and content treatments Blueprint uses in both modes. */
const BLUEPRINT_SHARED: ThemeTokens = {
"font-ui": "-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Open Sans, Helvetica Neue",
"font-mono": SYSTEM_MONO,
radius: "0.125rem",
"menu-radius": "0.25rem",
"popover-radius": "0.25rem",
"dialog-radius": "0.375rem",
"menu-item-radius": "0.125rem",
"card-radius": "0.25rem",
"page-radius": "0.25rem",
"nav-item-radius": "0.125rem",
"nav-item-height": "1.875rem",
"label-radius": "0.125rem",
"issue-row-height": "32px",
"issue-group-header-radius": "0",
"issue-group-header-background": "transparent",
"issue-group-header-hover-background": "rgb(143 153 168 / 0.15)",
"issue-row-hover-background": "rgb(143 153 168 / 0.15)",
"nav-item-hover-background": "rgb(143 153 168 / 0.15)",
"nav-item-active-background": "#2d72d2",
"nav-item-active-color": "#ffffff",
"menu-item-hover-background": "rgb(143 153 168 / 0.15)",
"menu-item-hover-color": "var(--foreground)",
"board-column-radius": "0.25rem",
"board-card-radius": "0.25rem",
"board-card-border-color": "transparent",
"blockquote-border-width": "4px",
"blockquote-padding": "1.25rem",
"blockquote-style": "normal",
"blockquote-color": "var(--foreground)",
"code-font-size": "0.875em",
"code-padding": "0.125rem 0.3125rem",
"code-radius": "0.125rem",
"code-block-radius": "0.125rem",
"code-block-padding": "0.8125rem 0.9375rem",
"table-radius": "0",
"table-header-background": "transparent",
"table-header-color": "var(--foreground)",
"table-header-weight": "600",
"table-cell-padding": "0.6875rem",
"link-decoration-color": "transparent",
"link-decoration-color-hover": "currentColor",
};
/** Blueprint's HTMLTable rule under every row and section header. */
const BLUEPRINT_CSS = [
'[data-mc="issue-row"], [data-mc="issue-group-header"] { box-shadow: inset 0 -1px var(--border); }',
].join("\n");
/**
* Blueprint (Blueprint 5): dense rows, 2px corners, square tags, and the
* primary intent blue on the current sidebar item, as in its Tree.
*/
const BLUEPRINT = builtInTheme({
id: "blueprint",
name: "Blueprint",
author: "Palantir",
tokens: {
light: {
...BLUEPRINT_SHARED,
"app-shell": "oklch(0.951 0.005 258.3)",
"page-canvas": "oklch(0.976 0.003 264.5)",
surface: "oklch(1 0 0)",
"surface-raised": "oklch(1 0 0)",
"surface-hover": "oklch(0.93 0.005 247.9)",
"surface-selected": "oklch(0.94 0.02 257.5)",
"surface-border": "oklch(0.88 0.01 252.8)",
"surface-shadow": "0 0 0 1px rgb(17 20 24 / 0.04), 0 1px 1px rgb(17 20 24 / 0.12)",
"menu-shadow": "0 0 0 1px rgb(17 20 24 / 0.1), 0 2px 4px rgb(17 20 24 / 0.2), 0 8px 24px rgb(17 20 24 / 0.2)",
foreground: "oklch(0.245 0.014 253.1)",
"surface-foreground": "oklch(0.245 0.014 253.1)",
"surface-selected-foreground": "oklch(0.245 0.014 253.1)",
"card-foreground": "oklch(0.245 0.014 253.1)",
"popover-foreground": "oklch(0.245 0.014 253.1)",
primary: "oklch(0.245 0.014 253.1)",
secondary: "oklch(0.951 0.005 258.3)",
muted: "oklch(0.951 0.005 258.3)",
accent: "oklch(0.93 0.005 247.9)",
"muted-foreground": "oklch(0.5 0.031 257.1)",
"faint-foreground": "oklch(0.595 0.03 255.2)",
border: "oklch(0.905 0.008 253.9)",
input: "oklch(0.84 0.013 255.5)",
ring: "oklch(0.56 0.163 257.6)",
sidebar: "oklch(0.951 0.005 258.3)",
"sidebar-accent": "oklch(0.905 0.008 253.9)",
"sidebar-border": "oklch(0.88 0.01 252.8)",
brand: "oklch(0.487 0.146 257.7)",
"button-primary": "oklch(0.56 0.163 257.6)",
"button-primary-foreground": "oklch(1 0 0)",
"button-primary-border": "oklch(0.487 0.146 257.7)",
"board-column-background": "#edeff2",
"board-card-shadow": "0 0 0 1px rgb(17 20 24 / 0.1), 0 1px 1px rgb(17 20 24 / 0.2)",
"status-backlog": "#8f99a8",
"status-todo": "#5f6b7c",
"status-in-progress": "#2d72d2",
"status-in-review": "#c87619",
"status-done": "#238551",
"status-blocked": "#cd4246",
"status-cancelled": "#8f99a8",
"priority-urgent": "#cd4246",
"priority-high": "#c87619",
"priority-medium": "#d1980b",
"priority-low": "#2d72d2",
"code-background": "rgb(255 255 255 / 0.7)",
"code-border-color": "rgb(17 20 24 / 0.2)",
"code-color": "#5f6b7c",
"code-block-background": "#f6f7f9",
"code-block-border": "1px solid rgb(17 20 24 / 0.15)",
"code-block-color": "#1c2127",
"code-keyword": "#2d72d2",
"code-string": "#238551",
"code-comment": "#738091",
"code-number": "#c87619",
"code-function": "#7961db",
"code-property": "#147eb3",
"code-variable": "#cd4246",
"code-type": "#00a396",
"code-deletion": "#cd4246",
"code-tag": "#2d72d2",
"code-punctuation": "#5f6b7c",
"blockquote-border-color": "rgb(17 20 24 / 0.15)",
"table-border-color": "rgb(17 20 24 / 0.15)",
"hr-color": "rgb(17 20 24 / 0.15)",
"link-color": "#215db0",
"highlight-background": "rgb(240 183 38 / 0.3)",
},
dark: {
...BLUEPRINT_SHARED,
"app-shell": "oklch(0.245 0.014 253.1)",
"page-canvas": "oklch(0.283 0.015 256.8)",
surface: "oklch(0.323 0.016 259.8)",
"surface-raised": "oklch(0.362 0.018 258.4)",
"surface-hover": "oklch(0.362 0.018 258.4)",
"surface-selected": "oklch(0.377 0.057 259.3)",
"surface-border": "oklch(0.399 0.023 258.4)",
foreground: "oklch(0.976 0.003 264.5)",
"surface-foreground": "oklch(0.976 0.003 264.5)",
"surface-selected-foreground": "oklch(0.976 0.003 264.5)",
"card-foreground": "oklch(0.976 0.003 264.5)",
"popover-foreground": "oklch(0.976 0.003 264.5)",
secondary: "oklch(0.362 0.018 258.4)",
muted: "oklch(0.323 0.016 259.8)",
accent: "oklch(0.362 0.018 258.4)",
"muted-foreground": "oklch(0.8 0.019 258.4)",
"faint-foreground": "oklch(0.7 0.025 258.4)",
border: "oklch(0.369 0.017 258.4)",
input: "oklch(0.45 0.025 258.4)",
ring: "oklch(0.655 0.159 257.4)",
sidebar: "oklch(0.245 0.014 253.1)",
"sidebar-accent": "oklch(0.323 0.016 259.8)",
"sidebar-border": "oklch(0.399 0.023 258.4)",
brand: "oklch(0.76 0.12 257.4)",
"button-primary": "oklch(0.56 0.163 257.6)",
"button-primary-foreground": "oklch(1 0 0)",
"button-primary-border": "oklch(0.655 0.159 257.4)",
"board-column-background": "#252a31",
"board-card-shadow": "0 0 0 1px rgb(17 20 24 / 0.4), 0 1px 1px rgb(17 20 24 / 0.4)",
"status-backlog": "#8f99a8",
"status-todo": "#abb3bf",
"status-in-progress": "#4c90f0",
"status-in-review": "#ec9a3c",
"status-done": "#32a467",
"status-blocked": "#e76a6e",
"status-cancelled": "#8f99a8",
"priority-urgent": "#e76a6e",
"priority-high": "#ec9a3c",
"priority-medium": "#f0b726",
"priority-low": "#4c90f0",
"code-background": "rgb(17 20 24 / 0.3)",
"code-border-color": "rgb(17 20 24 / 0.4)",
"code-color": "#abb3bf",
"code-block-background": "rgb(17 20 24 / 0.3)",
"code-block-border": "1px solid rgb(17 20 24 / 0.4)",
"code-block-color": "#f6f7f9",
"code-keyword": "#8abbff",
"code-string": "#72ca9b",
"code-comment": "#abb3bf",
"code-number": "#fbb360",
"code-function": "#bdadff",
"code-property": "#68c1ee",
"code-variable": "#fa999c",
"code-type": "#7ae1d8",
"code-deletion": "#fa999c",
"code-tag": "#8abbff",
"code-punctuation": "#abb3bf",
"blockquote-border-color": "rgb(255 255 255 / 0.2)",
"table-border-color": "rgb(255 255 255 / 0.2)",
"hr-color": "rgb(255 255 255 / 0.2)",
"link-color": "#8abbff",
"highlight-background": "rgb(240 183 38 / 0.25)",
},
},
css: BLUEPRINT_CSS,
});
/** Shape and content treatments Notion uses in both modes. */
const NOTION_SHARED: ThemeTokens = {
"font-ui": "-apple-system, BlinkMacSystemFont, Segoe UI Variable Display, Segoe UI, Helvetica, Apple Color Emoji, Arial",
"font-mono": "SFMono-Regular, Menlo, Consolas, PT Mono, Liberation Mono, Courier, monospace",
radius: "0.375rem",
"menu-radius": "0.625rem",
"popover-radius": "0.625rem",
"dialog-radius": "0.75rem",
"menu-item-radius": "0.375rem",
"nav-item-radius": "0.375rem",
"nav-item-height": "1.875rem",
"nav-item-active-color": "var(--foreground)",
"menu-item-hover-color": "var(--foreground)",
"label-radius": "0.1875rem",
"issue-group-header-background": "transparent",
"board-column-background": "transparent",
"board-card-radius": "0.5rem",
"board-card-border-color": "transparent",
"h1-size": "1.875em",
"h2-size": "1.5em",
"h3-size": "1.25em",
"blockquote-border-width": "3px",
"blockquote-border-color": "currentColor",
"blockquote-padding": "0.875rem",
"blockquote-style": "normal",
"blockquote-color": "var(--foreground)",
"code-color": "#eb5757",
"code-background": "rgb(135 131 120 / 0.15)",
"code-border-color": "transparent",
"code-radius": "0.25rem",
"code-padding": "0.2em 0.4em",
"code-font-size": "85%",
"code-block-radius": "0.25rem",
"code-block-padding": "1.5rem 1.75rem",
"code-block-font-size": "85%",
"code-block-line-height": "1.5",
"code-block-color": "var(--foreground)",
"link-color": "currentColor",
"link-decoration-color": "color-mix(in srgb, currentColor 40%, transparent)",
"link-decoration-color-hover": "currentColor",
"mention-color": "var(--foreground)",
"mention-weight": "500",
"checkbox-color": "#2383e2",
"list-marker-color": "var(--foreground)",
"table-radius": "0",
"table-header-color": "var(--muted-foreground)",
"table-header-weight": "500",
};
/** Notion's page fonts: Default, Serif and Mono, as in its page style menu. */
const NOTION_PAGE_FONT = {
id: "font-content-latin",
type: "variable-select",
label: { en: "Page font", "zh-Hans": "页面字体", "zh-Hant": "頁面字體", ja: "ページのフォント", ko: "페이지 글꼴", es: "Fuente de página", fr: "Police de page", ru: "Шрифт страницы" },
description: {
en: "Descriptions, comments and chat. Your Content text font still wins.",
"zh-Hans": "描述、评论和对话。你在「内容文字」里选的字体优先。",
"zh-Hant": "描述、留言和對話。你在「內容文字」裡選的字體優先。",
ja: "説明、コメント、チャット。「コンテンツの文字」で選んだフォントが優先されます。",
ko: "설명, 댓글, 채팅. ‘콘텐츠 글자’에서 고른 글꼴이 우선합니다.",
es: "Descripciones, comentarios y chat. Tu fuente de Texto del contenido tiene prioridad.",
fr: "Descriptions, commentaires et chat. Votre police de Texte du contenu reste prioritaire.",
ru: "Описания, комментарии и чат. Ваш шрифт для текста содержимого имеет приоритет.",
},
default: "var(--font-ui)",
choices: [
{ value: "var(--font-ui)", label: { en: "Default", "zh-Hans": "默认", "zh-Hant": "預設", ja: "デフォルト", ko: "기본", es: "Predeterminada", fr: "Par défaut", ru: "По умолчанию" } },
{ value: "Lyon-Text, Georgia", label: { en: "Serif", "zh-Hans": "衬线", "zh-Hant": "襯線", ja: "セリフ", ko: "세리프", es: "Serif", fr: "Serif", ru: "С засечками" } },
{ value: "iawriter-mono, Nitti, Menlo, Courier", label: { en: "Mono", "zh-Hans": "等宽", "zh-Hant": "等寬", ja: "等幅", ko: "고정폭", es: "Monoespaciada", fr: "Mono", ru: "Моноширинный" } },
],
} as const;
/**
* Notion: system type, warm greys, quiet sidebar, borderless boards with
* lifted cards, red inline code, and Default / Serif / Mono page fonts.
*/
const NOTION = builtInTheme({
id: "notion",
name: "Notion",
tokens: {
light: {
...NOTION_SHARED,
"app-shell": "oklch(0.976 0.003 106.4)",
"page-canvas": "oklch(1 0 0)",
surface: "oklch(1 0 0)",
"surface-raised": "oklch(1 0 0)",
"surface-hover": "oklch(0.958 0.003 106.4)",
"surface-selected": "oklch(0.943 0.003 106.5)",
"surface-border": "oklch(0.933 0.003 106.5)",
"surface-shadow": "0 1px 2px rgb(15 15 15 / 0.04)",
"floating-shadow": "0 0 0 1px rgb(15 15 15 / 0.05), 0 3px 6px rgb(15 15 15 / 0.1), 0 9px 24px rgb(15 15 15 / 0.2)",
"menu-shadow": "0 0 0 1px rgb(15 15 15 / 0.05), 0 3px 6px rgb(15 15 15 / 0.1), 0 9px 24px rgb(15 15 15 / 0.2)",
foreground: "oklch(0.329 0.011 91.7)",
"surface-foreground": "oklch(0.329 0.011 91.7)",
"surface-selected-foreground": "oklch(0.329 0.011 91.7)",
"card-foreground": "oklch(0.329 0.011 91.7)",
"popover-foreground": "oklch(0.329 0.011 91.7)",
primary: "oklch(0.329 0.011 91.7)",
secondary: "oklch(0.958 0.003 106.4)",
muted: "oklch(0.958 0.003 106.4)",
accent: "oklch(0.958 0.003 106.4)",
"muted-foreground": "oklch(0.51 0.006 95.2)",
"faint-foreground": "oklch(0.617 0.005 91.5)",
border: "oklch(0.946 0.001 106.4)",
input: "oklch(0.894 0.003 106.5)",
ring: "oklch(0.606 0.167 252.7)",
sidebar: "oklch(0.976 0.003 106.4)",
"sidebar-accent": "oklch(0.943 0.003 106.5)",
"sidebar-border": "oklch(0.933 0.003 106.5)",
brand: "oklch(0.541 0.153 254)",
"button-primary": "oklch(0.541 0.153 254)",
"button-primary-foreground": "oklch(1 0 0)",
"nav-item-hover-background": "rgb(55 53 47 / 0.06)",
"nav-item-active-background": "rgb(55 53 47 / 0.08)",
"menu-item-hover-background": "rgb(55 53 47 / 0.06)",
"issue-row-hover-background": "rgb(55 53 47 / 0.04)",
"issue-group-header-hover-background": "rgb(55 53 47 / 0.06)",
"board-card-hover-background": "#fafaf9",
"board-card-shadow": "0 0 0 1px rgb(15 15 15 / 0.1), 0 2px 4px rgb(15 15 15 / 0.1)",
"status-backlog": "#9b9a97",
"status-todo": "#787774",
"status-in-progress": "#337ea9",
"status-in-review": "#cb912f",
"status-done": "#448361",
"status-blocked": "#d44c47",
"status-cancelled": "#9b9a97",
"priority-urgent": "#d44c47",
"priority-high": "#d9730d",
"priority-medium": "#cb912f",
"priority-low": "#337ea9",
"code-block-background": "#f7f6f3",
"code-keyword": "#0077aa",
"code-string": "#669900",
"code-comment": "#708090",
"code-number": "#990055",
"code-function": "#dd4a68",
"code-property": "#990055",
"code-variable": "#ee9900",
"code-type": "#dd4a68",
"code-deletion": "#990055",
"code-tag": "#990055",
"code-punctuation": "#999999",
"table-border-color": "#e9e9e7",
"table-header-background": "#f7f6f3",
"hr-color": "rgb(55 53 47 / 0.16)",
"highlight-background": "#fbf3db",
},
dark: {
...NOTION_SHARED,
"app-shell": "oklch(0.244 0 0)",
"page-canvas": "oklch(0.213 0 0)",
surface: "oklch(0.264 0 0)",
"surface-raised": "oklch(0.264 0 0)",
"surface-hover": "oklch(0.293 0 0)",
"surface-selected": "oklch(0.305 0 0)",
"surface-border": "oklch(0.337 0 0)",
foreground: "oklch(0.87 0 0)",
"surface-foreground": "oklch(0.87 0 0)",
"surface-selected-foreground": "oklch(0.87 0 0)",
"card-foreground": "oklch(0.87 0 0)",
"popover-foreground": "oklch(0.87 0 0)",
secondary: "oklch(0.293 0 0)",
muted: "oklch(0.264 0 0)",
accent: "oklch(0.293 0 0)",
"muted-foreground": "oklch(0.72 0 0)",
"faint-foreground": "oklch(0.6 0 0)",
border: "oklch(0.285 0 0)",
input: "oklch(0.364 0 0)",
ring: "oklch(0.664 0.101 238.1)",
sidebar: "oklch(0.244 0 0)",
"sidebar-accent": "oklch(0.293 0 0)",
"sidebar-border": "oklch(0.305 0 0)",
brand: "oklch(0.7 0.1 238.1)",
"button-primary": "oklch(0.541 0.153 254)",
"button-primary-foreground": "oklch(1 0 0)",
"nav-item-hover-background": "rgb(255 255 255 / 0.055)",
"nav-item-active-background": "rgb(255 255 255 / 0.08)",
"menu-item-hover-background": "rgb(255 255 255 / 0.055)",
"issue-row-hover-background": "rgb(255 255 255 / 0.03)",
"issue-group-header-hover-background": "rgb(255 255 255 / 0.055)",
"board-card-hover-background": "#2c2c2c",
"board-card-shadow": "0 0 0 1px rgb(255 255 255 / 0.094), 0 2px 4px rgb(15 15 15 / 0.2)",
"status-backlog": "#7f7f7f",
"status-todo": "#9b9b9b",
"status-in-progress": "#379ad3",
"status-in-review": "#ca9849",
"status-done": "#529e72",
"status-blocked": "#df5452",
"status-cancelled": "#7f7f7f",
"priority-urgent": "#df5452",
"priority-high": "#c77d48",
"priority-medium": "#ca9849",
"priority-low": "#379ad3",
"code-block-background": "#202020",
"code-keyword": "#cc99cd",
"code-string": "#7ec699",
"code-comment": "#999999",
"code-number": "#f08d49",
"code-function": "#f08d49",
"code-property": "#f8c555",
"code-variable": "#e2777a",
"code-type": "#f8c555",
"code-deletion": "#e2777a",
"code-tag": "#e2777a",
"code-punctuation": "#cccccc",
"table-border-color": "rgb(255 255 255 / 0.094)",
"table-header-background": "#202020",
"hr-color": "rgb(255 255 255 / 0.13)",
"highlight-background": "rgb(255 212 0 / 0.14)",
},
},
options: [NOTION_PAGE_FONT],
});
const DEFAULT = builtInTheme({
id: DEFAULT_THEME_ID,
name: "Default",
tokens: { light: {}, dark: {} },
});
export const BUILT_IN_THEMES: readonly BuiltInTheme[] = [DEFAULT, POP, GITHUB, BLUEPRINT, NOTION];
export function findBuiltInTheme(id: string): BuiltInTheme | undefined {
return BUILT_IN_THEMES.find((theme) => theme.id === id);
}