Green Ghost is a shadcn/ui theme built around a deep teal primary color (#16423c) with neutral gray accents (#c9c7cc). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the deep teal primary (#16423c) on a neutral background (#050703).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #050703black |
| Foreground | #030401black | #fafbf9snow |
| Card | #fdfdfcwhite | #1a1a1dblack |
| Card foreground | #030401black | #fafbf9snow |
| Popover | #fdfdfcwhite | #050703black |
| Popover foreground | #030401black | #fafbf9snow |
| Primary | #16423cdarkslategray | #16423cdarkslategray |
| Primary foreground | #e9efecwhitesmoke | #c4dad2lightgrey |
| Secondary | #6a9c89cadetblue | #c9c7ccsilver |
| Secondary foreground | #e9efecwhitesmoke | #302e33darkslategray |
| Muted | #ddd9e3gainsboro | #211c26black |
| Muted foreground | #44404adarkslategray | #bab5bfsilver |
| Accent | #c9c7ccsilver | #c9c7ccsilver |
| Accent foreground | #302e33darkslategray | #302e33darkslategray |
| Destructive | #b80000darkred | #b30b1efirebrick |
| Destructive foreground | #fee4ddmistyrose | #ffffffwhite |
| Border | #ebecealinen | #000000black |
| Input | #ebecealinen | #1a1b18black |
| Ring | #caccc7lightgrey | #caccc7lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 9.59:1 | AAA |
| Secondary button | 2.67:1 | Fail |
| Muted text | 7.25:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 5.71:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 16.72:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 8.31:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 7.06:1 | AAA |
Paste this into your globals.css to use Green Ghost in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 126.462);
--foreground: oklch(0.103 0.02 125.273);
--muted: oklch(0.891 0.015 306.21);
--muted-foreground: oklch(0.38 0.017 305.853);
--popover: oklch(0.994 0.003 126.462);
--popover-foreground: oklch(0.103 0.02 125.273);
--card: oklch(0.994 0.003 126.462);
--card-foreground: oklch(0.103 0.02 125.273);
--border: oklch(0.941 0.003 126.468);
--input: oklch(0.941 0.003 126.468);
--primary: oklch(0.347 0.049 182.993);
--primary-foreground: oklch(0.947 0.008 164.934);
--secondary: oklch(0.652 0.061 168.707);
--secondary-foreground: oklch(0.947 0.008 164.934);
--accent: oklch(0.832 0.008 306.308);
--accent-foreground: oklch(0.305 0.009 306.049);
--destructive: oklch(0.491 0.202 29.234);
--destructive-foreground: oklch(0.937 0.03 35.945);
--ring: oklch(0.842 0.008 126.547);
--chart-1: oklch(0.347 0.049 182.993);
--chart-2: oklch(0.652 0.061 168.707);
--chart-3: oklch(0.832 0.008 306.308);
--chart-4: oklch(0.674 0.057 169.04);
--chart-5: oklch(0.35 0.051 182.753);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.013 125.768);
--foreground: oklch(0.986 0.002 126.458);
--muted: oklch(0.236 0.021 305.279);
--muted-foreground: oklch(0.781 0.014 306.194);
--popover: oklch(0.124 0.013 125.768);
--popover-foreground: oklch(0.986 0.002 126.458);
--card: oklch(0.219 0.006 285.912);
--card-foreground: oklch(0.986 0.002 126.458);
--border: oklch(0 0 0);
--input: oklch(0.219 0.005 126.734);
--primary: oklch(0.347 0.049 182.993);
--primary-foreground: oklch(0.87 0.026 171.862);
--secondary: oklch(0.832 0.008 306.308);
--secondary-foreground: oklch(0.305 0.009 306.049);
--accent: oklch(0.832 0.008 306.308);
--accent-foreground: oklch(0.305 0.009 306.049);
--destructive: oklch(0.486 0.192 25.036);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.842 0.008 126.547);
--chart-1: oklch(0.347 0.049 182.993);
--chart-2: oklch(0.832 0.008 306.308);
--chart-3: oklch(0.832 0.008 306.308);
--chart-4: oklch(0.857 0.007 306.329);
--chart-5: oklch(0.35 0.051 182.753);
}