Quirky is a shadcn/ui theme built around a near-black primary color (#0c040b) with near-black accents (#040b0c). The light mode uses a neutral background (#fefbfe). Dark mode keeps the near-black primary (#0c040b) on a purple-tinted background (#0a050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #0a050ablack |
| Foreground | #140513black | #fbf9fbsnow |
| Card | #fdf7fdsnow | #0e070eblack |
| Card foreground | #10040fblack | #fdfcfdwhite |
| Popover | #fdf7fdsnow | #0e070eblack |
| Popover foreground | #10040fblack | #fdfcfdwhite |
| Primary | #0c040bblack | #0c040bblack |
| Primary foreground | #d171ccorchid | #d171ccorchid |
| Secondary | #0b0c04black | #0b0c04black |
| Secondary foreground | #a0a636yellowgreen | #a0a636yellowgreen |
| Muted | #dfe0d7gainsboro | #28281fdarkslategray |
| Muted foreground | #525251darkslategray | #aeaeaddarkgray |
| Accent | #040b0cblack | #040b0cblack |
| Accent foreground | #36a0a6lightseagreen | #36a0a6lightseagreen |
| Destructive | #973902saddlebrown | #fd7b30coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c040bblack | #0c040bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.26:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 5.88:1 | AA |
| Accent | 6.36:1 | AA |
| Destructive | 7.23:1 | AAA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 6.67:1 | AA |
| Accent | 6.36:1 | AA |
| Destructive | 8.05:1 | AAA |
Paste this into your globals.css to use Quirky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 327.083);
--foreground: oklch(0.152 0.038 329.038);
--muted: oklch(0.904 0.012 108.964);
--muted-foreground: oklch(0.439 0.003 108.82);
--popover: oklch(0.982 0.01 327.129);
--popover-foreground: oklch(0.138 0.033 328.853);
--card: oklch(0.982 0.01 327.129);
--card-foreground: oklch(0.138 0.033 328.853);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.125 0.026 328.43);
--primary-foreground: oklch(0.687 0.166 329.046);
--secondary: oklch(0.148 0.019 110.501);
--secondary-foreground: oklch(0.698 0.133 112.151);
--accent: oklch(0.141 0.014 199.167);
--accent-foreground: oklch(0.649 0.095 200.139);
--destructive: oklch(0.471 0.139 42.815);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.125 0.026 328.43);
--chart-1: oklch(0.125 0.026 328.43);
--chart-2: oklch(0.148 0.019 110.501);
--chart-3: oklch(0.141 0.014 199.167);
--chart-4: oklch(0.199 0.028 111.194);
--chart-5: oklch(0.125 0.027 328.521);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.018 327.959);
--foreground: oklch(0.984 0.003 327.065);
--muted: oklch(0.275 0.016 109.793);
--muted-foreground: oklch(0.751 0.002 108.766);
--popover: oklch(0.141 0.021 328.197);
--popover-foreground: oklch(0.992 0.001 327.052);
--card: oklch(0.141 0.021 328.197);
--card-foreground: oklch(0.992 0.001 327.052);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.125 0.026 328.43);
--primary-foreground: oklch(0.687 0.166 329.046);
--secondary: oklch(0.148 0.019 110.501);
--secondary-foreground: oklch(0.698 0.133 112.151);
--accent: oklch(0.141 0.014 199.167);
--accent-foreground: oklch(0.649 0.095 200.139);
--destructive: oklch(0.724 0.179 46.695);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.125 0.026 328.43);
--chart-1: oklch(0.125 0.026 328.43);
--chart-2: oklch(0.148 0.019 110.501);
--chart-3: oklch(0.141 0.014 199.167);
--chart-4: oklch(0.199 0.028 111.194);
--chart-5: oklch(0.125 0.027 328.521);
}