Terrapin is a shadcn/ui theme built around a muted yellow primary color (#c2bcad) with muted violet accents (#bcadc2). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the muted yellow primary (#c2bcad) on a yellow-tinted background (#0f0c06).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #0f0c06black |
| Foreground | #130f06black | #faf8f5whitesmoke |
| Card | #fcfbf8snow | #120f07black |
| Card foreground | #0f0c05black | #fcfbf8snow |
| Popover | #fcfbf8snow | #120f07black |
| Popover foreground | #0f0c05black | #fcfbf8snow |
| Primary | #c2bcadsilver | #c2bcadsilver |
| Primary foreground | #23201ablack | #23201ablack |
| Secondary | #adc2bcsilver | #adc2bcsilver |
| Secondary foreground | #1a2320black | #1a2320black |
| Muted | #e5f0edlavender | #0f1a16black |
| Muted foreground | #465953darkslategray | #a6b9b3darkgray |
| Accent | #bcadc2silver | #bcadc2silver |
| Accent foreground | #201a23black | #201a23black |
| Destructive | #a83310firebrick | #e54615orangered |
| Destructive foreground | #fdf0ecseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c2bcadsilver | #c2bcadsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.76:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 8.55:1 | AAA |
| Secondary button | 8.61:1 | AAA |
| Muted text | 6.41:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 5.98:1 | AA |
| Text on background | 18.44:1 | AAA |
| Text on card | 18.50:1 | AAA |
| Primary button | 8.55:1 | AAA |
| Secondary button | 8.61:1 | AAA |
| Muted text | 8.65:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Terrapin in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 86.014);
--foreground: oklch(0.171 0.019 86.739);
--muted: oklch(0.946 0.013 175.21);
--muted-foreground: oklch(0.444 0.025 173.833);
--popover: oklch(0.987 0.004 86.022);
--popover-foreground: oklch(0.156 0.016 88.291);
--card: oklch(0.987 0.004 86.022);
--card-foreground: oklch(0.156 0.016 88.291);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.795 0.022 86.086);
--primary-foreground: oklch(0.246 0.012 86.088);
--secondary: oklch(0.797 0.025 174.662);
--secondary-foreground: oklch(0.247 0.014 173.817);
--accent: oklch(0.766 0.034 315.24);
--accent-foreground: oklch(0.229 0.02 315.065);
--destructive: oklch(0.493 0.159 35.936);
--destructive-foreground: oklch(0.965 0.015 37.673);
--ring: oklch(0.795 0.022 86.086);
--chart-1: oklch(0.795 0.022 86.086);
--chart-2: oklch(0.797 0.025 174.662);
--chart-3: oklch(0.766 0.034 315.24);
--chart-4: oklch(0.819 0.022 174.795);
--chart-5: oklch(0.798 0.026 86.092);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.014 88.002);
--foreground: oklch(0.98 0.005 86.028);
--muted: oklch(0.206 0.018 172.732);
--muted-foreground: oklch(0.771 0.023 174.737);
--popover: oklch(0.169 0.016 86.543);
--popover-foreground: oklch(0.987 0.004 86.021);
--card: oklch(0.169 0.016 86.543);
--card-foreground: oklch(0.987 0.004 86.021);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.795 0.022 86.086);
--primary-foreground: oklch(0.246 0.012 86.088);
--secondary: oklch(0.797 0.025 174.662);
--secondary-foreground: oklch(0.247 0.014 173.817);
--accent: oklch(0.766 0.034 315.24);
--accent-foreground: oklch(0.229 0.02 315.065);
--destructive: oklch(0.617 0.203 35.644);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.795 0.022 86.086);
--chart-1: oklch(0.795 0.022 86.086);
--chart-2: oklch(0.797 0.025 174.662);
--chart-3: oklch(0.766 0.034 315.24);
--chart-4: oklch(0.819 0.022 174.795);
--chart-5: oklch(0.798 0.026 86.092);
}