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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 5.71:1 | AA |
| Accent | 7.47:1 | AAA |
| Destructive | 6.64:1 | AA |
| Text on background | 20.62:1 | AAA |
| Text on card | 20.62:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 6.62:1 | AA |
| Accent | 7.47:1 | AAA |
| Destructive | 4.59:1 | AA |
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);
}