Brilliant is a shadcn/ui theme built around a violet primary color (#50316d) with teal accents (#316d50). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#50316d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #030104black | #faf9fbghostwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #030104black | #faf9fbghostwhite |
| Primary | #50316ddarkslateblue | #50316ddarkslateblue |
| Primary foreground | #e8dff1lavender | #e8dff1lavender |
| Secondary | #6d5031darkolivegreen | #6d5031darkolivegreen |
| Secondary foreground | #f1e8dfantiquewhite | #f1e8dfantiquewhite |
| Muted | #e8e1d8gainsboro | #271f17black |
| Muted foreground | #4f4a45darkslategray | #bab5b0silver |
| Accent | #316d50darkslategray | #316d50darkslategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #5c210amaroon | #ea6734tomato |
| Destructive foreground | #f5baa3lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #50316ddarkslateblue | #50316ddarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 6.09:1 | AA |
| Muted text | 6.74:1 | AA |
| Accent | 6.10:1 | AA |
| Destructive | 7.39:1 | AAA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 6.09:1 | AA |
| Muted text | 7.99:1 | AAA |
| Accent | 6.10:1 | AA |
| Destructive | 6.49:1 | AA |
Paste this into your globals.css to use Brilliant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.082 0.017 310.694);
--muted: oklch(0.913 0.014 69.497);
--muted-foreground: oklch(0.413 0.011 69.37);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.082 0.017 310.694);
--card: oklch(0.992 0 161.565);
--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.38 0.103 305.937);
--primary-foreground: oklch(0.917 0.025 308.836);
--secondary: oklch(0.455 0.06 67.217);
--secondary-foreground: oklch(0.936 0.015 69.487);
--accent: oklch(0.486 0.079 160.344);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.334 0.093 39.967);
--destructive-foreground: oklch(0.837 0.076 42.556);
--ring: oklch(0.38 0.103 305.937);
--chart-1: oklch(0.38 0.103 305.937);
--chart-2: oklch(0.455 0.06 67.217);
--chart-3: oklch(0.486 0.079 160.344);
--chart-4: oklch(0.485 0.065 67.164);
--chart-5: oklch(0.378 0.11 305.608);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.002 309.102);
--muted: oklch(0.245 0.019 68.623);
--muted-foreground: oklch(0.776 0.009 69.529);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.984 0.002 309.102);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.992 0.001 309.114);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.38 0.103 305.937);
--primary-foreground: oklch(0.917 0.025 308.836);
--secondary: oklch(0.455 0.06 67.217);
--secondary-foreground: oklch(0.936 0.015 69.487);
--accent: oklch(0.486 0.079 160.344);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.668 0.174 40.595);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.38 0.103 305.937);
--chart-1: oklch(0.38 0.103 305.937);
--chart-2: oklch(0.455 0.06 67.217);
--chart-3: oklch(0.486 0.079 160.344);
--chart-4: oklch(0.485 0.065 67.164);
--chart-5: oklch(0.378 0.11 305.608);
}