Mediocre is a shadcn/ui theme built around a deep cyan primary color (#112d36) with muted light cyan accents (#e1e8ea). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#112d36) on a cyan-tinted background (#040a0b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040a0bblack |
| Foreground | #041216black | #ffffffwhite |
| Card | #ffffffwhite | #040a0bblack |
| Card foreground | #041216black | #ffffffwhite |
| Popover | #ffffffwhite | #040a0bblack |
| Popover foreground | #041216black | #ffffffwhite |
| Primary | #112d36darkslategray | #112d36darkslategray |
| Primary foreground | #9bcfdflightblue | #9bcfdflightblue |
| Secondary | #e1e8ealavender | #131516black |
| Secondary foreground | #3f535adarkslategray | #a8b0b3darkgray |
| Muted | #e3eff2lavender | #0d181cblack |
| Muted foreground | #3d494cdarkslategray | #b3bec2silver |
| Accent | #e1e8ealavender | #131516black |
| Accent foreground | #3f535adarkslategray | #a8b0b3darkgray |
| Destructive | #d5340bfirebrick | #f44e25orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #112d36darkslategray | #112d36darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.03:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 8.48:1 | AAA |
| Secondary button | 6.51:1 | AA |
| Muted text | 7.91:1 | AAA |
| Accent | 6.51:1 | AA |
| Destructive | 4.85:1 | AA |
| Text on background | 19.96:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 8.48:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 9.47:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Mediocre in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.169 0.023 218.092);
--muted: oklch(0.943 0.013 217.827);
--muted-foreground: oklch(0.396 0.016 218.076);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.169 0.023 218.092);
--card: oklch(1 0 180);
--card-foreground: oklch(0.169 0.023 218.092);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.281 0.037 220.43);
--primary-foreground: oklch(0.823 0.058 218.517);
--secondary: oklch(0.926 0.008 217.791);
--secondary-foreground: oklch(0.43 0.027 218.365);
--accent: oklch(0.926 0.008 217.791);
--accent-foreground: oklch(0.43 0.027 218.365);
--destructive: oklch(0.573 0.203 33.559);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.281 0.037 220.43);
--chart-1: oklch(0.281 0.037 220.43);
--chart-2: oklch(0.926 0.008 217.791);
--chart-3: oklch(0.926 0.008 217.791);
--chart-4: oklch(0.948 0.005 217.775);
--chart-5: oklch(0.283 0.039 220.698);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.012 214.154);
--foreground: oklch(1 0 180);
--muted: oklch(0.201 0.018 218.868);
--muted-foreground: oklch(0.794 0.014 217.855);
--popover: oklch(0.136 0.012 214.154);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.136 0.012 214.154);
--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.281 0.037 220.43);
--primary-foreground: oklch(0.823 0.058 218.517);
--secondary: oklch(0.194 0.004 217.868);
--secondary-foreground: oklch(0.752 0.011 217.83);
--accent: oklch(0.194 0.004 217.868);
--accent-foreground: oklch(0.752 0.011 217.83);
--destructive: oklch(0.651 0.208 34.648);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.281 0.037 220.43);
--chart-1: oklch(0.281 0.037 220.43);
--chart-2: oklch(0.194 0.004 217.868);
--chart-3: oklch(0.194 0.004 217.868);
--chart-4: oklch(0.228 0.005 217.886);
--chart-5: oklch(0.283 0.039 220.698);
}