Advanced is a shadcn/ui theme built around a deep purple primary color (#551259) with deep pink accents (#59123a). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the deep purple primary (#551259) on a purple-tinted background (#0b040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fdghostwhite | #0b040bblack |
| Foreground | #0b040cblack | #ffffffwhite |
| Card | #fcf7fdghostwhite | #0b040bblack |
| Card foreground | #0b040cblack | #ffffffwhite |
| Popover | #fcf7fdghostwhite | #0b040bblack |
| Popover foreground | #0b040cblack | #ffffffwhite |
| Primary | #551259indigo | #551259indigo |
| Primary foreground | #ebaeefplum | #ebaeefplum |
| Secondary | #311259midnightblue | #311259midnightblue |
| Secondary foreground | #caaeefplum | #caaeefplum |
| Muted | #d8d3degainsboro | #25212cdarkslategray |
| Muted foreground | #5d5865dimgray | #a09aa7darkgray |
| Accent | #59123amaroon | #59123amaroon |
| Accent foreground | #efaed3plum | #efaed3plum |
| Destructive | #da4607orangered | #f86525tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #551259indigo | #551259indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 4.68:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 4.32:1 | AA Large |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 5.77:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 6.87:1 | AA |
Paste this into your globals.css to use Advanced in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.009 323.685);
--foreground: oklch(0.124 0.027 325.131);
--muted: oklch(0.874 0.016 305.489);
--muted-foreground: oklch(0.47 0.022 305.112);
--popover: oklch(0.982 0.009 323.685);
--popover-foreground: oklch(0.124 0.027 325.131);
--card: oklch(0.982 0.009 323.685);
--card-foreground: oklch(0.124 0.027 325.131);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.33 0.132 325.077);
--primary-foreground: oklch(0.828 0.11 324.284);
--secondary: oklch(0.276 0.119 297.671);
--secondary-foreground: oklch(0.798 0.095 304.138);
--accent: oklch(0.321 0.111 350.605);
--accent-foreground: oklch(0.822 0.089 344.235);
--destructive: oklch(0.599 0.193 37.941);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.33 0.132 325.077);
--chart-1: oklch(0.33 0.132 325.077);
--chart-2: oklch(0.276 0.119 297.671);
--chart-3: oklch(0.321 0.111 350.605);
--chart-4: oklch(0.301 0.133 297.351);
--chart-5: oklch(0.332 0.136 325.074);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.024 324.958);
--foreground: oklch(1 0 180);
--muted: oklch(0.256 0.022 304.575);
--muted-foreground: oklch(0.695 0.02 305.355);
--popover: oklch(0.125 0.024 324.958);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.024 324.958);
--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.33 0.132 325.077);
--primary-foreground: oklch(0.828 0.11 324.284);
--secondary: oklch(0.276 0.119 297.671);
--secondary-foreground: oklch(0.798 0.095 304.138);
--accent: oklch(0.321 0.111 350.605);
--accent-foreground: oklch(0.822 0.089 344.235);
--destructive: oklch(0.685 0.195 40.628);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.33 0.132 325.077);
--chart-1: oklch(0.33 0.132 325.077);
--chart-2: oklch(0.276 0.119 297.671);
--chart-3: oklch(0.321 0.111 350.605);
--chart-4: oklch(0.301 0.133 297.351);
--chart-5: oklch(0.332 0.136 325.074);
}