Comeback is a shadcn/ui theme built around a near-white primary color (#f9fff5) with near-white accents (#f5fff6). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f9fff5) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020302black |
| Foreground | #020501black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #050703black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #020302black |
| Popover foreground | #020501black | #fcfdfcwhite |
| Primary | #f9fff5mintcream | #f9fff5mintcream |
| Primary foreground | #2a5804darkgreen | #2a5804darkgreen |
| Secondary | #fefff5ivory | #fefff5ivory |
| Secondary foreground | #535804darkolivegreen | #535804darkolivegreen |
| Muted | #eff0dbbeige | #23240fblack |
| Muted foreground | #62625bdimgray | #a4a49ddarkgray |
| Accent | #f5fff6mintcream | #f5fff6mintcream |
| Accent foreground | #045808darkgreen | #045808darkgreen |
| Destructive | #692807saddlebrown | #f06824chocolate |
| Destructive foreground | #f9c4a9navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f9fff5mintcream | #f9fff5mintcream |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.49:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 5.30:1 | AA |
| Accent | 8.51:1 | AAA |
| Destructive | 7.08:1 | AAA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 8.51:1 | AAA |
| Destructive | 6.68:1 | AA |
Paste this into your globals.css to use Comeback in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.103 0.022 128.649);
--muted: oklch(0.948 0.027 109.23);
--muted-foreground: oklch(0.494 0.012 109.146);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.103 0.022 128.649);
--card: oklch(0.992 0 161.565);
--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.992 0.013 130.564);
--primary-foreground: oklch(0.41 0.118 135.638);
--secondary: oklch(0.996 0.012 108.935);
--secondary-foreground: oklch(0.441 0.096 112.944);
--accent: oklch(0.989 0.015 146.895);
--accent-foreground: oklch(0.399 0.13 143.066);
--destructive: oklch(0.367 0.102 42.745);
--destructive-foreground: oklch(0.86 0.071 47.875);
--ring: oklch(0.992 0.013 130.564);
--chart-1: oklch(0.992 0.013 130.564);
--chart-2: oklch(0.996 0.012 108.935);
--chart-3: oklch(0.989 0.015 146.895);
--chart-4: oklch(1.002 0.006 288.596);
--chart-5: oklch(0.993 0.014 130.568);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.009 129.658);
--foreground: oklch(0.994 0.002 130.456);
--muted: oklch(0.252 0.035 111.146);
--muted-foreground: oklch(0.718 0.011 108.985);
--popover: oklch(0.097 0.009 129.658);
--popover-foreground: oklch(0.994 0.002 130.456);
--card: oklch(0.122 0.012 129.658);
--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.992 0.013 130.564);
--primary-foreground: oklch(0.41 0.118 135.638);
--secondary: oklch(0.996 0.012 108.935);
--secondary-foreground: oklch(0.441 0.096 112.944);
--accent: oklch(0.989 0.015 146.895);
--accent-foreground: oklch(0.399 0.13 143.066);
--destructive: oklch(0.676 0.184 43.079);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.992 0.013 130.564);
--chart-1: oklch(0.992 0.013 130.564);
--chart-2: oklch(0.996 0.012 108.935);
--chart-3: oklch(0.989 0.015 146.895);
--chart-4: oklch(1.002 0.006 288.596);
--chart-5: oklch(0.993 0.014 130.568);
}