AI is a shadcn/ui theme built around a blue primary color (#7181d0) with muted blue accents (#b1b5ce). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#7181d0) on a neutral background (#020308).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020308black |
| Foreground | #010104black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #03050cblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #03050cblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #7181d0cornflowerblue | #7181d0cornflowerblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #c9ccd9lightgrey | #2f3037darkslategray |
| Secondary foreground | #2f3242darkslategray | #c8c9d0lightgrey |
| Muted | #cbcfe7lightgrey | #181d34midnightblue |
| Muted foreground | #434446darkslategray | #b9b9bcsilver |
| Accent | #b1b5celightsteelblue | #3b3f54darkslategray |
| Accent foreground | #1d202fdarkslategray | #dbdde6gainsboro |
| Destructive | #d74b0fchocolate | #d74b0fchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #f2f2f3whitesmoke | #1b1b1dblack |
| Input | #f2f2f3whitesmoke | #1b1b1dblack |
| Ring | #7181d0cornflowerblue | #7181d0cornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.84:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 5.76:1 | AA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 4.29:1 | AA Large |
| Text on background | 20.08:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 5.76:1 | AA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 8.49:1 | AAA |
| Accent | 7.62:1 | AAA |
| Destructive | 4.29:1 | AA Large |
Paste this into your globals.css to use AI in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.079 0.015 269.531);
--muted: oklch(0.859 0.033 276.699);
--muted-foreground: oklch(0.387 0.004 277.12);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.961 0.001 277.247);
--input: oklch(0.961 0.001 277.247);
--primary: oklch(0.626 0.12 273.873);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.847 0.018 276.955);
--secondary-foreground: oklch(0.32 0.029 275.848);
--accent: oklch(0.779 0.035 276.595);
--accent-foreground: oklch(0.249 0.028 275.423);
--destructive: oklch(0.599 0.186 38.981);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.626 0.12 273.873);
--chart-1: oklch(0.626 0.12 273.873);
--chart-2: oklch(0.847 0.018 276.955);
--chart-3: oklch(0.779 0.035 276.595);
--chart-4: oklch(0.873 0.015 277.017);
--chart-5: oklch(0.621 0.127 273.599);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.018 270.247);
--foreground: oklch(0.991 0.002 277.233);
--muted: oklch(0.238 0.046 273.862);
--muted-foreground: oklch(0.787 0.003 277.203);
--popover: oklch(0.115 0.02 270.359);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.115 0.02 270.359);
--card-foreground: oklch(1 0 180);
--border: oklch(0.225 0.003 277.09);
--input: oklch(0.225 0.003 277.09);
--primary: oklch(0.626 0.12 273.873);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.312 0.012 276.684);
--secondary-foreground: oklch(0.838 0.01 277.102);
--accent: oklch(0.374 0.035 275.77);
--accent-foreground: oklch(0.899 0.012 277.074);
--destructive: oklch(0.599 0.186 38.981);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.626 0.12 273.873);
--chart-1: oklch(0.626 0.12 273.873);
--chart-2: oklch(0.312 0.012 276.684);
--chart-3: oklch(0.374 0.035 275.77);
--chart-4: oklch(0.34 0.014 276.666);
--chart-5: oklch(0.621 0.127 273.599);
}