Pepper is a shadcn/ui theme built around a light red primary color (#f4ebed) with neutral gray accents (#d7d5d5). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the light red primary (#f4ebed) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f8snow | #000000black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #fdf7f8snow | #000000black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fdf7f8snow | #000000black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #f4ebedlinen | #f4ebedlinen |
| Primary foreground | #713d46dimgray | #713d46dimgray |
| Secondary | #d7d5d5lightgrey | #353132darkslategray |
| Secondary foreground | #3f3b3cdarkslategray | #cecacblightgrey |
| Muted | #e9e2e4gainsboro | #1d1618black |
| Muted foreground | #4c393cdarkslategray | #c6b3b7silver |
| Accent | #d7d5d5lightgrey | #353132darkslategray |
| Accent foreground | #3f3b3cdarkslategray | #cecacblightgrey |
| Destructive | #b83f0ffirebrick | #ee652ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4ebedlinen | #f4ebedlinen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 8.42:1 | AAA |
| Accent | 7.56:1 | AAA |
| Destructive | 5.59:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 8.91:1 | AAA |
| Accent | 7.87:1 | AAA |
| Destructive | 6.56:1 | AA |
Paste this into your globals.css to use Pepper in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 4.484);
--foreground: oklch(0 0 0);
--muted: oklch(0.919 0.007 4.508);
--muted-foreground: oklch(0.366 0.027 6.213);
--popover: oklch(0.981 0.006 4.484);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.006 4.484);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.948 0.01 4.595);
--primary-foreground: oklch(0.426 0.074 8.934);
--secondary: oklch(0.875 0.003 4.395);
--secondary-foreground: oklch(0.358 0.005 4.695);
--accent: oklch(0.875 0.003 4.395);
--accent-foreground: oklch(0.358 0.005 4.695);
--destructive: oklch(0.534 0.165 38.447);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.948 0.01 4.595);
--chart-1: oklch(0.948 0.01 4.595);
--chart-2: oklch(0.875 0.003 4.395);
--chart-3: oklch(0.875 0.003 4.395);
--chart-4: oklch(0.899 0.002 4.377);
--chart-5: oklch(0.947 0.011 4.623);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 4.362);
--muted: oklch(0.21 0.01 5.56);
--muted-foreground: oklch(0.785 0.022 5.038);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.002 4.362);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.002 4.362);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.948 0.01 4.595);
--primary-foreground: oklch(0.426 0.074 8.934);
--secondary: oklch(0.318 0.004 4.681);
--secondary-foreground: oklch(0.843 0.003 4.421);
--accent: oklch(0.318 0.004 4.681);
--accent-foreground: oklch(0.843 0.003 4.421);
--destructive: oklch(0.672 0.181 40.285);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.948 0.01 4.595);
--chart-1: oklch(0.948 0.01 4.595);
--chart-2: oklch(0.318 0.004 4.681);
--chart-3: oklch(0.318 0.004 4.681);
--chart-4: oklch(0.348 0.005 4.692);
--chart-5: oklch(0.947 0.011 4.623);
}