Sustenance is a shadcn/ui theme built around a light teal primary color (#e0faf4) with light red accents (#fae0e6). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the light teal primary (#e0faf4) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfcmintcream | #030706black |
| Foreground | #010403black | #fcfdfdwhite |
| Card | #f7fdfcmintcream | #030706black |
| Card foreground | #010403black | #fcfdfdwhite |
| Popover | #f7fdfcmintcream | #030706black |
| Popover foreground | #010403black | #fcfdfdwhite |
| Primary | #e0faf4lightcyan | #e0faf4lightcyan |
| Primary foreground | #093a2edarkslategray | #093a2edarkslategray |
| Secondary | #fae0e6mistyrose | #fae0e6mistyrose |
| Secondary foreground | #921633brown | #921633brown |
| Muted | #e5dcdegainsboro | #231a1cblack |
| Muted foreground | #535051darkslategray | #afacaddarkgray |
| Accent | #fae0e6mistyrose | #fae0e6mistyrose |
| Accent foreground | #921633brown | #921633brown |
| Destructive | #c4440echocolate | #d74b0fchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e0faf4lightcyan | #e0faf4lightcyan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.99:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 11.58:1 | AAA |
| Secondary button | 7.07:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 7.07:1 | AAA |
| Destructive | 5.03:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 11.58:1 | AAA |
| Secondary button | 7.07:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 7.07:1 | AAA |
| Destructive | 4.29:1 | AA Large |
Paste this into your globals.css to use Sustenance in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 180.766);
--foreground: oklch(0.098 0.01 180.95);
--muted: oklch(0.902 0.01 1.282);
--muted-foreground: oklch(0.435 0.004 1.245);
--popover: oklch(0.989 0.007 180.766);
--popover-foreground: oklch(0.098 0.01 180.95);
--card: oklch(0.989 0.007 180.766);
--card-foreground: oklch(0.098 0.01 180.95);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.965 0.029 180.101);
--primary-foreground: oklch(0.312 0.054 173.109);
--secondary: oklch(0.93 0.03 1.849);
--secondary-foreground: oklch(0.431 0.157 15.062);
--accent: oklch(0.93 0.03 1.849);
--accent-foreground: oklch(0.431 0.157 15.062);
--destructive: oklch(0.56 0.173 39.121);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.965 0.029 180.101);
--chart-1: oklch(0.965 0.029 180.101);
--chart-2: oklch(0.93 0.03 1.849);
--chart-3: oklch(0.93 0.03 1.849);
--chart-4: oklch(0.96 0.017 1.449);
--chart-5: oklch(0.966 0.03 180.067);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.009 180.953);
--foreground: oklch(0.993 0.002 180.913);
--muted: oklch(0.23 0.015 2.733);
--muted-foreground: oklch(0.747 0.004 1.105);
--popover: oklch(0.121 0.009 180.953);
--popover-foreground: oklch(0.993 0.002 180.913);
--card: oklch(0.121 0.009 180.953);
--card-foreground: oklch(0.993 0.002 180.913);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.965 0.029 180.101);
--primary-foreground: oklch(0.312 0.054 173.109);
--secondary: oklch(0.93 0.03 1.849);
--secondary-foreground: oklch(0.431 0.157 15.062);
--accent: oklch(0.93 0.03 1.849);
--accent-foreground: oklch(0.431 0.157 15.062);
--destructive: oklch(0.599 0.186 38.981);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.965 0.029 180.101);
--chart-1: oklch(0.965 0.029 180.101);
--chart-2: oklch(0.93 0.03 1.849);
--chart-3: oklch(0.93 0.03 1.849);
--chart-4: oklch(0.96 0.017 1.449);
--chart-5: oklch(0.966 0.03 180.067);
}