Terminal Theme Recipe
A walkthrough of Cynosure's built-in terminal dark theme and how to use it as a reference for authoring your own dark palette.
Terminal theme recipe
Section titled “Terminal theme recipe”Cynosure ships a dark “terminal” theme inspired by GitHub Dark / JetBrains Mono aesthetics. It’s useful as a reference for authoring your own dark palette.
Enable it
Section titled “Enable it”import '@arshad-shah/cynosure-themes/terminal';Then add 'terminal' to your ThemeProvider allowed themes:
<ThemeProvider themes={['light', 'dark', 'terminal']} defaultTheme="terminal"> {children}</ThemeProvider>What’s in it
Section titled “What’s in it”- Background:
#0d0f14with#161b22for elevated surfaces. - Foreground:
#e6edf3default,#8b949emuted. - Accent:
#388bfdacross solid / hover / soft / focus families. - Body font:
JetBrains Monowith a monospace fallback stack. - Feedback tokens (success / danger / warning) darkened enough to hit 3:1 contrast with white text — verified by the contrast audit.
Authoring your own dark palette
Section titled “Authoring your own dark palette”- Start by copying
packages/themes/src/terminal/index.css. - Change the primitive values.
- Run
pnpm audit:contrastto validate the pairs. - Document any intentional contrast exceptions in your own docs.
Why monospace?
Section titled “Why monospace?”Not mandatory — Cynosure only uses --cynosure-font-body-family and
--cynosure-font-mono-family. The terminal theme rebinds the body family to
a monospace stack because that’s the “feel” it’s going for. Your theme
can rebind to anything.