Recent is a shadcn/ui theme built around a muted indigo primary color (#666383) with muted green accents (#7f8363). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#666383) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #010104black | #f6f6f9whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #010104black | #f6f6f9whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #010104black | #f6f6f9whitesmoke |
| Primary | #666383dimgray | #666383dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7f8363gray | #7f8363gray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f3f4eblinen | #13140bblack |
| Muted foreground | #606156dimgray | #a7a99edarkgray |
| Accent | #7f8363gray | #7f8363gray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8f1704darkred | #f72808orangered |
| Destructive foreground | #fdd0c9pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #666383dimgray | #666383dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.84:1 | AAA |
| Text on card | 20.84:1 | AAA |
| Primary button | 5.72:1 | AA |
| Secondary button | 3.94:1 | AA Large |
| Muted text | 5.67:1 | AA |
| Accent | 3.94:1 | AA Large |
| Destructive | 6.53:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 5.72:1 | AA |
| Secondary button | 3.94:1 | AA Large |
| Muted text | 7.79:1 | AAA |
| Accent | 3.94:1 | AA Large |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Recent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.072 0.022 288.296);
--muted: oklch(0.964 0.012 112.008);
--muted-foreground: oklch(0.489 0.017 112.434);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.072 0.022 288.296);
--card: oklch(1 0 180);
--card-foreground: oklch(0.072 0.022 288.296);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.514 0.05 289.845);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.597 0.047 113.231);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.597 0.047 113.231);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.421 0.157 31.514);
--destructive-foreground: oklch(0.894 0.053 28.35);
--ring: oklch(0.514 0.05 289.845);
--chart-1: oklch(0.514 0.05 289.845);
--chart-2: oklch(0.597 0.047 113.231);
--chart-3: oklch(0.597 0.047 113.231);
--chart-4: oklch(0.626 0.049 113.24);
--chart-5: oklch(0.506 0.062 289.351);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.973 0.005 291.689);
--muted: oklch(0.186 0.017 113.493);
--muted-foreground: oklch(0.73 0.016 112.18);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.973 0.005 291.689);
--card: oklch(0 0 0);
--card-foreground: oklch(0.973 0.005 291.689);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.514 0.05 289.845);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.597 0.047 113.231);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.597 0.047 113.231);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.626 0.24 31.052);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.514 0.05 289.845);
--chart-1: oklch(0.514 0.05 289.845);
--chart-2: oklch(0.597 0.047 113.231);
--chart-3: oklch(0.597 0.047 113.231);
--chart-4: oklch(0.626 0.049 113.24);
--chart-5: oklch(0.506 0.062 289.351);
}