Advanced is a shadcn/ui theme built around a muted deep green primary color (#414332) with muted deep indigo accents (#343243). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#414332) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0c0d02black | #f9f9f6whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #080901black | #fbfbf9snow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0c0d02black | #f9f9f6whitesmoke |
| Primary | #414332darkslategray | #414332darkslategray |
| Primary foreground | #d9dacdlightgrey | #d9dacdlightgrey |
| Secondary | #343243darkslategray | #343243darkslategray |
| Secondary foreground | #cfcddalightgrey | #cfcddalightgrey |
| Muted | #d4d1ebgainsboro | #17142eblack |
| Muted foreground | #42414edarkslategray | #b3b1besilver |
| Accent | #343243darkslategray | #343243darkslategray |
| Accent foreground | #cfcddalightgrey | #cfcddalightgrey |
| Destructive | #e41c01red | #fe472ftomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #414332darkslategray | #414332darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 4.69:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 8.46:1 | AAA |
| Accent | 7.96:1 | AAA |
| Destructive | 3.41:1 | AA Large |
Paste this into your globals.css to use Advanced in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.154 0.027 113.778);
--muted: oklch(0.87 0.036 290.978);
--muted-foreground: oklch(0.382 0.022 290.682);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.154 0.027 113.778);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.134 0.023 113.261);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.377 0.029 113.194);
--primary-foreground: oklch(0.884 0.018 112.152);
--secondary: oklch(0.326 0.031 289.911);
--secondary-foreground: oklch(0.854 0.018 291.382);
--accent: oklch(0.326 0.031 289.911);
--accent-foreground: oklch(0.854 0.018 291.382);
--destructive: oklch(0.585 0.23 30.63);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.377 0.029 113.194);
--chart-1: oklch(0.377 0.029 113.194);
--chart-2: oklch(0.326 0.031 289.911);
--chart-3: oklch(0.326 0.031 289.911);
--chart-4: oklch(0.353 0.034 289.862);
--chart-5: oklch(0.383 0.034 113.435);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.981 0.004 111.857);
--muted: oklch(0.21 0.051 286.47);
--muted-foreground: oklch(0.766 0.018 291.329);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.981 0.004 111.857);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.987 0.003 111.831);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.377 0.029 113.194);
--primary-foreground: oklch(0.884 0.018 112.152);
--secondary: oklch(0.326 0.031 289.911);
--secondary-foreground: oklch(0.854 0.018 291.382);
--accent: oklch(0.326 0.031 289.911);
--accent-foreground: oklch(0.854 0.018 291.382);
--destructive: oklch(0.662 0.223 30.951);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.377 0.029 113.194);
--chart-1: oklch(0.377 0.029 113.194);
--chart-2: oklch(0.326 0.031 289.911);
--chart-3: oklch(0.326 0.031 289.911);
--chart-4: oklch(0.353 0.034 289.862);
--chart-5: oklch(0.383 0.034 113.435);
}