Advanced is a shadcn/ui theme built around a vivid blue primary color (#52a0fe) with vivid green accents (#a0fe52). The light mode uses a neutral background (#f7fafc). Dark mode keeps the vivid blue primary (#52a0fe) on a neutral background (#030507).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fafcghostwhite | #030507black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #f7fafcghostwhite | #030507black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #f7fafcghostwhite | #030507black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #52a0fecornflowerblue | #52a0fecornflowerblue |
| Primary foreground | #000e1eblack | #000e1eblack |
| Secondary | #fe52a0hotpink | #fe52a0hotpink |
| Secondary foreground | #1e000eblack | #1e000eblack |
| Muted | #e9cddagainsboro | #321622black |
| Muted foreground | #5a4951dimgray | #b6a5addarkgray |
| Accent | #a0fe52greenyellow | #a0fe52greenyellow |
| Accent foreground | #0e1e00black | #0e1e00black |
| Destructive | #bd2d05firebrick | #e03506orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #52a0fecornflowerblue | #52a0fecornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.01:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 6.54:1 | AA |
| Muted text | 5.68:1 | AA |
| Accent | 13.95:1 | AAA |
| Destructive | 5.93:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 6.54:1 | AA |
| Muted text | 7.06:1 | AAA |
| Accent | 13.95:1 | AAA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Advanced in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 253.25);
--foreground: oklch(0 0 0);
--muted: oklch(0.876 0.035 348.88);
--muted-foreground: oklch(0.426 0.025 349.34);
--popover: oklch(0.983 0.004 253.25);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.004 253.25);
--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.699 0.159 254.786);
--primary-foreground: oklch(0.159 0.043 248.735);
--secondary: oklch(0.696 0.217 356.71);
--secondary-foreground: oklch(0.155 0.063 354.548);
--accent: oklch(0.906 0.221 133.886);
--accent-foreground: oklch(0.214 0.059 132.511);
--destructive: oklch(0.524 0.186 33.982);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.699 0.159 254.786);
--chart-1: oklch(0.699 0.159 254.786);
--chart-2: oklch(0.696 0.217 356.71);
--chart-3: oklch(0.906 0.221 133.886);
--chart-4: oklch(0.715 0.201 355.494);
--chart-5: oklch(0.699 0.163 254.873);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.011 246.454);
--foreground: oklch(0.992 0.001 253.224);
--muted: oklch(0.244 0.048 352.911);
--muted-foreground: oklch(0.739 0.021 348.591);
--popover: oklch(0.111 0.011 246.454);
--popover-foreground: oklch(0.992 0.001 253.224);
--card: oklch(0.111 0.011 246.454);
--card-foreground: oklch(0.992 0.001 253.224);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.699 0.159 254.786);
--primary-foreground: oklch(0.159 0.043 248.735);
--secondary: oklch(0.696 0.217 356.71);
--secondary-foreground: oklch(0.155 0.063 354.548);
--accent: oklch(0.906 0.221 133.886);
--accent-foreground: oklch(0.214 0.059 132.511);
--destructive: oklch(0.593 0.212 33.74);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.699 0.159 254.786);
--chart-1: oklch(0.699 0.159 254.786);
--chart-2: oklch(0.696 0.217 356.71);
--chart-3: oklch(0.906 0.221 133.886);
--chart-4: oklch(0.715 0.201 355.494);
--chart-5: oklch(0.699 0.163 254.873);
}