Genius is a shadcn/ui theme built around a vivid deep violet primary color (#310273) with vivid deep green accents (#447302). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep violet primary (#310273) on a neutral background (#050208).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050208black |
| Foreground | #040109black | #ffffffwhite |
| Card | #fcfcfcsnow | #07030cblack |
| Card foreground | #020105black | #ffffffwhite |
| Popover | #fcfcfcsnow | #07030cblack |
| Popover foreground | #020105black | #ffffffwhite |
| Primary | #310273indigo | #310273indigo |
| Primary foreground | #cdaafdplum | #cdaafdplum |
| Secondary | #447302darkolivegreen | #447302darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9f1e0beige | #181f0eblack |
| Muted foreground | #5d6057dimgray | #a4a89fdarkgray |
| Accent | #447302darkolivegreen | #447302darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #71220amaroon | #eb4a19orangered |
| Destructive foreground | #f8c4b4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #310273indigo | #310273indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.72:1 | AAA |
| Text on card | 20.36:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 5.67:1 | AA |
| Muted text | 5.51:1 | AA |
| Accent | 5.67:1 | AA |
| Destructive | 7.02:1 | AAA |
| Text on background | 20.62:1 | AAA |
| Text on card | 20.43:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 5.67:1 | AA |
| Muted text | 6.96:1 | AA |
| Accent | 5.67:1 | AA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Genius in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.093 0.032 306.93);
--muted: oklch(0.947 0.024 125.394);
--muted-foreground: oklch(0.484 0.015 125.482);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.074 0.026 306.93);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.074 0.026 306.93);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.29 0.161 290.404);
--primary-foreground: oklch(0.799 0.12 302.903);
--secondary: oklch(0.502 0.138 132.08);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.502 0.138 132.08);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.372 0.116 36.308);
--destructive-foreground: oklch(0.863 0.064 37.594);
--ring: oklch(0.29 0.161 290.404);
--chart-1: oklch(0.29 0.161 290.404);
--chart-2: oklch(0.502 0.138 132.08);
--chart-3: oklch(0.502 0.138 132.08);
--chart-4: oklch(0.548 0.152 132.258);
--chart-5: oklch(0.291 0.164 289.8);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.024 306.323);
--foreground: oklch(1 0 180);
--muted: oklch(0.229 0.032 127.227);
--muted-foreground: oklch(0.725 0.014 125.308);
--popover: oklch(0.114 0.027 306.023);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.114 0.027 306.023);
--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.29 0.161 290.404);
--primary-foreground: oklch(0.799 0.12 302.903);
--secondary: oklch(0.502 0.138 132.08);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.502 0.138 132.08);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.632 0.205 35.843);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.29 0.161 290.404);
--chart-1: oklch(0.29 0.161 290.404);
--chart-2: oklch(0.502 0.138 132.08);
--chart-3: oklch(0.502 0.138 132.08);
--chart-4: oklch(0.548 0.152 132.258);
--chart-5: oklch(0.291 0.164 289.8);
}