Single is a shadcn/ui theme built around a red primary color (#e1515f) with muted light red accents (#e3d3d5). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the red primary (#e1515f) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #040101black |
| Foreground | #0d0304black | #fdfcfcsnow |
| Card | #fdfcfcsnow | #040101black |
| Card foreground | #0d0304black | #fdfcfcsnow |
| Popover | #fdfcfcsnow | #040101black |
| Popover foreground | #0d0304black | #fdfcfcsnow |
| Primary | #e1515findianred | #e1515findianred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ebe5e6linen | #33292adarkslategray |
| Secondary foreground | #594547darkslategray | #cdc1c2silver |
| Muted | #f4f1f1whitesmoke | #0e0b0cblack |
| Muted foreground | #5f5455dimgray | #aba0a1darkgray |
| Accent | #e3d3d5gainsboro | #453032darkslategray |
| Accent foreground | #513437darkslategray | #dbcccdlightgrey |
| Destructive | #cd370afirebrick | #f4420borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e1515findianred | #e1515findianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 3.78:1 | AA Large |
| Secondary button | 7.13:1 | AAA |
| Muted text | 6.47:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 5.07:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 3.78:1 | AA Large |
| Secondary button | 8.06:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Single in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 10.12);
--foreground: oklch(0.117 0.025 12.102);
--muted: oklch(0.96 0.003 10.143);
--muted-foreground: oklch(0.456 0.014 10.785);
--popover: oklch(0.991 0.002 10.12);
--popover-foreground: oklch(0.117 0.025 12.102);
--card: oklch(0.991 0.002 10.12);
--card-foreground: oklch(0.117 0.025 12.102);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.632 0.18 18.118);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.927 0.007 10.238);
--secondary-foreground: oklch(0.412 0.028 11.66);
--accent: oklch(0.881 0.018 10.53);
--accent-foreground: oklch(0.36 0.042 12.844);
--destructive: oklch(0.561 0.192 34.936);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.632 0.18 18.118);
--chart-1: oklch(0.632 0.18 18.118);
--chart-2: oklch(0.927 0.007 10.238);
--chart-3: oklch(0.881 0.018 10.53);
--chart-4: oklch(0.951 0.004 10.181);
--chart-5: oklch(0.633 0.186 18.551);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.013 11.419);
--foreground: oklch(0.991 0.001 10.11);
--muted: oklch(0.155 0.004 10.725);
--muted-foreground: oklch(0.716 0.013 10.477);
--popover: oklch(0.083 0.013 11.419);
--popover-foreground: oklch(0.991 0.001 10.11);
--card: oklch(0.083 0.013 11.419);
--card-foreground: oklch(0.991 0.001 10.11);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.632 0.18 18.118);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.292 0.015 11.259);
--secondary-foreground: oklch(0.821 0.014 10.466);
--accent: oklch(0.335 0.031 12.223);
--accent-foreground: oklch(0.858 0.018 10.543);
--destructive: oklch(0.638 0.221 34.741);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.632 0.18 18.118);
--chart-1: oklch(0.632 0.18 18.118);
--chart-2: oklch(0.292 0.015 11.259);
--chart-3: oklch(0.335 0.031 12.223);
--chart-4: oklch(0.321 0.017 11.303);
--chart-5: oklch(0.633 0.186 18.551);
}