Penguin is a shadcn/ui theme built around a muted violet primary color (#b1a5bb) with muted light violet accents (#dcd5e2). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted violet primary (#b1a5bb) on a neutral background (#050308).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #050308black |
| Foreground | #000000black | #ffffffwhite |
| Card | #faf8fcghostwhite | #08040bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfcfdwhite | #050308black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #b1a5bbdarkgray | #b1a5bbdarkgray |
| Primary foreground | #17141ablack | #17141ablack |
| Secondary | #ebe8edlavender | #271f2edarkslategray |
| Secondary foreground | #52495bdarkslategray | #c0b3cbsilver |
| Muted | #e8e7e9lavender | #171618black |
| Muted foreground | #524e56darkslategray | #aea9b1darkgray |
| Accent | #dcd5e2gainsboro | #3a2848darkslategray |
| Accent foreground | #43364edarkslategray | #d2c4dethistle |
| Destructive | #652706maroon | #f05e0forangered |
| Destructive foreground | #f9c2a4navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b1a5bbdarkgray | #b1a5bbdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.45:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 6.58:1 | AA |
| Accent | 7.80:1 | AAA |
| Destructive | 7.18:1 | AAA |
| Text on background | 20.55:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 7.84:1 | AAA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.29:1 | AA |
Paste this into your globals.css to use Penguin in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 310.414);
--foreground: oklch(0 0 0);
--muted: oklch(0.929 0.004 310.397);
--muted-foreground: oklch(0.429 0.014 310.126);
--popover: oklch(0.991 0.003 310.414);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.005 310.389);
--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.739 0.034 310.009);
--primary-foreground: oklch(0.197 0.014 309.79);
--secondary: oklch(0.935 0.007 310.373);
--secondary-foreground: oklch(0.421 0.032 309.735);
--accent: oklch(0.882 0.019 310.237);
--accent-foreground: oklch(0.358 0.044 309.292);
--destructive: oklch(0.358 0.098 44.072);
--destructive-foreground: oklch(0.856 0.076 49.623);
--ring: oklch(0.739 0.034 310.009);
--chart-1: oklch(0.739 0.034 310.009);
--chart-2: oklch(0.935 0.007 310.373);
--chart-3: oklch(0.882 0.019 310.237);
--chart-4: oklch(0.96 0.004 310.398);
--chart-5: oklch(0.735 0.042 309.914);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.019 311.923);
--foreground: oklch(1 0 180);
--muted: oklch(0.201 0.006 310.166);
--muted-foreground: oklch(0.742 0.013 310.28);
--popover: oklch(0.105 0.019 311.923);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.022 311.769);
--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.739 0.034 310.009);
--primary-foreground: oklch(0.197 0.014 309.79);
--secondary: oklch(0.255 0.029 309.372);
--secondary-foreground: oklch(0.786 0.037 310.003);
--accent: oklch(0.313 0.061 308.545);
--accent-foreground: oklch(0.84 0.04 309.998);
--destructive: oklch(0.662 0.195 42.02);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.739 0.034 310.009);
--chart-1: oklch(0.739 0.034 310.009);
--chart-2: oklch(0.255 0.029 309.372);
--chart-3: oklch(0.313 0.061 308.545);
--chart-4: oklch(0.284 0.034 309.318);
--chart-5: oklch(0.735 0.042 309.914);
}