Ultimate is a shadcn/ui theme built around a yellow primary color (#e7c97e) with muted light red accents (#d1c7c7). The light mode uses a neutral background (#fdfbf6). Dark mode keeps the yellow primary (#e7c97e) on a yellow-tinted background (#0f0c05).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbf6snow | #0f0c05black |
| Foreground | #161104black | #ffffffwhite |
| Card | #fdfbf6snow | #0f0c05black |
| Card foreground | #161104black | #ffffffwhite |
| Popover | #fdfbf6snow | #0f0c05black |
| Popover foreground | #161104black | #ffffffwhite |
| Primary | #e7c97eburlywood | #e7c97eburlywood |
| Primary foreground | #2b2108black | #2b2108black |
| Secondary | #e0e0e0gainsboro | #1c1c1cblack |
| Secondary foreground | #474747darkslategray | #b6b5b4silver |
| Muted | #f2ededlinen | #12100dblack |
| Muted foreground | #685050dimgray | #afa897darkgray |
| Accent | #d1c7c7lightgrey | #2d2b25darkslategray |
| Accent foreground | #382e2edarkslategray | #c8c4bcsilver |
| Destructive | #87170ddarkred | #ea3e2ecrimson |
| Destructive foreground | #fad0ccpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e7c97eburlywood | #e7c97eburlywood |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.25:1 | AAA |
| Text on card | 18.25:1 | AAA |
| Primary button | 9.89:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 6.94:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 9.89:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 8.01:1 | AAA |
| Accent | 8.17:1 | AAA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Ultimate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 88.836);
--foreground: oklch(0.178 0.026 90.288);
--muted: oklch(0.951 0.005 17.25);
--muted-foreground: oklch(0.456 0.032 18.402);
--popover: oklch(0.989 0.007 88.836);
--popover-foreground: oklch(0.178 0.026 90.288);
--card: oklch(0.989 0.007 88.836);
--card-foreground: oklch(0.178 0.026 90.288);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.846 0.101 88.638);
--primary-foreground: oklch(0.254 0.042 87.378);
--secondary: oklch(0.908 0 180);
--secondary-foreground: oklch(0.399 0 180);
--accent: oklch(0.838 0.011 17.384);
--accent-foreground: oklch(0.312 0.015 17.981);
--destructive: oklch(0.404 0.147 29.964);
--destructive-foreground: oklch(0.892 0.048 24.187);
--ring: oklch(0.846 0.101 88.638);
--chart-1: oklch(0.846 0.101 88.638);
--chart-2: oklch(0.908 0 180);
--chart-3: oklch(0.838 0.011 17.384);
--chart-4: oklch(0.931 0 180);
--chart-5: oklch(0.85 0.104 88.576);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.017 91.034);
--foreground: oklch(1 0 180);
--muted: oklch(0.175 0.007 88.992);
--muted-foreground: oklch(0.734 0.025 88.969);
--popover: oklch(0.157 0.017 91.034);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.157 0.017 91.034);
--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.846 0.101 88.638);
--primary-foreground: oklch(0.254 0.042 87.378);
--secondary: oklch(0.227 0.001 88.814);
--secondary-foreground: oklch(0.774 0.002 88.804);
--accent: oklch(0.288 0.011 88.98);
--accent-foreground: oklch(0.822 0.013 88.885);
--destructive: oklch(0.621 0.211 29.574);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.846 0.101 88.638);
--chart-1: oklch(0.846 0.101 88.638);
--chart-2: oklch(0.227 0.001 88.814);
--chart-3: oklch(0.288 0.011 88.98);
--chart-4: oklch(0.26 0.001 88.816);
--chart-5: oklch(0.85 0.104 88.576);
}