Noun is a shadcn/ui theme built around a muted violet primary color (#7a7292) with muted purple accents (#8a7292). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#7a7292) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040307black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #040307black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #040307black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #7a7292slategray | #7a7292slategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #727a92slategray | #727a92slategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #edeef2whitesmoke | #0d0e12black |
| Muted foreground | #58595adimgray | #a5a5a7darkgray |
| Accent | #8a7292gray | #8a7292gray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #cf3c02orangered | #f24602orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7a7292slategray | #7a7292slategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 4.52:1 | AA |
| Secondary button | 4.27:1 | AA Large |
| Muted text | 6.07:1 | AA |
| Accent | 4.28:1 | AA Large |
| Destructive | 4.87:1 | AA |
| Text on background | 20.57:1 | AAA |
| Text on card | 20.57:1 | AAA |
| Primary button | 4.52:1 | AA |
| Secondary button | 4.27:1 | AA Large |
| Muted text | 7.84:1 | AAA |
| Accent | 4.28:1 | AA Large |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Noun in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.951 0.005 271.359);
--muted-foreground: oklch(0.463 0.002 271.365);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.571 0.05 296.233);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.581 0.039 270.67);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.586 0.056 317.602);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.57 0.191 36.648);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.571 0.05 296.233);
--chart-1: oklch(0.571 0.05 296.233);
--chart-2: oklch(0.581 0.039 270.67);
--chart-3: oklch(0.586 0.056 317.602);
--chart-4: oklch(0.609 0.036 270.767);
--chart-5: oklch(0.563 0.062 295.816);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.016 297.578);
--foreground: oklch(1 0 180);
--muted: oklch(0.164 0.008 270.895);
--muted-foreground: oklch(0.723 0.002 271.384);
--popover: oklch(0.103 0.016 297.578);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.103 0.016 297.578);
--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.571 0.05 296.233);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.581 0.039 270.67);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.586 0.056 317.602);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.64 0.217 36.336);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.571 0.05 296.233);
--chart-1: oklch(0.571 0.05 296.233);
--chart-2: oklch(0.581 0.039 270.67);
--chart-3: oklch(0.586 0.056 317.602);
--chart-4: oklch(0.609 0.036 270.767);
--chart-5: oklch(0.563 0.062 295.816);
}