Nexus is a shadcn/ui theme built around a muted purple primary color (#c0a8c7) with muted teal accents (#a8c7c0). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the muted purple primary (#c0a8c7) on a purple-tinted background (#0a030c).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fcghostwhite | #0a030cblack |
| Foreground | #0a040cblack | #f8f5f9whitesmoke |
| Card | #f9f5faghostwhite | #0d0410black |
| Card foreground | #070208black | #fbf9fbsnow |
| Popover | #f9f5faghostwhite | #0d0410black |
| Popover foreground | #070208black | #fbf9fbsnow |
| Primary | #c0a8c7silver | #c0a8c7silver |
| Primary foreground | #221825black | #221825black |
| Secondary | #c7c0a8silver | #c7c0a8silver |
| Secondary foreground | #252218black | #252218black |
| Muted | #f6f4eewhitesmoke | #110f09black |
| Muted foreground | #656258dimgray | #a7a49adarkgray |
| Accent | #a8c7c0silver | #a8c7c0silver |
| Accent foreground | #182522black | #182522black |
| Destructive | #bb1711firebrick | #ec3832crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c0a8c7silver | #c0a8c7silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.26:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 8.73:1 | AAA |
| Muted text | 5.57:1 | AA |
| Accent | 8.76:1 | AAA |
| Destructive | 6.49:1 | AA |
| Text on background | 18.81:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 8.73:1 | AAA |
| Muted text | 7.68:1 | AAA |
| Accent | 8.76:1 | AAA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Nexus in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 318.325);
--foreground: oklch(0.122 0.025 319.869);
--muted: oklch(0.968 0.009 92.745);
--muted-foreground: oklch(0.495 0.016 92.944);
--popover: oklch(0.974 0.008 318.322);
--popover-foreground: oklch(0.106 0.022 320.094);
--card: oklch(0.974 0.008 318.322);
--card-foreground: oklch(0.106 0.022 320.094);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.762 0.052 318.262);
--primary-foreground: oklch(0.227 0.03 318.185);
--secondary: oklch(0.807 0.034 93.009);
--secondary-foreground: oklch(0.253 0.019 93.157);
--accent: oklch(0.805 0.035 179.671);
--accent-foreground: oklch(0.252 0.02 178.553);
--destructive: oklch(0.505 0.195 28.919);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.762 0.052 318.262);
--chart-1: oklch(0.762 0.052 318.262);
--chart-2: oklch(0.807 0.034 93.009);
--chart-3: oklch(0.805 0.035 179.671);
--chart-4: oklch(0.828 0.03 92.971);
--chart-5: oklch(0.76 0.059 318.252);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.028 319.979);
--foreground: oklch(0.975 0.006 318.324);
--muted: oklch(0.168 0.013 93.308);
--muted-foreground: oklch(0.719 0.015 92.848);
--popover: oklch(0.134 0.033 319.023);
--popover-foreground: oklch(0.983 0.004 318.326);
--card: oklch(0.134 0.033 319.023);
--card-foreground: oklch(0.983 0.004 318.326);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.762 0.052 318.262);
--primary-foreground: oklch(0.227 0.03 318.185);
--secondary: oklch(0.807 0.034 93.009);
--secondary-foreground: oklch(0.253 0.019 93.157);
--accent: oklch(0.805 0.035 179.671);
--accent-foreground: oklch(0.252 0.02 178.553);
--destructive: oklch(0.619 0.217 27.709);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.762 0.052 318.262);
--chart-1: oklch(0.762 0.052 318.262);
--chart-2: oklch(0.807 0.034 93.009);
--chart-3: oklch(0.805 0.035 179.671);
--chart-4: oklch(0.828 0.03 92.971);
--chart-5: oklch(0.76 0.059 318.252);
}