Sustenance is a shadcn/ui theme built around a vivid deep green primary color (#133607) with muted light green accents (#c1d3bb). The light mode uses a neutral background (#fcfefb). Dark mode keeps the vivid deep green primary (#133607) on a green-tinted background (#080e06).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #080e06black |
| Foreground | #091505black | #f9fbf9mintcream |
| Card | #fcfefbwhite | #080e06black |
| Card foreground | #091505black | #f9fbf9mintcream |
| Popover | #fcfefbwhite | #080e06black |
| Popover foreground | #091505black | #f9fbf9mintcream |
| Primary | #133607darkgreen | #133607darkgreen |
| Primary foreground | #58e425limegreen | #58e425limegreen |
| Secondary | #dce3d9gainsboro | #171e15black |
| Secondary foreground | #404f3bdarkslategray | #acc0a5darkgray |
| Muted | #dbe3d8gainsboro | #1f271cblack |
| Muted foreground | #5b6657dimgray | #9da899darkgray |
| Accent | #c1d3bbsilver | #283a22darkslategray |
| Accent foreground | #293824darkslategray | #c0d6b8silver |
| Destructive | #a13a12saddlebrown | #ea6f3etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #133607darkgreen | #133607darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.44:1 | AAA |
| Text on card | 18.44:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 6.66:1 | AA |
| Muted text | 4.60:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 6.71:1 | AA |
| Text on background | 18.75:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 8.77:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 7.85:1 | AAA |
| Destructive | 6.81:1 | AA |
Paste this into your globals.css to use Sustenance in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 137.199);
--foreground: oklch(0.177 0.036 136.815);
--muted: oklch(0.908 0.018 137.235);
--muted-foreground: oklch(0.496 0.027 137.324);
--popover: oklch(0.994 0.004 137.199);
--popover-foreground: oklch(0.177 0.036 136.815);
--card: oklch(0.994 0.004 137.199);
--card-foreground: oklch(0.177 0.036 136.815);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.297 0.084 138.839);
--primary-foreground: oklch(0.81 0.246 139.517);
--secondary: oklch(0.907 0.015 137.229);
--secondary-foreground: oklch(0.409 0.039 137.441);
--accent: oklch(0.847 0.039 137.301);
--accent-foreground: oklch(0.321 0.04 137.545);
--destructive: oklch(0.489 0.145 39.232);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.297 0.084 138.839);
--chart-1: oklch(0.297 0.084 138.839);
--chart-2: oklch(0.907 0.015 137.229);
--chart-3: oklch(0.847 0.039 137.301);
--chart-4: oklch(0.929 0.012 137.219);
--chart-5: oklch(0.3 0.086 138.892);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.019 136.526);
--foreground: oklch(0.986 0.004 137.198);
--muted: oklch(0.26 0.024 137.429);
--muted-foreground: oklch(0.719 0.025 137.272);
--popover: oklch(0.155 0.019 136.526);
--popover-foreground: oklch(0.986 0.004 137.198);
--card: oklch(0.155 0.019 136.526);
--card-foreground: oklch(0.986 0.004 137.198);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.297 0.084 138.839);
--primary-foreground: oklch(0.81 0.246 139.517);
--secondary: oklch(0.225 0.02 137.422);
--secondary-foreground: oklch(0.786 0.044 137.328);
--accent: oklch(0.326 0.048 137.645);
--accent-foreground: oklch(0.851 0.048 137.327);
--destructive: oklch(0.679 0.165 41.071);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.297 0.084 138.839);
--chart-1: oklch(0.297 0.084 138.839);
--chart-2: oklch(0.225 0.02 137.422);
--chart-3: oklch(0.326 0.048 137.645);
--chart-4: oklch(0.261 0.025 137.445);
--chart-5: oklch(0.3 0.086 138.892);
}