Offbeat is a shadcn/ui theme built around a near-black primary color (#000000) with near-black accents (#000000). The light mode uses a neutral background (#fdf6f6). Dark mode keeps the near-black primary (#000000) on a red-tinted background (#100505).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6f6snow | #100505black |
| Foreground | #120202black | #ffffffwhite |
| Card | #fdf2f2lavenderblush | #140606black |
| Card foreground | #0d0202black | #ffffffwhite |
| Popover | #fdf2f2lavenderblush | #140606black |
| Popover foreground | #0d0202black | #ffffffwhite |
| Primary | #000000black | #000000black |
| Primary foreground | #999999darkgray | #999999darkgray |
| Secondary | #000000black | #000000black |
| Secondary foreground | #999999darkgray | #999999darkgray |
| Muted | #e9d8d8gainsboro | #271616black |
| Muted foreground | #4a3a3adarkslategray | #c5b5b5silver |
| Accent | #000000black | #000000black |
| Accent foreground | #999999darkgray | #999999darkgray |
| Destructive | #c31909firebrick | #f54332tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000000black | #000000black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.07:1 | AAA |
| Text on card | 18.65:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 7.79:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 6.07:1 | AA |
| Text on background | 20.10:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 8.77:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Offbeat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.008 17.287);
--foreground: oklch(0.127 0.035 23.439);
--muted: oklch(0.896 0.019 17.512);
--muted-foreground: oklch(0.367 0.023 18.229);
--popover: oklch(0.969 0.012 17.356);
--popover-foreground: oklch(0.114 0.03 23.185);
--card: oklch(0.969 0.012 17.356);
--card-foreground: oklch(0.114 0.03 23.185);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0 0 0);
--secondary-foreground: oklch(0.683 0 180);
--accent: oklch(0 0 0);
--accent-foreground: oklch(0.683 0 180);
--destructive: oklch(0.521 0.202 30.081);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0 0 0);
--chart-3: oklch(0 0 0);
--chart-4: oklch(0.132 0 165.964);
--chart-5: oklch(0 0 0);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.022 20.498);
--foreground: oklch(1 0 180);
--muted: oklch(0.224 0.028 19.517);
--muted-foreground: oklch(0.786 0.018 17.547);
--popover: oklch(0.145 0.026 20.745);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.145 0.026 20.745);
--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 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0 0 0);
--secondary-foreground: oklch(0.683 0 180);
--accent: oklch(0 0 0);
--accent-foreground: oklch(0.683 0 180);
--destructive: oklch(0.644 0.217 29.52);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0 0 0);
--chart-3: oklch(0 0 0);
--chart-4: oklch(0.132 0 165.964);
--chart-5: oklch(0 0 0);
}