# Slate theme

> White cards on a cool gray canvas (a neutral one in the dark), a vivid violet, slate-tinted shadows and big tabular figures.

Page: https://uicontext.com/themes/slate

Templates that start in it: [SaaS dashboard](https://uicontext.com/blocks/saas-dashboard.md).

It starts light. Its sans-serif font is Inter Variable.

## Use Slate

Apply the StyleX themes to your app’s root, or copy the roles as CSS variables or JSON for anything else.

### StyleX

```ts
import { slate, slateScheme } from "./ui/uicontext/components/themes.stylex.ts"

// every group slate sets, and the scheme it starts in
h.div.attrs(sx(...slate, slateScheme)).children(app)
```

### CSS variables

```css
/* Slate: a UiContext design language. */
:root {
	color-scheme: light;
	/* color */
	--color-app: light-dark(#f5f7fb, #0b0b0d);
	--color-panel: light-dark(#ffffff, #131316);
	--color-sidebar: light-dark(#ffffff, #0e0e11);
	--color-raised: light-dark(#f8fafc, #17171a);
	--color-overlay: light-dark(#ffffff, #1a1a1e);
	--color-hover: light-dark(#eef2f8, #1c1c20);
	--color-selected: light-dark(#ecf0f6, #232328);
	--color-line: light-dark(#e3e8f0, #242429);
	--color-line-strong: light-dark(#d5dce8, #303036);
	--color-control-line: light-dark(#7f8aa0, #80808a);
	--color-fg: light-dark(#0e1a2e, #f4f4f5);
	--color-muted: light-dark(#4f5b72, #a6a6af);
	--color-faint: light-dark(#58647b, #9b9ba4);
	--color-accent: light-dark(#5a45e0, #a59cff);
	--color-accent-fg: light-dark(#ffffff, #0b0b0d);
	--color-focus-ring: light-dark(#5a45e0, #a59cff);
	--color-danger: light-dark(#c4302b, #f87171);
	--color-warning: light-dark(#a34a0b, #fb923c);
	--color-caution: light-dark(#875c05, #facc15);
	--color-info: light-dark(#1d4ed8, #60a5fa);
	--color-success: light-dark(#13723a, #4ade80);
	--color-done: light-dark(#4f46e5, #a5b4fc);
	--color-neutral: light-dark(#66666f, #a1a1aa);
	--color-agent: light-dark(#6d3fd6, #c4b5fd);
	--color-brand: light-dark(#5a45e0, #a59cff);
	--color-brand-fg: light-dark(#ffffff, #0b0b0d);
	/* signal */
	--signal-accent: light-dark(#5a45e0, #a59cff);
	--signal-on-accent: light-dark(#ffffff, #0b0b0d);
	--signal-success: light-dark(#13723a, #4ade80);
	--signal-warning: light-dark(#a34a0b, #fb923c);
	--signal-danger: light-dark(#c4302b, #f87171);
	--signal-info: light-dark(#1d4ed8, #60a5fa);
	/* font */
	--font-sans: "Inter Variable", "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--font-mono: "JetBrains Mono Variable", "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, SFMono-Regular, Menlo, monospace;
	--font-serif: "Newsreader", "Newsreader Fallback", ui-serif, Georgia, Cambria, serif;
	/* type */
	--type-display-family: "Inter Variable", "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--type-display-size: 34px;
	--type-display-weight: 600;
	--type-display-line-height: 40px;
	--type-display-tracking: -0.9px;
	--type-page-title-family: "Inter Variable", "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--type-page-title-size: 24px;
	--type-page-title-weight: 600;
	--type-page-title-line-height: 32px;
	--type-page-title-tracking: -0.5px;
	--type-section-family: "Inter Variable", "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--type-section-size: 18px;
	--type-section-weight: 600;
	--type-section-line-height: 26px;
	--type-section-tracking: -0.2px;
	--type-card-title-family: "Inter Variable", "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--type-card-title-size: 15px;
	--type-card-title-weight: 600;
	--type-card-title-line-height: 22px;
	--type-card-title-tracking: 0px;
	--type-body-family: "Inter Variable", "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--type-body-size: 14px;
	--type-body-weight: 400;
	--type-body-line-height: 20px;
	--type-body-tracking: 0px;
	--type-control-family: "Inter Variable", "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--type-control-size: 14px;
	--type-control-weight: 500;
	--type-control-line-height: 20px;
	--type-control-tracking: 0px;
	--type-meta-family: "Inter Variable", "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--type-meta-size: 12px;
	--type-meta-weight: 500;
	--type-meta-line-height: 16px;
	--type-meta-tracking: 0px;
	--type-figure-family: "Inter Variable", "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--type-figure-size: 36px;
	--type-figure-weight: 600;
	--type-figure-line-height: 44px;
	--type-figure-tracking: -1px;
	--type-code-family: "JetBrains Mono Variable", "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, SFMono-Regular, Menlo, monospace;
	--type-code-size: 13px;
	--type-code-weight: 400;
	--type-code-line-height: 20px;
	--type-code-tracking: 0px;
	/* weight */
	--weight-regular: 400;
	--weight-medium: 500;
	--weight-semibold: 600;
	--weight-bold: 700;
	/* stroke */
	--stroke-hairline: 1px;
	--stroke-control: 1px;
	/* corner */
	--corner-tag: 4px;
	--corner-control: 6px;
	--corner-card: 10px;
	--corner-popover: 10px;
	--corner-modal: 12px;
	--corner-pill: 9999px;
	/* elevation */
	--elevation-control: 0 1px 1px light-dark(rgb(0 0 0 / 0.06), rgb(0 0 0 / 0.4));
	--elevation-card: 0 0 0 1px light-dark(rgb(50 50 93 / 0.05), rgb(255 255 255 / 0.06)), 0 2px 5px light-dark(rgb(50 50 93 / 0.09), rgb(0 0 0 / 0.4)), 0 1px 1px light-dark(rgb(0 0 0 / 0.04), rgb(0 0 0 / 0.3));
	--elevation-raised: 0 0 0 1px light-dark(rgb(50 50 93 / 0.06), rgb(255 255 255 / 0.07)), 0 4px 10px light-dark(rgb(50 50 93 / 0.1), rgb(0 0 0 / 0.45));
	--elevation-menu: 0 0 0 1px light-dark(rgb(50 50 93 / 0.06), rgb(255 255 255 / 0.08)), 0 7px 14px light-dark(rgb(50 50 93 / 0.1), rgb(0 0 0 / 0.45)), 0 3px 6px light-dark(rgb(0 0 0 / 0.07), rgb(0 0 0 / 0.35));
	--elevation-modal: 0 0 0 1px light-dark(rgb(50 50 93 / 0.06), rgb(255 255 255 / 0.1)), 0 30px 60px light-dark(rgb(50 50 93 / 0.22), rgb(0 0 0 / 0.6)), 0 18px 36px light-dark(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.4));
	--elevation-blur: 0px;
	--elevation-opacity: 1;
	/* density */
	--density-row: 40px;
	--density-control: 36px;
	--density-sidebar: 232px;
	--density-header: 60px;
	--density-content: 1200px;
	--density-prose: 680px;
	/* icon */
	--icon-size: 16px;
	--icon-stroke: 1.75px;
	/* motion */
	--motion-fast: 120ms;
	--motion-base: 150ms;
	--motion-slow: 250ms;
	--motion-enter: 200ms;
	--motion-exit: 150ms;
	--motion-menu: 180ms;
	--motion-modal: 240ms;
	--motion-drawer: 320ms;
	--motion-move: 200ms;
	--motion-ease: cubic-bezier(0.2, 0, 0, 1);
	--motion-ease-out: cubic-bezier(0.25, 1, 0.5, 1);
	--motion-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	--motion-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
	--motion-press: 0.97;
	--motion-pop: 0.96;
	--motion-shift: 4px;
}
@media (pointer: coarse) {
	:root {
		--density-row: max(40px, 44px);
		--density-control: max(36px, 44px);
	}
}
```

### Tokens (JSON)

```json
{
	"name": "slate",
	"label": "Slate",
	"scheme": "light",
	"color": {
		"app": {
			"light": "#f5f7fb",
			"dark": "#0b0b0d"
		},
		"panel": {
			"light": "#ffffff",
			"dark": "#131316"
		},
		"sidebar": {
			"light": "#ffffff",
			"dark": "#0e0e11"
		},
		"raised": {
			"light": "#f8fafc",
			"dark": "#17171a"
		},
		"overlay": {
			"light": "#ffffff",
			"dark": "#1a1a1e"
		},
		"hover": {
			"light": "#eef2f8",
			"dark": "#1c1c20"
		},
		"selected": {
			"light": "#ecf0f6",
			"dark": "#232328"
		},
		"line": {
			"light": "#e3e8f0",
			"dark": "#242429"
		},
		"lineStrong": {
			"light": "#d5dce8",
			"dark": "#303036"
		},
		"controlLine": {
			"light": "#7f8aa0",
			"dark": "#80808a"
		},
		"fg": {
			"light": "#0e1a2e",
			"dark": "#f4f4f5"
		},
		"muted": {
			"light": "#4f5b72",
			"dark": "#a6a6af"
		},
		"faint": {
			"light": "#58647b",
			"dark": "#9b9ba4"
		},
		"accent": {
			"light": "#5a45e0",
			"dark": "#a59cff"
		},
		"accentFg": {
			"light": "#ffffff",
			"dark": "#0b0b0d"
		},
		"focusRing": {
			"light": "#5a45e0",
			"dark": "#a59cff"
		},
		"danger": {
			"light": "#c4302b",
			"dark": "#f87171"
		},
		"warning": {
			"light": "#a34a0b",
			"dark": "#fb923c"
		},
		"caution": {
			"light": "#875c05",
			"dark": "#facc15"
		},
		"info": {
			"light": "#1d4ed8",
			"dark": "#60a5fa"
		},
		"success": {
			"light": "#13723a",
			"dark": "#4ade80"
		},
		"done": {
			"light": "#4f46e5",
			"dark": "#a5b4fc"
		},
		"neutral": {
			"light": "#66666f",
			"dark": "#a1a1aa"
		},
		"agent": {
			"light": "#6d3fd6",
			"dark": "#c4b5fd"
		},
		"brand": {
			"light": "#5a45e0",
			"dark": "#a59cff"
		},
		"brandFg": {
			"light": "#ffffff",
			"dark": "#0b0b0d"
		}
	},
	"signal": {
		"accent": {
			"light": "#5a45e0",
			"dark": "#a59cff"
		},
		"onAccent": {
			"light": "#ffffff",
			"dark": "#0b0b0d"
		},
		"success": {
			"light": "#13723a",
			"dark": "#4ade80"
		},
		"warning": {
			"light": "#a34a0b",
			"dark": "#fb923c"
		},
		"danger": {
			"light": "#c4302b",
			"dark": "#f87171"
		},
		"info": {
			"light": "#1d4ed8",
			"dark": "#60a5fa"
		}
	},
	"family": {
		"sans": "\"Inter Variable\", \"Inter\", \"Inter Fallback\", ui-sans-serif, system-ui, -apple-system, sans-serif",
		"mono": "\"JetBrains Mono Variable\", \"JetBrains Mono\", \"JetBrains Mono Fallback\", ui-monospace, SFMono-Regular, Menlo, monospace",
		"serif": "\"Newsreader\", \"Newsreader Fallback\", ui-serif, Georgia, Cambria, serif"
	},
	"typography": {
		"display": {
			"family": "sans",
			"size": "34px",
			"weight": "600",
			"lineHeight": "40px",
			"tracking": "-0.9px"
		},
		"pageTitle": {
			"family": "sans",
			"size": "24px",
			"weight": "600",
			"lineHeight": "32px",
			"tracking": "-0.5px"
		},
		"section": {
			"family": "sans",
			"size": "18px",
			"weight": "600",
			"lineHeight": "26px",
			"tracking": "-0.2px"
		},
		"cardTitle": {
			"family": "sans",
			"size": "15px",
			"weight": "600",
			"lineHeight": "22px",
			"tracking": "0px"
		},
		"body": {
			"family": "sans",
			"size": "14px",
			"weight": "400",
			"lineHeight": "20px",
			"tracking": "0px"
		},
		"control": {
			"family": "sans",
			"size": "14px",
			"weight": "500",
			"lineHeight": "20px",
			"tracking": "0px"
		},
		"meta": {
			"family": "sans",
			"size": "12px",
			"weight": "500",
			"lineHeight": "16px",
			"tracking": "0px"
		},
		"figure": {
			"family": "sans",
			"size": "36px",
			"weight": "600",
			"lineHeight": "44px",
			"tracking": "-1px"
		},
		"code": {
			"family": "mono",
			"size": "13px",
			"weight": "400",
			"lineHeight": "20px",
			"tracking": "0px"
		}
	},
	"weight": {
		"regular": "400",
		"medium": "500",
		"semibold": "600",
		"bold": "700"
	},
	"stroke": {
		"hairline": "1px",
		"control": "1px"
	},
	"corner": {
		"tag": "4px",
		"control": "6px",
		"card": "10px",
		"popover": "10px",
		"modal": "12px",
		"pill": "9999px"
	},
	"elevation": {
		"control": {
			"light": "0 1px 1px rgb(0 0 0 / 0.06)",
			"dark": "0 1px 1px rgb(0 0 0 / 0.4)"
		},
		"card": {
			"light": "0 0 0 1px rgb(50 50 93 / 0.05), 0 2px 5px rgb(50 50 93 / 0.09), 0 1px 1px rgb(0 0 0 / 0.04)",
			"dark": "0 0 0 1px rgb(255 255 255 / 0.06), 0 2px 5px rgb(0 0 0 / 0.4), 0 1px 1px rgb(0 0 0 / 0.3)"
		},
		"raised": {
			"light": "0 0 0 1px rgb(50 50 93 / 0.06), 0 4px 10px rgb(50 50 93 / 0.1)",
			"dark": "0 0 0 1px rgb(255 255 255 / 0.07), 0 4px 10px rgb(0 0 0 / 0.45)"
		},
		"menu": {
			"light": "0 0 0 1px rgb(50 50 93 / 0.06), 0 7px 14px rgb(50 50 93 / 0.1), 0 3px 6px rgb(0 0 0 / 0.07)",
			"dark": "0 0 0 1px rgb(255 255 255 / 0.08), 0 7px 14px rgb(0 0 0 / 0.45), 0 3px 6px rgb(0 0 0 / 0.35)"
		},
		"modal": {
			"light": "0 0 0 1px rgb(50 50 93 / 0.06), 0 30px 60px rgb(50 50 93 / 0.22), 0 18px 36px rgb(0 0 0 / 0.1)",
			"dark": "0 0 0 1px rgb(255 255 255 / 0.1), 0 30px 60px rgb(0 0 0 / 0.6), 0 18px 36px rgb(0 0 0 / 0.4)"
		},
		"blur": "0px",
		"opacity": "1"
	},
	"density": {
		"row": "40px",
		"control": "36px",
		"sidebar": "232px",
		"header": "60px",
		"content": "1200px",
		"prose": "680px"
	},
	"icon": {
		"size": "16px",
		"stroke": "1.75px"
	},
	"motion": {
		"fast": "120ms",
		"base": "150ms",
		"slow": "250ms",
		"enter": "200ms",
		"exit": "150ms",
		"menu": "180ms",
		"modal": "240ms",
		"drawer": "320ms",
		"move": "200ms",
		"ease": "cubic-bezier(0.2, 0, 0, 1)",
		"easeOut": "cubic-bezier(0.25, 1, 0.5, 1)",
		"easeInOut": "cubic-bezier(0.77, 0, 0.175, 1)",
		"easeDrawer": "cubic-bezier(0.32, 0.72, 0, 1)",
		"press": "0.97",
		"pop": "0.96",
		"shift": "4px"
	}
}
```

## Other themes

- [Midnight](https://uicontext.com/themes/midnight.md): Dark-native and dense. Near-black surfaces, half-pixel lines, indigo focus and a variable sans with its own weight steps.
- [Ink](https://uicontext.com/themes/ink.md): Pure black and white. One-pixel rings instead of shadows, a single blue for focus and action, wide pages and a tall header.
- [Paper](https://uicontext.com/themes/paper.md): Warm off-white paper, umber-tinted rings, a calm blue and a narrow page made for writing. Headings can switch to a serif.
- [Parchment](https://uicontext.com/themes/parchment.md): Warm parchment and terracotta. A literary serif for headings and replies, a sans for controls, generous corners and a soft paper lift.
- [Carbon](https://uicontext.com/themes/carbon.md): Carbon studio surfaces and an emerald brand. Mono for tables, IDs and queries, one-pixel borders and almost no lift.
- [Glass](https://uicontext.com/themes/glass.md): A translucent window over the desktop: a heavy backdrop blur, a one-pixel rim, a coral accent and quick motion. Made for command surfaces.
- [Sunburst](https://uicontext.com/themes/sunburst.md): Neo-brutal and playful. Cream and butter yellows, black ink, two-pixel strokes, hard ink offsets and a grotesk with its mono.

Make your own in the [theme editor](https://uicontext.com/themes/editor.md).
