Melville Sturgeon is a shadcn/ui theme built around a muted green primary color (#94a89d) with muted teal accents (#94a8a6). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted green primary (#94a89d) on a neutral background (#020805).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #020805black |
| Foreground | #010402black | #fcfdfcwhite |
| Card | #fcfdfcwhite | #020805black |
| Card foreground | #010402black | #fcfdfcwhite |
| Popover | #fcfdfcwhite | #020805black |
| Popover foreground | #010402black | #fcfdfcwhite |
| Primary | #94a89ddarkgray | #94a89ddarkgray |
| Primary foreground | #050605black | #050605black |
| Secondary | #96a894darkseagreen | #96a894darkseagreen |
| Secondary foreground | #050605black | #050605black |
| Muted | #f1f3f1whitesmoke | #0c0e0cblack |
| Muted foreground | #666666dimgray | #999999darkgray |
| Accent | #94a8a6darkgray | #94a8a6darkgray |
| Accent foreground | #050606black | #050606black |
| Destructive | #ae390ffirebrick | #ed6635tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e2e4e3gainsboro | #202221black |
| Input | #e2e4e3gainsboro | #202221black |
| Ring | #94a89ddarkgray | #94a89ddarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 5.15:1 | AA |
| Accent | 8.12:1 | AAA |
| Destructive | 6.19:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 6.81:1 | AA |
| Accent | 8.12:1 | AAA |
| Destructive | 6.58:1 | AA |
Paste this into your globals.css to use Melville Sturgeon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 161.752);
--foreground: oklch(0.099 0.015 161.786);
--muted: oklch(0.963 0.003 143.619);
--muted-foreground: oklch(0.51 0 171.87);
--popover: oklch(0.993 0.002 161.752);
--popover-foreground: oklch(0.099 0.015 161.786);
--card: oklch(0.993 0.002 161.752);
--card-foreground: oklch(0.099 0.015 161.786);
--border: oklch(0.916 0.001 161.769);
--input: oklch(0.916 0.001 161.769);
--primary: oklch(0.713 0.027 160.868);
--primary-foreground: oklch(0.117 0.003 161.804);
--secondary: oklch(0.711 0.034 143.378);
--secondary-foreground: oklch(0.117 0.004 143.335);
--accent: oklch(0.715 0.022 191.791);
--accent-foreground: oklch(0.117 0.003 192.2);
--destructive: oklch(0.51 0.159 37.65);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.713 0.027 160.868);
--chart-1: oklch(0.713 0.027 160.868);
--chart-2: oklch(0.711 0.034 143.378);
--chart-3: oklch(0.715 0.022 191.791);
--chart-4: oklch(0.735 0.031 143.408);
--chart-5: oklch(0.717 0.035 160.585);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.017 161.789);
--foreground: oklch(0.993 0.002 161.77);
--muted: oklch(0.159 0.005 143.482);
--muted-foreground: oklch(0.683 0 180);
--popover: oklch(0.123 0.017 161.789);
--popover-foreground: oklch(0.993 0.002 161.77);
--card: oklch(0.123 0.017 161.789);
--card-foreground: oklch(0.993 0.002 161.77);
--border: oklch(0.249 0.002 161.574);
--input: oklch(0.249 0.002 161.574);
--primary: oklch(0.713 0.027 160.868);
--primary-foreground: oklch(0.117 0.003 161.804);
--secondary: oklch(0.711 0.034 143.378);
--secondary-foreground: oklch(0.117 0.004 143.335);
--accent: oklch(0.715 0.022 191.791);
--accent-foreground: oklch(0.117 0.003 192.2);
--destructive: oklch(0.672 0.179 39.4);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.713 0.027 160.868);
--chart-1: oklch(0.713 0.027 160.868);
--chart-2: oklch(0.711 0.034 143.378);
--chart-3: oklch(0.715 0.022 191.791);
--chart-4: oklch(0.735 0.031 143.408);
--chart-5: oklch(0.717 0.035 160.585);
}