Experience is a shadcn/ui theme built around a muted blue primary color (#3a4069) with muted yellow accents (#69633a). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted blue primary (#3a4069) on a blue-tinted background (#04050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #04050bblack |
| Foreground | #000000black | #ffffffwhite |
| Card | #fbfcfewhite | #04050bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfcfewhite | #04050bblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #3a4069darkslategray | #3a4069darkslategray |
| Primary foreground | #e5e6f1lavender | #e5e6f1lavender |
| Secondary | #69633adarkolivegreen | #69633adarkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f6f5eewhitesmoke | #111009black |
| Muted foreground | #656353dimgray | #acaa9adarkgray |
| Accent | #69633adarkolivegreen | #69633adarkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #75250bsaddlebrown | #d74514chocolate |
| Destructive foreground | #f8c9b9peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3a4069darkslategray | #3a4069darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 20.40:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 6.09:1 | AA |
| Muted text | 5.55:1 | AA |
| Accent | 6.09:1 | AA |
| Destructive | 6.93:1 | AA |
| Text on background | 20.36:1 | AAA |
| Text on card | 20.36:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 6.09:1 | AA |
| Muted text | 8.16:1 | AAA |
| Accent | 6.09:1 | AA |
| Destructive | 4.43:1 | AA Large |
Paste this into your globals.css to use Experience in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 279.299);
--foreground: oklch(0 0 0);
--muted: oklch(0.97 0.009 99.479);
--muted-foreground: oklch(0.496 0.025 100.014);
--popover: oklch(0.99 0.003 279.299);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.99 0.003 279.299);
--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.386 0.07 275.964);
--primary-foreground: oklch(0.928 0.014 279.111);
--secondary: oklch(0.495 0.06 100.641);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.495 0.06 100.641);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.384 0.117 37.298);
--destructive-foreground: oklch(0.873 0.059 39.25);
--ring: oklch(0.386 0.07 275.964);
--chart-1: oklch(0.386 0.07 275.964);
--chart-2: oklch(0.495 0.06 100.641);
--chart-3: oklch(0.495 0.06 100.641);
--chart-4: oklch(0.527 0.064 100.646);
--chart-5: oklch(0.382 0.077 275.491);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.018 274.141);
--foreground: oklch(1 0 180);
--muted: oklch(0.17 0.014 100.393);
--muted-foreground: oklch(0.735 0.023 99.773);
--popover: oklch(0.117 0.018 274.141);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.117 0.018 274.141);
--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.386 0.07 275.964);
--primary-foreground: oklch(0.928 0.014 279.111);
--secondary: oklch(0.495 0.06 100.641);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.495 0.06 100.641);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.592 0.19 36.577);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.386 0.07 275.964);
--chart-1: oklch(0.386 0.07 275.964);
--chart-2: oklch(0.495 0.06 100.641);
--chart-3: oklch(0.495 0.06 100.641);
--chart-4: oklch(0.527 0.064 100.646);
--chart-5: oklch(0.382 0.077 275.491);
}