Terracotta is a shadcn/ui theme built around a pink primary color (#ba1c68) with blue accents (#1c68ba). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the pink primary (#ba1c68) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fasnow | #000000black |
| Foreground | #090205black | #fdfcfcsnow |
| Card | #fcf3f7lavenderblush | #030303black |
| Card foreground | #040102black | #ffffffwhite |
| Popover | #fdf7fasnow | #000000black |
| Popover foreground | #090205black | #fdfcfcsnow |
| Primary | #ba1c68mediumvioletred | #ba1c68mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #68ba1colivedrab | #68ba1colivedrab |
| Secondary foreground | #050901black | #050901black |
| Muted | #e3e4e2gainsboro | #1c1d1bblack |
| Muted foreground | #454e3cdarkslategray | #bac3b1silver |
| Accent | #1c68basteelblue | #1c68basteelblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c62415firebrick | #ea4334tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ba1c68mediumvioletred | #ba1c68mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 6.84:1 | AA |
| Accent | 5.58:1 | AA |
| Destructive | 5.71:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 9.25:1 | AAA |
| Accent | 5.58:1 | AA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Terracotta in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 346.225);
--foreground: oklch(0.103 0.026 345.714);
--muted: oklch(0.918 0.004 129.173);
--muted-foreground: oklch(0.409 0.031 129.972);
--popover: oklch(0.981 0.008 346.225);
--popover-foreground: oklch(0.103 0.026 345.714);
--card: oklch(0.972 0.012 346.332);
--card-foreground: oklch(0.082 0.021 345.714);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.524 0.197 358.464);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.71 0.196 134.415);
--secondary-foreground: oklch(0.13 0.026 127.601);
--accent: oklch(0.519 0.148 254.004);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.535 0.199 30.04);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.524 0.197 358.464);
--chart-1: oklch(0.524 0.197 358.464);
--chart-2: oklch(0.71 0.196 134.415);
--chart-3: oklch(0.519 0.148 254.004);
--chart-4: oklch(0.747 0.207 134.458);
--chart-5: oklch(0.528 0.202 359.047);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 346.068);
--muted: oklch(0.23 0.006 129.392);
--muted-foreground: oklch(0.805 0.027 129.481);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.002 346.068);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.524 0.197 358.464);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.71 0.196 134.415);
--secondary-foreground: oklch(0.13 0.026 127.601);
--accent: oklch(0.519 0.148 254.004);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.625 0.206 29.356);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.524 0.197 358.464);
--chart-1: oklch(0.524 0.197 358.464);
--chart-2: oklch(0.71 0.196 134.415);
--chart-3: oklch(0.519 0.148 254.004);
--chart-4: oklch(0.747 0.207 134.458);
--chart-5: oklch(0.528 0.202 359.047);
}