Prize is a shadcn/ui theme built around a light yellow primary color (#f0eddb) with light purple accents (#eddbf0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#f0eddb) on a neutral background (#080702).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080702black |
| Foreground | #151304black | #ffffffwhite |
| Card | #ffffffwhite | #080702black |
| Card foreground | #151304black | #ffffffwhite |
| Popover | #ffffffwhite | #080702black |
| Popover foreground | #151304black | #ffffffwhite |
| Primary | #f0eddbbeige | #f0eddbbeige |
| Primary foreground | #24210fblack | #24210fblack |
| Secondary | #dbf0edlavender | #dbf0edlavender |
| Secondary foreground | #0f2421black | #0f2421black |
| Muted | #d5dcdbgainsboro | #232a29darkslategray |
| Muted foreground | #425754darkslategray | #a8bdbasilver |
| Accent | #eddbf0lavender | #eddbf0lavender |
| Accent foreground | #622d6cdarkslateblue | #622d6cdarkslateblue |
| Destructive | #631108maroon | #ec2d18orangered |
| Destructive foreground | #f8aea5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f0eddbbeige | #f0eddbbeige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.63:1 | AAA |
| Text on card | 18.63:1 | AAA |
| Primary button | 13.71:1 | AAA |
| Secondary button | 13.66:1 | AAA |
| Muted text | 5.55:1 | AA |
| Accent | 7.57:1 | AAA |
| Destructive | 7.17:1 | AAA |
| Text on background | 20.14:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 13.71:1 | AAA |
| Secondary button | 13.66:1 | AAA |
| Muted text | 7.45:1 | AAA |
| Accent | 7.57:1 | AAA |
| Destructive | 4.22:1 | AA Large |
Paste this into your globals.css to use Prize in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.183 0.027 100.277);
--muted: oklch(0.889 0.008 186.378);
--muted-foreground: oklch(0.439 0.027 184.965);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.183 0.027 100.277);
--card: oklch(1 0 180);
--card-foreground: oklch(0.183 0.027 100.277);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.943 0.024 98.659);
--primary-foreground: oklch(0.245 0.031 99.5);
--secondary: oklch(0.939 0.022 185.981);
--secondary-foreground: oklch(0.241 0.028 183.155);
--accent: oklch(0.912 0.034 321.145);
--accent-foreground: oklch(0.397 0.117 321.433);
--destructive: oklch(0.327 0.116 30.494);
--destructive-foreground: oklch(0.818 0.089 26.232);
--ring: oklch(0.943 0.024 98.659);
--chart-1: oklch(0.943 0.024 98.659);
--chart-2: oklch(0.939 0.022 185.981);
--chart-3: oklch(0.912 0.034 321.145);
--chart-4: oklch(0.957 0.016 186.175);
--chart-5: oklch(0.945 0.025 98.682);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.017 102.118);
--foreground: oklch(1 0 180);
--muted: oklch(0.277 0.01 185.664);
--muted-foreground: oklch(0.782 0.024 185.805);
--popover: oklch(0.128 0.017 102.118);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.128 0.017 102.118);
--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.943 0.024 98.659);
--primary-foreground: oklch(0.245 0.031 99.5);
--secondary: oklch(0.939 0.022 185.981);
--secondary-foreground: oklch(0.241 0.028 183.155);
--accent: oklch(0.912 0.034 321.145);
--accent-foreground: oklch(0.397 0.117 321.433);
--destructive: oklch(0.61 0.227 30.52);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.943 0.024 98.659);
--chart-1: oklch(0.943 0.024 98.659);
--chart-2: oklch(0.939 0.022 185.981);
--chart-3: oklch(0.912 0.034 321.145);
--chart-4: oklch(0.957 0.016 186.175);
--chart-5: oklch(0.945 0.025 98.682);
}