Mocha is a shadcn/ui theme built around a red primary color (#e39194) with muted red accents (#cbaeaf). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#e39194) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #100405black | #faf5f5whitesmoke |
| Card | #fcf8f8snow | #030303black |
| Card foreground | #0c0304black | #fcf8f8snow |
| Popover | #fcf8f8snow | #030303black |
| Popover foreground | #0c0304black | #fcf8f8snow |
| Primary | #e39194darksalmon | #e39194darksalmon |
| Primary foreground | #350d0fblack | #350d0fblack |
| Secondary | #dbcdcdlightgrey | #1b1818black |
| Secondary foreground | #443132darkslategray | #b8adaedarkgray |
| Muted | #eed8d9gainsboro | #271112black |
| Muted foreground | #554a4adarkslategray | #b5aaabdarkgray |
| Accent | #cbaeafsilver | #312526darkslategray |
| Accent foreground | #2c1c1cblack | #cdbcbdsilver |
| Destructive | #d53410firebrick | #ee4620orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e39194darksalmon | #e39194darksalmon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.62:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 6.27:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 4.83:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 7.90:1 | AAA |
| Accent | 8.06:1 | AAA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Mocha in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 14.833);
--foreground: oklch(0.132 0.024 17.891);
--muted: oklch(0.901 0.024 15.288);
--muted-foreground: oklch(0.419 0.015 15.472);
--popover: oklch(0.982 0.005 14.877);
--popover-foreground: oklch(0.119 0.021 17.528);
--card: oklch(0.982 0.005 14.877);
--card-foreground: oklch(0.119 0.021 17.528);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.741 0.1 17.603);
--primary-foreground: oklch(0.229 0.064 21.778);
--secondary: oklch(0.859 0.015 15.13);
--secondary-foreground: oklch(0.336 0.027 16.4);
--accent: oklch(0.777 0.034 15.627);
--accent-foreground: oklch(0.246 0.025 16.827);
--destructive: oklch(0.574 0.202 33.201);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.741 0.1 17.603);
--chart-1: oklch(0.741 0.1 17.603);
--chart-2: oklch(0.859 0.015 15.13);
--chart-3: oklch(0.777 0.034 15.627);
--chart-4: oklch(0.884 0.013 15.059);
--chart-5: oklch(0.739 0.106 17.777);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.973 0.006 14.897);
--muted: oklch(0.211 0.036 18.422);
--muted-foreground: oklch(0.749 0.013 15.112);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.982 0.004 14.861);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.982 0.004 14.861);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.741 0.1 17.603);
--primary-foreground: oklch(0.229 0.064 21.778);
--secondary: oklch(0.212 0.006 15.299);
--secondary-foreground: oklch(0.757 0.012 15.097);
--accent: oklch(0.28 0.018 16.073);
--accent-foreground: oklch(0.809 0.019 15.226);
--destructive: oklch(0.634 0.211 33.716);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.741 0.1 17.603);
--chart-1: oklch(0.741 0.1 17.603);
--chart-2: oklch(0.212 0.006 15.299);
--chart-3: oklch(0.28 0.018 16.073);
--chart-4: oklch(0.244 0.007 15.347);
--chart-5: oklch(0.739 0.106 17.777);
}