Nervous is a shadcn/ui theme built around a muted indigo primary color (#9890c1) with muted green accents (#b8c190). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted indigo primary (#9890c1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #000000black |
| Foreground | #05040cblack | #ffffffwhite |
| Card | #f8f6fdghostwhite | #030303black |
| Card foreground | #030208black | #ffffffwhite |
| Popover | #f8f6fdghostwhite | #030303black |
| Popover foreground | #030208black | #ffffffwhite |
| Primary | #9890c1darkgray | #9890c1darkgray |
| Primary foreground | #0c0b14black | #0c0b14black |
| Secondary | #b8c190tan | #b8c190tan |
| Secondary foreground | #12140bblack | #12140bblack |
| Muted | #dedfd7gainsboro | #262820darkslategray |
| Muted foreground | #676b52dimgray | #a9ad94darkgray |
| Accent | #b8c190tan | #b8c190tan |
| Accent foreground | #12140bblack | #12140bblack |
| Destructive | #862f03saddlebrown | #f96b24tomato |
| Destructive foreground | #fdd3bepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9890c1darkgray | #9890c1darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 6.60:1 | AA |
| Secondary button | 9.76:1 | AAA |
| Muted text | 4.12:1 | AA Large |
| Accent | 9.76:1 | AAA |
| Destructive | 6.27:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.60:1 | AA |
| Secondary button | 9.76:1 | AAA |
| Muted text | 6.48:1 | AA |
| Accent | 9.76:1 | AAA |
| Destructive | 7.18:1 | AAA |
Paste this into your globals.css to use Nervous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 293.978);
--foreground: oklch(0.112 0.023 292.508);
--muted: oklch(0.901 0.011 114.286);
--muted-foreground: oklch(0.516 0.037 115.414);
--popover: oklch(0.977 0.009 293.886);
--popover-foreground: oklch(0.098 0.02 292.626);
--card: oklch(0.977 0.009 293.886);
--card-foreground: oklch(0.098 0.02 292.626);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.678 0.071 292.023);
--primary-foreground: oklch(0.156 0.018 291.791);
--secondary: oklch(0.791 0.066 115.624);
--secondary-foreground: oklch(0.185 0.017 115.756);
--accent: oklch(0.791 0.066 115.624);
--accent-foreground: oklch(0.185 0.017 115.756);
--destructive: oklch(0.428 0.129 41.174);
--destructive-foreground: oklch(0.898 0.055 48.084);
--ring: oklch(0.678 0.071 292.023);
--chart-1: oklch(0.678 0.071 292.023);
--chart-2: oklch(0.791 0.066 115.624);
--chart-3: oklch(0.791 0.066 115.624);
--chart-4: oklch(0.81 0.06 115.45);
--chart-5: oklch(0.672 0.079 291.767);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.271 0.014 115.037);
--muted-foreground: oklch(0.737 0.035 114.936);
--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.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.678 0.071 292.023);
--primary-foreground: oklch(0.156 0.018 291.791);
--secondary: oklch(0.791 0.066 115.624);
--secondary-foreground: oklch(0.185 0.017 115.756);
--accent: oklch(0.791 0.066 115.624);
--accent-foreground: oklch(0.185 0.017 115.756);
--destructive: oklch(0.695 0.19 42.957);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.678 0.071 292.023);
--chart-1: oklch(0.678 0.071 292.023);
--chart-2: oklch(0.791 0.066 115.624);
--chart-3: oklch(0.791 0.066 115.624);
--chart-4: oklch(0.81 0.06 115.45);
--chart-5: oklch(0.672 0.079 291.767);
}