Mediocre is a shadcn/ui theme built around a vivid light violet primary color (#d9cdf9) with vivid light purple accents (#f0cdf9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light violet primary (#d9cdf9) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040307black |
| Foreground | #000000black | #f9f8fcghostwhite |
| Card | #ffffffwhite | #040307black |
| Card foreground | #000000black | #f9f8fcghostwhite |
| Popover | #ffffffwhite | #040307black |
| Popover foreground | #000000black | #f9f8fcghostwhite |
| Primary | #d9cdf9lavender | #d9cdf9lavender |
| Primary foreground | #300f85indigo | #300f85indigo |
| Secondary | #cdd6f9lavender | #cdd6f9lavender |
| Secondary foreground | #0f2885midnightblue | #0f2885midnightblue |
| Muted | #ececeewhitesmoke | #111113black |
| Muted foreground | #47484ddarkslategray | #b2b3b8darkgray |
| Accent | #f0cdf9lavender | #f0cdf9lavender |
| Accent foreground | #6b0f85purple | #6b0f85purple |
| Destructive | #940705darkred | #ed0b07red |
| Destructive foreground | #fdcecepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d9cdf9lavender | #d9cdf9lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 9.14:1 | AAA |
| Secondary button | 8.78:1 | AAA |
| Muted text | 7.75:1 | AAA |
| Accent | 7.25:1 | AAA |
| Destructive | 6.47:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 9.14:1 | AAA |
| Secondary button | 8.78:1 | AAA |
| Muted text | 9.00:1 | AAA |
| Accent | 7.25:1 | AAA |
| Destructive | 4.49: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 0 0);
--muted: oklch(0.945 0.003 273.833);
--muted-foreground: oklch(0.403 0.008 273.636);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.871 0.063 298.057);
--primary-foreground: oklch(0.32 0.173 283.61);
--secondary: oklch(0.881 0.05 273.147);
--secondary-foreground: oklch(0.333 0.157 265.556);
--accent: oklch(0.89 0.071 318.859);
--accent-foreground: oklch(0.397 0.182 316.95);
--destructive: oklch(0.422 0.169 29.106);
--destructive-foreground: oklch(0.893 0.053 19.341);
--ring: oklch(0.871 0.063 298.057);
--chart-1: oklch(0.871 0.063 298.057);
--chart-2: oklch(0.881 0.05 273.147);
--chart-3: oklch(0.89 0.071 318.859);
--chart-4: oklch(0.913 0.036 273.386);
--chart-5: oklch(0.87 0.065 298.006);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.016 299.334);
--foreground: oklch(0.981 0.005 299.225);
--muted: oklch(0.179 0.004 273.594);
--muted-foreground: oklch(0.768 0.007 273.766);
--popover: oklch(0.104 0.016 299.334);
--popover-foreground: oklch(0.981 0.005 299.225);
--card: oklch(0.104 0.016 299.334);
--card-foreground: oklch(0.981 0.005 299.225);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.871 0.063 298.057);
--primary-foreground: oklch(0.32 0.173 283.61);
--secondary: oklch(0.881 0.05 273.147);
--secondary-foreground: oklch(0.333 0.157 265.556);
--accent: oklch(0.89 0.071 318.859);
--accent-foreground: oklch(0.397 0.182 316.95);
--destructive: oklch(0.597 0.242 29.16);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.871 0.063 298.057);
--chart-1: oklch(0.871 0.063 298.057);
--chart-2: oklch(0.881 0.05 273.147);
--chart-3: oklch(0.89 0.071 318.859);
--chart-4: oklch(0.913 0.036 273.386);
--chart-5: oklch(0.87 0.065 298.006);
}