Prize is a shadcn/ui theme built around a deep violet primary color (#190623) with deep teal accents (#062319). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the deep violet primary (#190623) on a neutral background (#060307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #060307black |
| Foreground | #0d0311black | #ffffffwhite |
| Card | #fdfbfdsnow | #060307black |
| Card foreground | #0d0311black | #ffffffwhite |
| Popover | #fdfbfdsnow | #060307black |
| Popover foreground | #0d0311black | #ffffffwhite |
| Primary | #190623black | #190623black |
| Primary foreground | #c172e9orchid | #c172e9orchid |
| Secondary | #231906black | #231906black |
| Secondary foreground | #d49821goldenrod | #d49821goldenrod |
| Muted | #e9e3d8gainsboro | #272116black |
| Muted foreground | #534d41darkolivegreen | #beb8acsilver |
| Accent | #062319black | #062319black |
| Accent foreground | #21d498lightseagreen | #21d498lightseagreen |
| Destructive | #632809maroon | #ee793acoral |
| Destructive foreground | #f7c2a6navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #190623black | #190623black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.69:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 6.82:1 | AA |
| Muted text | 6.57:1 | AA |
| Accent | 8.64:1 | AAA |
| Destructive | 7.21:1 | AAA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 6.82:1 | AA |
| Muted text | 8.05:1 | AAA |
| Accent | 8.64:1 | AAA |
| Destructive | 7.42:1 | AAA |
Paste this into your globals.css to use Prize in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 314.812);
--foreground: oklch(0.129 0.038 315.269);
--muted: oklch(0.918 0.017 84.587);
--muted-foreground: oklch(0.422 0.02 84.566);
--popover: oklch(0.991 0.003 314.812);
--popover-foreground: oklch(0.129 0.038 315.269);
--card: oklch(0.991 0.003 314.812);
--card-foreground: oklch(0.129 0.038 315.269);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.173 0.063 312.749);
--primary-foreground: oklch(0.685 0.184 313.291);
--secondary: oklch(0.222 0.036 83.007);
--secondary-foreground: oklch(0.72 0.141 78.656);
--accent: oklch(0.232 0.041 167.434);
--accent-foreground: oklch(0.772 0.16 163.577);
--destructive: oklch(0.356 0.094 44.543);
--destructive-foreground: oklch(0.855 0.072 49.67);
--ring: oklch(0.173 0.063 312.749);
--chart-1: oklch(0.173 0.063 312.749);
--chart-2: oklch(0.222 0.036 83.007);
--chart-3: oklch(0.232 0.041 167.434);
--chart-4: oklch(0.266 0.046 81.695);
--chart-5: oklch(0.173 0.066 312.68);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.014 315.937);
--foreground: oklch(1 0 180);
--muted: oklch(0.253 0.022 84.324);
--muted-foreground: oklch(0.784 0.018 84.591);
--popover: oklch(0.109 0.014 315.937);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.109 0.014 315.937);
--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.173 0.063 312.749);
--primary-foreground: oklch(0.685 0.184 313.291);
--secondary: oklch(0.222 0.036 83.007);
--secondary-foreground: oklch(0.72 0.141 78.656);
--accent: oklch(0.232 0.041 167.434);
--accent-foreground: oklch(0.772 0.16 163.577);
--destructive: oklch(0.7 0.163 46.324);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.173 0.063 312.749);
--chart-1: oklch(0.173 0.063 312.749);
--chart-2: oklch(0.222 0.036 83.007);
--chart-3: oklch(0.232 0.041 167.434);
--chart-4: oklch(0.266 0.046 81.695);
--chart-5: oklch(0.173 0.066 312.68);
}