Neon is a shadcn/ui theme built around a vivid deep indigo primary color (#030526) with vivid deep violet accents (#130326). The light mode uses a neutral background (#ffffff). Dark mode switches to a muted deep indigo primary (#181927) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #03030dblack | #fcfcfdwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #020208black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #020208black | #ffffffwhite |
| Primary | #030526black | #181927black |
| Primary foreground | #ffffffwhite | #eaebfflavender |
| Secondary | #031626black | #031626black |
| Secondary foreground | #71f2f7aquamarine | #71f2f7aquamarine |
| Muted | #dbdee1gainsboro | #1e2124black |
| Muted foreground | #53626edimgray | #919facdarkgray |
| Accent | #130326black | #130326black |
| Accent foreground | #ea46dcorchid | #ea46dcorchid |
| Destructive | #ff2828crimson | #ff5d67tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #eeeef1whitesmoke | #17171cblack |
| Input | #eeeef1whitesmoke | #17171cblack |
| Ring | #030526black | #030526black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.53:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 19.96:1 | AAA |
| Secondary button | 13.72:1 | AAA |
| Muted text | 4.65:1 | AA |
| Accent | 6.00:1 | AA |
| Destructive | 3.76:1 | AA Large |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 14.74:1 | AAA |
| Secondary button | 13.72:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 6.00:1 | AA |
| Destructive | 7.02:1 | AAA |
Paste this into your globals.css to use Neon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.107 0.027 277.159);
--muted: oklch(0.899 0.005 242.26);
--muted-foreground: oklch(0.489 0.027 242.943);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.093 0.023 277.181);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.093 0.023 277.181);
--border: oklch(0.951 0.004 283.901);
--input: oklch(0.951 0.004 283.901);
--primary: oklch(0.143 0.07 270.034);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.194 0.042 244.601);
--secondary-foreground: oklch(0.89 0.114 198.76);
--accent: oklch(0.159 0.071 300.308);
--accent-foreground: oklch(0.68 0.253 331.684);
--destructive: oklch(0.641 0.244 27.706);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.143 0.07 270.034);
--chart-1: oklch(0.143 0.07 270.034);
--chart-2: oklch(0.194 0.042 244.601);
--chart-3: oklch(0.159 0.071 300.308);
--chart-4: oklch(0.23 0.053 246.71);
--chart-5: oklch(0.141 0.072 268.956);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 283.94);
--muted: oklch(0.247 0.006 242.529);
--muted-foreground: oklch(0.696 0.025 242.667);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.207 0.01 283.141);
--input: oklch(0.207 0.01 283.141);
--primary: oklch(0.22 0.028 281.542);
--primary-foreground: oklch(0.946 0.026 283.476);
--secondary: oklch(0.194 0.042 244.601);
--secondary-foreground: oklch(0.89 0.114 198.76);
--accent: oklch(0.159 0.071 300.308);
--accent-foreground: oklch(0.68 0.253 331.684);
--destructive: oklch(0.694 0.196 20.594);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.143 0.07 270.034);
--chart-1: oklch(0.22 0.028 281.542);
--chart-2: oklch(0.194 0.042 244.601);
--chart-3: oklch(0.159 0.071 300.308);
--chart-4: oklch(0.23 0.053 246.71);
--chart-5: oklch(0.217 0.031 281.145);
}