Terminal for shadcn/ui

Terminal is a shadcn/ui theme built around a deep green primary color (#236732) with deep purple accents (#672358). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#236732) on a neutral background (#020402).

Color palette

TokenLightDark
Background
#ffffffwhite
#020402black
Foreground
#010402black
#ffffffwhite
Card
#ffffffwhite
#020402black
Card foreground
#010402black
#ffffffwhite
Popover
#ffffffwhite
#020402black
Popover foreground
#010402black
#ffffffwhite
Primary
#236732forestgreen
#236732forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#672358purple
#672358purple
Secondary foreground
#eecee7gainsboro
#eecee7gainsboro
Muted
#e3d3e0gainsboro
#2c1c28darkslategray
Muted foreground
#60485bdimgray
#b79fb2darkgray
Accent
#672358purple
#672358purple
Accent foreground
#eecee7gainsboro
#eecee7gainsboro
Destructive
#b31914firebrick
#e6201acrimson
Destructive foreground
#fefbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#236732forestgreen
#236732forestgreen

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button6.90:1AA
Secondary button7.47:1AAA
Muted text5.71:1AA
Accent7.47:1AAA
Destructive6.64:1AA
Dark mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button6.90:1AA
Secondary button7.47:1AAA
Muted text6.62:1AA
Accent7.47:1AAA
Destructive4.59:1AA

CSS variables

Paste this into your globals.css to use Terminal in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.016 151.794);
  --muted: oklch(0.885 0.024 333.029);
  --muted-foreground: oklch(0.435 0.043 334.063);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.016 151.794);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.098 0.016 151.794);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.456 0.108 147.783);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.378 0.118 337.143);
  --secondary-foreground: oklch(0.885 0.049 333.455);
  --accent: oklch(0.378 0.118 337.143);
  --accent-foreground: oklch(0.885 0.049 333.455);
  --destructive: oklch(0.492 0.187 28.736);
  --destructive-foreground: oklch(0.99 0.004 19.665);
  --ring: oklch(0.456 0.108 147.783);
  --chart-1: oklch(0.456 0.108 147.783);
  --chart-2: oklch(0.378 0.118 337.143);
  --chart-3: oklch(0.378 0.118 337.143);
  --chart-4: oklch(0.406 0.128 337.211);
  --chart-5: oklch(0.461 0.113 147.524);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.011 152.059);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.251 0.033 334.504);
  --muted-foreground: oklch(0.729 0.038 333.394);
  --popover: oklch(0.096 0.011 152.059);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.096 0.011 152.059);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.456 0.108 147.783);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.378 0.118 337.143);
  --secondary-foreground: oklch(0.885 0.049 333.455);
  --accent: oklch(0.378 0.118 337.143);
  --accent-foreground: oklch(0.885 0.049 333.455);
  --destructive: oklch(0.59 0.227 28.866);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.456 0.108 147.783);
  --chart-1: oklch(0.456 0.108 147.783);
  --chart-2: oklch(0.378 0.118 337.143);
  --chart-3: oklch(0.378 0.118 337.143);
  --chart-4: oklch(0.406 0.128 337.211);
  --chart-5: oklch(0.461 0.113 147.524);
}