Recent is a shadcn/ui theme built around a light indigo primary color (#f5f5fa) with light yellow accents (#fafaf5). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the light indigo primary (#f5f5fa) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #000000black |
| Foreground | #010104black | #ffffffwhite |
| Card | #fbfbfeghostwhite | #000000black |
| Card foreground | #010104black | #ffffffwhite |
| Popover | #fbfbfeghostwhite | #000000black |
| Popover foreground | #010104black | #ffffffwhite |
| Primary | #f5f5fawhitesmoke | #f5f5fawhitesmoke |
| Primary foreground | #40437ddarkslateblue | #40437ddarkslateblue |
| Secondary | #fafaf5whitesmoke | #fafaf5whitesmoke |
| Secondary foreground | #39381ddarkslategray | #39381ddarkslategray |
| Muted | #ebead6antiquewhite | #292814black |
| Muted foreground | #5f5f53dimgray | #acaba0darkgray |
| Accent | #fafaf5whitesmoke | #fafaf5whitesmoke |
| Accent foreground | #39381ddarkslategray | #39381ddarkslategray |
| Destructive | #6f2901saddlebrown | #fd6b17darkorange |
| Destructive foreground | #fec5a4navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5f5fawhitesmoke | #f5f5fawhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 11.37:1 | AAA |
| Muted text | 5.31:1 | AA |
| Accent | 11.37:1 | AAA |
| Destructive | 6.86:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 11.37:1 | AAA |
| Muted text | 6.43:1 | AA |
| Accent | 11.37:1 | AAA |
| Destructive | 7.28:1 | AAA |
Paste this into your globals.css to use Recent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 283.92);
--foreground: oklch(0.076 0.016 278.227);
--muted: oklch(0.933 0.027 104.456);
--muted-foreground: oklch(0.482 0.018 104.607);
--popover: oklch(0.99 0.003 283.92);
--popover-foreground: oklch(0.076 0.016 278.227);
--card: oklch(0.99 0.003 283.92);
--card-foreground: oklch(0.076 0.016 278.227);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.972 0.006 283.861);
--primary-foreground: oklch(0.41 0.095 279.06);
--secondary: oklch(0.983 0.006 104.078);
--secondary-foreground: oklch(0.334 0.042 105.83);
--accent: oklch(0.983 0.006 104.078);
--accent-foreground: oklch(0.334 0.042 105.83);
--destructive: oklch(0.379 0.109 44.159);
--destructive-foreground: oklch(0.867 0.079 51.412);
--ring: oklch(0.972 0.006 283.861);
--chart-1: oklch(0.972 0.006 283.861);
--chart-2: oklch(0.983 0.006 104.078);
--chart-3: oklch(0.983 0.006 104.078);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.971 0.007 283.85);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.273 0.034 105.822);
--muted-foreground: oklch(0.74 0.017 104.352);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.972 0.006 283.861);
--primary-foreground: oklch(0.41 0.095 279.06);
--secondary: oklch(0.983 0.006 104.078);
--secondary-foreground: oklch(0.334 0.042 105.83);
--accent: oklch(0.983 0.006 104.078);
--accent-foreground: oklch(0.334 0.042 105.83);
--destructive: oklch(0.699 0.196 44.027);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.972 0.006 283.861);
--chart-1: oklch(0.972 0.006 283.861);
--chart-2: oklch(0.983 0.006 104.078);
--chart-3: oklch(0.983 0.006 104.078);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.971 0.007 283.85);
}