# Sunburst theme

> Neo-brutal and playful. Cream and butter yellows, black ink, two-pixel strokes, hard ink offsets and a grotesk with its mono.

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

Templates that start in it: [Whiteboard](https://uicontext.com/blocks/whiteboard.md).

It starts light. Its sans-serif font is Space Grotesk.

## Use Sunburst

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

### StyleX

```ts
import { sunburst, sunburstScheme } from "./ui/uicontext/components/themes.stylex.ts"

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

### CSS variables

```css
/* Sunburst: a UiContext design language. */
:root {
	color-scheme: light;
	/* color */
	--color-app: light-dark(#fff8e3, #16140f);
	--color-panel: light-dark(#fffdf5, #1c1a14);
	--color-sidebar: light-dark(#ffeeb0, #1f1b10);
	--color-raised: light-dark(#fff4cc, #221f17);
	--color-overlay: light-dark(#ffffff, #24211a);
	--color-hover: light-dark(#fff1c4, #2a261c);
	--color-selected: light-dark(#ffe895, #332e21);
	--color-line: light-dark(#141414, #f5ecd0);
	--color-line-strong: light-dark(#141414, #f5ecd0);
	--color-control-line: light-dark(#141414, #f5ecd0);
	--color-fg: light-dark(#141414, #fbf3dc);
	--color-muted: light-dark(#4a4331, #cfc3a3);
	--color-faint: light-dark(#4f4836, #c4b896);
	--color-accent: light-dark(#141414, #ffd21f);
	--color-accent-fg: light-dark(#ffd21f, #141414);
	--color-focus-ring: light-dark(#141414, #ffd21f);
	--color-danger: light-dark(#b3261e, #f87171);
	--color-warning: light-dark(#9a4a00, #fb923c);
	--color-caution: light-dark(#7a5a00, #facc15);
	--color-info: light-dark(#1f4fc4, #60a5fa);
	--color-success: light-dark(#1d6b33, #4ade80);
	--color-done: light-dark(#4b3fc9, #a5b4fc);
	--color-neutral: light-dark(#4f4836, #c4b896);
	--color-agent: light-dark(#6a35c9, #c4b5fd);
	--color-brand: light-dark(#141414, #ffd21f);
	--color-brand-fg: light-dark(#ffd21f, #141414);
	/* signal */
	--signal-accent: light-dark(#ffd21f, #ffd21f);
	--signal-on-accent: light-dark(#141414, #141414);
	--signal-success: light-dark(#b6f04a, #b6f04a);
	--signal-warning: light-dark(#ff9f43, #ff9f43);
	--signal-danger: light-dark(#ff7eb6, #ff7eb6);
	--signal-info: light-dark(#62dbe8, #62dbe8);
	/* font */
	--font-sans: "Space Grotesk", "Space Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
	--font-mono: "Space Mono", "Space Mono Fallback", ui-monospace, Menlo, monospace;
	--font-serif: "Newsreader", "Newsreader Fallback", ui-serif, Georgia, Cambria, serif;
	/* type */
	--type-display-family: "Space Grotesk", "Space Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
	--type-display-size: 40px;
	--type-display-weight: 700;
	--type-display-line-height: 44px;
	--type-display-tracking: -1.2px;
	--type-page-title-family: "Space Grotesk", "Space Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
	--type-page-title-size: 26px;
	--type-page-title-weight: 700;
	--type-page-title-line-height: 32px;
	--type-page-title-tracking: -0.6px;
	--type-section-family: "Space Grotesk", "Space Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
	--type-section-size: 20px;
	--type-section-weight: 700;
	--type-section-line-height: 26px;
	--type-section-tracking: -0.3px;
	--type-card-title-family: "Space Grotesk", "Space Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
	--type-card-title-size: 16px;
	--type-card-title-weight: 700;
	--type-card-title-line-height: 22px;
	--type-card-title-tracking: 0px;
	--type-body-family: "Space Grotesk", "Space Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
	--type-body-size: 14px;
	--type-body-weight: 400;
	--type-body-line-height: 20px;
	--type-body-tracking: 0px;
	--type-control-family: "Space Grotesk", "Space Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
	--type-control-size: 14px;
	--type-control-weight: 600;
	--type-control-line-height: 20px;
	--type-control-tracking: 0px;
	--type-meta-family: "Space Mono", "Space Mono Fallback", ui-monospace, Menlo, monospace;
	--type-meta-size: 12px;
	--type-meta-weight: 400;
	--type-meta-line-height: 16px;
	--type-meta-tracking: 0px;
	--type-figure-family: "Space Grotesk", "Space Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
	--type-figure-size: 32px;
	--type-figure-weight: 700;
	--type-figure-line-height: 38px;
	--type-figure-tracking: -0.8px;
	--type-code-family: "Space Mono", "Space Mono Fallback", ui-monospace, 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: 2px;
	--stroke-control: 2px;
	/* corner */
	--corner-tag: 4px;
	--corner-control: 8px;
	--corner-card: 10px;
	--corner-popover: 12px;
	--corner-modal: 12px;
	--corner-pill: 9999px;
	/* elevation */
	--elevation-control: 2px 2px 0 0 light-dark(rgb(20 20 20 / 1), rgb(255 210 31 / 1));
	--elevation-card: 0 0 0 2px light-dark(rgb(20 20 20 / 1), rgb(245 236 208 / 1)), 2px 2px 0 2px light-dark(rgb(20 20 20 / 1), rgb(255 210 31 / 1));
	--elevation-raised: 0 0 0 2px light-dark(rgb(20 20 20 / 1), rgb(245 236 208 / 1)), 3px 3px 0 2px light-dark(rgb(20 20 20 / 1), rgb(255 210 31 / 1));
	--elevation-menu: 0 0 0 2px light-dark(rgb(20 20 20 / 1), rgb(245 236 208 / 1)), 4px 4px 0 2px light-dark(rgb(20 20 20 / 1), rgb(255 210 31 / 1));
	--elevation-modal: 0 0 0 2px light-dark(rgb(20 20 20 / 1), rgb(245 236 208 / 1)), 6px 6px 0 2px light-dark(rgb(20 20 20 / 1), rgb(255 210 31 / 1));
	--elevation-blur: 0px;
	--elevation-opacity: 1;
	/* density */
	--density-row: 40px;
	--density-control: 36px;
	--density-sidebar: 240px;
	--density-header: 56px;
	--density-content: 1120px;
	--density-prose: 680px;
	/* icon */
	--icon-size: 16px;
	--icon-stroke: 2.5px;
	/* motion */
	--motion-fast: 120ms;
	--motion-base: 150ms;
	--motion-slow: 250ms;
	--motion-enter: 200ms;
	--motion-exit: 150ms;
	--motion-menu: 180ms;
	--motion-modal: 240ms;
	--motion-drawer: 300ms;
	--motion-move: 200ms;
	--motion-ease: cubic-bezier(0.2, 0, 0, 1);
	--motion-ease-out: cubic-bezier(0.3, 1.3, 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": "sunburst",
	"label": "Sunburst",
	"scheme": "light",
	"color": {
		"app": {
			"light": "#fff8e3",
			"dark": "#16140f"
		},
		"panel": {
			"light": "#fffdf5",
			"dark": "#1c1a14"
		},
		"sidebar": {
			"light": "#ffeeb0",
			"dark": "#1f1b10"
		},
		"raised": {
			"light": "#fff4cc",
			"dark": "#221f17"
		},
		"overlay": {
			"light": "#ffffff",
			"dark": "#24211a"
		},
		"hover": {
			"light": "#fff1c4",
			"dark": "#2a261c"
		},
		"selected": {
			"light": "#ffe895",
			"dark": "#332e21"
		},
		"line": {
			"light": "#141414",
			"dark": "#f5ecd0"
		},
		"lineStrong": {
			"light": "#141414",
			"dark": "#f5ecd0"
		},
		"controlLine": {
			"light": "#141414",
			"dark": "#f5ecd0"
		},
		"fg": {
			"light": "#141414",
			"dark": "#fbf3dc"
		},
		"muted": {
			"light": "#4a4331",
			"dark": "#cfc3a3"
		},
		"faint": {
			"light": "#4f4836",
			"dark": "#c4b896"
		},
		"accent": {
			"light": "#141414",
			"dark": "#ffd21f"
		},
		"accentFg": {
			"light": "#ffd21f",
			"dark": "#141414"
		},
		"focusRing": {
			"light": "#141414",
			"dark": "#ffd21f"
		},
		"danger": {
			"light": "#b3261e",
			"dark": "#f87171"
		},
		"warning": {
			"light": "#9a4a00",
			"dark": "#fb923c"
		},
		"caution": {
			"light": "#7a5a00",
			"dark": "#facc15"
		},
		"info": {
			"light": "#1f4fc4",
			"dark": "#60a5fa"
		},
		"success": {
			"light": "#1d6b33",
			"dark": "#4ade80"
		},
		"done": {
			"light": "#4b3fc9",
			"dark": "#a5b4fc"
		},
		"neutral": {
			"light": "#4f4836",
			"dark": "#c4b896"
		},
		"agent": {
			"light": "#6a35c9",
			"dark": "#c4b5fd"
		},
		"brand": {
			"light": "#141414",
			"dark": "#ffd21f"
		},
		"brandFg": {
			"light": "#ffd21f",
			"dark": "#141414"
		}
	},
	"signal": {
		"accent": {
			"light": "#ffd21f",
			"dark": "#ffd21f"
		},
		"onAccent": {
			"light": "#141414",
			"dark": "#141414"
		},
		"success": {
			"light": "#b6f04a",
			"dark": "#b6f04a"
		},
		"warning": {
			"light": "#ff9f43",
			"dark": "#ff9f43"
		},
		"danger": {
			"light": "#ff7eb6",
			"dark": "#ff7eb6"
		},
		"info": {
			"light": "#62dbe8",
			"dark": "#62dbe8"
		}
	},
	"family": {
		"sans": "\"Space Grotesk\", \"Space Grotesk Fallback\", ui-sans-serif, system-ui, sans-serif",
		"mono": "\"Space Mono\", \"Space Mono Fallback\", ui-monospace, Menlo, monospace",
		"serif": "\"Newsreader\", \"Newsreader Fallback\", ui-serif, Georgia, Cambria, serif"
	},
	"typography": {
		"display": {
			"family": "sans",
			"size": "40px",
			"weight": "700",
			"lineHeight": "44px",
			"tracking": "-1.2px"
		},
		"pageTitle": {
			"family": "sans",
			"size": "26px",
			"weight": "700",
			"lineHeight": "32px",
			"tracking": "-0.6px"
		},
		"section": {
			"family": "sans",
			"size": "20px",
			"weight": "700",
			"lineHeight": "26px",
			"tracking": "-0.3px"
		},
		"cardTitle": {
			"family": "sans",
			"size": "16px",
			"weight": "700",
			"lineHeight": "22px",
			"tracking": "0px"
		},
		"body": {
			"family": "sans",
			"size": "14px",
			"weight": "400",
			"lineHeight": "20px",
			"tracking": "0px"
		},
		"control": {
			"family": "sans",
			"size": "14px",
			"weight": "600",
			"lineHeight": "20px",
			"tracking": "0px"
		},
		"meta": {
			"family": "mono",
			"size": "12px",
			"weight": "400",
			"lineHeight": "16px",
			"tracking": "0px"
		},
		"figure": {
			"family": "sans",
			"size": "32px",
			"weight": "700",
			"lineHeight": "38px",
			"tracking": "-0.8px"
		},
		"code": {
			"family": "mono",
			"size": "13px",
			"weight": "400",
			"lineHeight": "20px",
			"tracking": "0px"
		}
	},
	"weight": {
		"regular": "400",
		"medium": "500",
		"semibold": "600",
		"bold": "700"
	},
	"stroke": {
		"hairline": "2px",
		"control": "2px"
	},
	"corner": {
		"tag": "4px",
		"control": "8px",
		"card": "10px",
		"popover": "12px",
		"modal": "12px",
		"pill": "9999px"
	},
	"elevation": {
		"control": {
			"light": "2px 2px 0 0 rgb(20 20 20 / 1)",
			"dark": "2px 2px 0 0 rgb(255 210 31 / 1)"
		},
		"card": {
			"light": "0 0 0 2px rgb(20 20 20 / 1), 2px 2px 0 2px rgb(20 20 20 / 1)",
			"dark": "0 0 0 2px rgb(245 236 208 / 1), 2px 2px 0 2px rgb(255 210 31 / 1)"
		},
		"raised": {
			"light": "0 0 0 2px rgb(20 20 20 / 1), 3px 3px 0 2px rgb(20 20 20 / 1)",
			"dark": "0 0 0 2px rgb(245 236 208 / 1), 3px 3px 0 2px rgb(255 210 31 / 1)"
		},
		"menu": {
			"light": "0 0 0 2px rgb(20 20 20 / 1), 4px 4px 0 2px rgb(20 20 20 / 1)",
			"dark": "0 0 0 2px rgb(245 236 208 / 1), 4px 4px 0 2px rgb(255 210 31 / 1)"
		},
		"modal": {
			"light": "0 0 0 2px rgb(20 20 20 / 1), 6px 6px 0 2px rgb(20 20 20 / 1)",
			"dark": "0 0 0 2px rgb(245 236 208 / 1), 6px 6px 0 2px rgb(255 210 31 / 1)"
		},
		"blur": "0px",
		"opacity": "1"
	},
	"density": {
		"row": "40px",
		"control": "36px",
		"sidebar": "240px",
		"header": "56px",
		"content": "1120px",
		"prose": "680px"
	},
	"icon": {
		"size": "16px",
		"stroke": "2.5px"
	},
	"motion": {
		"fast": "120ms",
		"base": "150ms",
		"slow": "250ms",
		"enter": "200ms",
		"exit": "150ms",
		"menu": "180ms",
		"modal": "240ms",
		"drawer": "300ms",
		"move": "200ms",
		"ease": "cubic-bezier(0.2, 0, 0, 1)",
		"easeOut": "cubic-bezier(0.3, 1.3, 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.
- [Slate](https://uicontext.com/themes/slate.md): White cards on a cool gray canvas (a neutral one in the dark), a vivid violet, slate-tinted shadows and big tabular figures.
- [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.

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