Self-reliant is a shadcn/ui theme built around a vivid deep teal primary color (#02271d) with muted light teal accents (#cddbd7). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the vivid deep teal primary (#02271d) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfcmintcream | #020303black |
| Foreground | #03110eblack | #f6f9f8whitesmoke |
| Card | #f7fdfcmintcream | #020303black |
| Card foreground | #03110eblack | #f6f9f8whitesmoke |
| Popover | #f7fdfcmintcream | #020303black |
| Popover foreground | #03110eblack | #f6f9f8whitesmoke |
| Primary | #02271dblack | #02271dblack |
| Primary foreground | #0de7b1mediumspringgreen | #0de7b1mediumspringgreen |
| Secondary | #cddbd7lightgrey | #121716black |
| Secondary foreground | #31443fdarkslategray | #a3b8b3darkgray |
| Muted | #dbebe7gainsboro | #142420black |
| Muted foreground | #52605ddimgray | #9fada9darkgray |
| Accent | #cddbd7lightgrey | #121716black |
| Accent foreground | #31443fdarkslategray | #a3b8b3darkgray |
| Destructive | #b54403saddlebrown | #fc7527tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #02271dblack | #02271dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.72:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 10.02:1 | AAA |
| Secondary button | 7.22:1 | AAA |
| Muted text | 5.33:1 | AA |
| Accent | 7.22:1 | AAA |
| Destructive | 5.54:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 10.02:1 | AAA |
| Secondary button | 8.67:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 8.67:1 | AAA |
| Destructive | 7.70:1 | AAA |
Paste this into your globals.css to use Self-reliant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 179.658);
--foreground: oklch(0.163 0.023 176.905);
--muted: oklch(0.927 0.017 179.32);
--muted-foreground: oklch(0.477 0.018 178.718);
--popover: oklch(0.989 0.007 179.658);
--popover-foreground: oklch(0.163 0.023 176.905);
--card: oklch(0.989 0.007 179.658);
--card-foreground: oklch(0.163 0.023 176.905);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.243 0.045 172.281);
--primary-foreground: oklch(0.826 0.166 167.898);
--secondary: oklch(0.879 0.016 179.351);
--secondary-foreground: oklch(0.369 0.025 177.75);
--accent: oklch(0.879 0.016 179.351);
--accent-foreground: oklch(0.369 0.025 177.75);
--destructive: oklch(0.535 0.159 42.353);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.243 0.045 172.281);
--chart-1: oklch(0.243 0.045 172.281);
--chart-2: oklch(0.879 0.016 179.351);
--chart-3: oklch(0.879 0.016 179.351);
--chart-4: oklch(0.9 0.013 179.455);
--chart-5: oklch(0.244 0.046 172.101);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.007 179.898);
--foreground: oklch(0.979 0.003 179.772);
--muted: oklch(0.244 0.023 176.838);
--muted-foreground: oklch(0.735 0.017 179.202);
--popover: oklch(0.096 0.007 179.898);
--popover-foreground: oklch(0.979 0.003 179.772);
--card: oklch(0.096 0.007 179.898);
--card-foreground: oklch(0.979 0.003 179.772);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.243 0.045 172.281);
--primary-foreground: oklch(0.826 0.166 167.898);
--secondary: oklch(0.199 0.009 178.59);
--secondary-foreground: oklch(0.765 0.025 178.924);
--accent: oklch(0.199 0.009 178.59);
--accent-foreground: oklch(0.765 0.025 178.924);
--destructive: oklch(0.712 0.185 45.869);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.243 0.045 172.281);
--chart-1: oklch(0.243 0.045 172.281);
--chart-2: oklch(0.199 0.009 178.59);
--chart-3: oklch(0.199 0.009 178.59);
--chart-4: oklch(0.234 0.011 178.433);
--chart-5: oklch(0.244 0.046 172.101);
}