Somersault is a shadcn/ui theme built around a deep green primary color (#1c3b23) with deep teal accents (#1c3b33). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the deep green primary (#1c3b23) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #000000black |
| Foreground | #020804black | #f5f9f6whitesmoke |
| Card | #f4fbf6mintcream | #030303black |
| Card foreground | #010402black | #f9fbf9mintcream |
| Popover | #f4fbf6mintcream | #030303black |
| Popover foreground | #010402black | #f9fbf9mintcream |
| Primary | #1c3b23darkslategray | #1c3b23darkslategray |
| Primary foreground | #afd9b9silver | #afd9b9silver |
| Secondary | #243b1cdarkslategray | #243b1cdarkslategray |
| Secondary foreground | #bad9afsilver | #bad9afsilver |
| Muted | #ebf3e8honeydew | #0f170cblack |
| Muted foreground | #4b5747darkslategray | #acb8a8darkgray |
| Accent | #1c3b33darkslategray | #1c3b33darkslategray |
| Accent foreground | #afd9celightblue | #afd9celightblue |
| Destructive | #792301maroon | #fd6326tomato |
| Destructive foreground | #fec5aepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1c3b23darkslategray | #1c3b23darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.52:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 19.76:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 8.83:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 6.97:1 | AA |
Paste this into your globals.css to use Somersault in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.007 153.132);
--foreground: oklch(0.122 0.019 152.55);
--muted: oklch(0.954 0.017 137.231);
--muted-foreground: oklch(0.442 0.029 137.356);
--popover: oklch(0.981 0.01 153.077);
--popover-foreground: oklch(0.097 0.015 152.55);
--card: oklch(0.981 0.01 153.077);
--card-foreground: oklch(0.097 0.015 152.55);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.32 0.057 149.8);
--primary-foreground: oklch(0.848 0.063 151.957);
--secondary: oklch(0.324 0.06 137.838);
--secondary-foreground: oklch(0.853 0.066 137.388);
--accent: oklch(0.325 0.04 174.327);
--accent-foreground: oklch(0.853 0.047 177.098);
--destructive: oklch(0.389 0.126 38.207);
--destructive-foreground: oklch(0.869 0.073 42.589);
--ring: oklch(0.32 0.057 149.8);
--chart-1: oklch(0.32 0.057 149.8);
--chart-2: oklch(0.324 0.06 137.838);
--chart-3: oklch(0.325 0.04 174.327);
--chart-4: oklch(0.36 0.068 137.872);
--chart-5: oklch(0.324 0.061 149.527);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.006 153.147);
--muted: oklch(0.194 0.025 137.558);
--muted-foreground: oklch(0.769 0.026 137.269);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.986 0.004 153.179);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.004 153.179);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.32 0.057 149.8);
--primary-foreground: oklch(0.848 0.063 151.957);
--secondary: oklch(0.324 0.06 137.838);
--secondary-foreground: oklch(0.853 0.066 137.388);
--accent: oklch(0.325 0.04 174.327);
--accent-foreground: oklch(0.853 0.047 177.098);
--destructive: oklch(0.69 0.2 39.467);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.32 0.057 149.8);
--chart-1: oklch(0.32 0.057 149.8);
--chart-2: oklch(0.324 0.06 137.838);
--chart-3: oklch(0.325 0.04 174.327);
--chart-4: oklch(0.36 0.068 137.872);
--chart-5: oklch(0.324 0.061 149.527);
}