Cover is a shadcn/ui theme built around a deep pink primary color (#180c0f) with deep red accents (#180f0c). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the deep pink primary (#180c0f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #000000black |
| Foreground | #040102black | #fdfcfcsnow |
| Card | #faf4f6whitesmoke | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf8f9snow | #000000black |
| Popover foreground | #040102black | #fdfcfcsnow |
| Primary | #180c0fblack | #180c0fblack |
| Primary foreground | #c6909frosybrown | #c6909frosybrown |
| Secondary | #180c15black | #180c15black |
| Secondary foreground | #c690badarkgray | #c690badarkgray |
| Muted | #f6eef4whitesmoke | #11090fblack |
| Muted foreground | #524c51darkslategray | #b3adb2darkgray |
| Accent | #180f0cblack | #180f0cblack |
| Accent foreground | #c69c90rosybrown | #c69c90rosybrown |
| Destructive | #d6140afirebrick | #f41c10red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #180c0fblack | #180c0fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.71:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 7.18:1 | AAA |
| Secondary button | 7.35:1 | AAA |
| Muted text | 7.37:1 | AAA |
| Accent | 7.71:1 | AAA |
| Destructive | 5.28:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.18:1 | AAA |
| Secondary button | 7.35:1 | AAA |
| Muted text | 8.92:1 | AAA |
| Accent | 7.71:1 | AAA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use Cover in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 357.849);
--foreground: oklch(0.084 0.014 357.502);
--muted: oklch(0.958 0.011 332.8);
--muted-foreground: oklch(0.424 0.012 333.033);
--popover: oklch(0.982 0.005 357.849);
--popover-foreground: oklch(0.084 0.014 357.502);
--card: oklch(0.973 0.007 357.918);
--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.173 0.021 0.99);
--primary-foreground: oklch(0.709 0.068 0.346);
--secondary: oklch(0.175 0.026 334.747);
--secondary-foreground: oklch(0.718 0.086 334.362);
--accent: oklch(0.178 0.016 36.026);
--accent-foreground: oklch(0.727 0.053 35.982);
--destructive: oklch(0.556 0.221 29.482);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.173 0.021 0.99);
--chart-1: oklch(0.173 0.021 0.99);
--chart-2: oklch(0.175 0.026 334.747);
--chart-3: oklch(0.178 0.016 36.026);
--chart-4: oklch(0.208 0.035 335.053);
--chart-5: oklch(0.172 0.023 1.318);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 357.736);
--muted: oklch(0.153 0.018 334.299);
--muted-foreground: oklch(0.754 0.01 332.821);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 357.736);
--card: oklch(0.092 0 180);
--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.173 0.021 0.99);
--primary-foreground: oklch(0.709 0.068 0.346);
--secondary: oklch(0.175 0.026 334.747);
--secondary-foreground: oklch(0.718 0.086 334.362);
--accent: oklch(0.178 0.016 36.026);
--accent-foreground: oklch(0.727 0.053 35.982);
--destructive: oklch(0.614 0.242 29.45);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.173 0.021 0.99);
--chart-1: oklch(0.173 0.021 0.99);
--chart-2: oklch(0.175 0.026 334.747);
--chart-3: oklch(0.178 0.016 36.026);
--chart-4: oklch(0.208 0.035 335.053);
--chart-5: oklch(0.172 0.023 1.318);
}