Somersault is a shadcn/ui theme built around a yellow primary color (#7b7024) with blue accents (#242e7b). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the yellow primary (#7b7024) on a yellow-tinted background (#0f0e06).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf8snow | #0f0e06black |
| Foreground | #040401black | #fdfdfcwhite |
| Card | #fcfcf8snow | #0f0e06black |
| Card foreground | #040401black | #fdfdfcwhite |
| Popover | #fcfcf8snow | #0f0e06black |
| Popover foreground | #040401black | #fdfdfcwhite |
| Primary | #7b7024olivedrab | #7b7024olivedrab |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #242e7bmidnightblue | #242e7bmidnightblue |
| Secondary foreground | #dbdef5lavender | #dbdef5lavender |
| Muted | #cbcee7lightgrey | #181c34midnightblue |
| Muted foreground | #434347darkslategray | #b8b9bcsilver |
| Accent | #242e7bmidnightblue | #242e7bmidnightblue |
| Accent foreground | #dbdef5lavender | #dbdef5lavender |
| Destructive | #d42b11firebrick | #ed3c21orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7b7024olivedrab | #7b7024olivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 5.00:1 | AA |
| Secondary button | 9.05:1 | AAA |
| Muted text | 6.34:1 | AA |
| Accent | 9.05:1 | AAA |
| Destructive | 5.04:1 | AA |
| Text on background | 19.03:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 5.00:1 | AA |
| Secondary button | 9.05:1 | AAA |
| Muted text | 8.54:1 | AAA |
| Accent | 9.05:1 | AAA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Somersault in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 100.408);
--foreground: oklch(0.103 0.015 104.032);
--muted: oklch(0.857 0.034 279.685);
--muted-foreground: oklch(0.385 0.006 280.076);
--popover: oklch(0.989 0.005 100.408);
--popover-foreground: oklch(0.103 0.015 104.032);
--card: oklch(0.989 0.005 100.408);
--card-foreground: oklch(0.103 0.015 104.032);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.541 0.097 101.691);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.343 0.13 271.88);
--secondary-foreground: oklch(0.906 0.031 279.783);
--accent: oklch(0.343 0.13 271.88);
--accent-foreground: oklch(0.906 0.031 279.783);
--destructive: oklch(0.565 0.207 31.478);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.541 0.097 101.691);
--chart-1: oklch(0.541 0.097 101.691);
--chart-2: oklch(0.343 0.13 271.88);
--chart-3: oklch(0.343 0.13 271.88);
--chart-4: oklch(0.364 0.14 271.726);
--chart-5: oklch(0.547 0.1 101.623);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.017 102.215);
--foreground: oklch(0.994 0.002 100.36);
--muted: oklch(0.235 0.047 276.474);
--muted-foreground: oklch(0.785 0.005 280.228);
--popover: oklch(0.161 0.017 102.215);
--popover-foreground: oklch(0.994 0.002 100.36);
--card: oklch(0.161 0.017 102.215);
--card-foreground: oklch(0.994 0.002 100.36);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.541 0.097 101.691);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.343 0.13 271.88);
--secondary-foreground: oklch(0.906 0.031 279.783);
--accent: oklch(0.343 0.13 271.88);
--accent-foreground: oklch(0.906 0.031 279.783);
--destructive: oklch(0.623 0.216 31.65);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.541 0.097 101.691);
--chart-1: oklch(0.541 0.097 101.691);
--chart-2: oklch(0.343 0.13 271.88);
--chart-3: oklch(0.343 0.13 271.88);
--chart-4: oklch(0.364 0.14 271.726);
--chart-5: oklch(0.547 0.1 101.623);
}