Number is a shadcn/ui theme built around a vivid deep teal primary color (#031c12) with vivid deep cyan accents (#03191c). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid deep teal primary (#031c12) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #020303black |
| Foreground | #04160fblack | #f6f8f8whitesmoke |
| Card | #f7fdfbmintcream | #030705black |
| Card foreground | #03110cblack | #f9fbfamintcream |
| Popover | #fbfefdwhite | #020303black |
| Popover foreground | #04160fblack | #f6f8f8whitesmoke |
| Primary | #031c12black | #031c12black |
| Primary foreground | #14d78cmediumspringgreen | #14d78cmediumspringgreen |
| Secondary | #031c06black | #031c06black |
| Secondary foreground | #14d72blimegreen | #14d72blimegreen |
| Muted | #d5ecd8gainsboro | #132a16black |
| Muted foreground | #57705adimgray | #8fa892darkseagreen |
| Accent | #03191cblack | #03191cblack |
| Accent foreground | #14c0d7darkturquoise | #14c0d7darkturquoise |
| Destructive | #cb0e01firebrick | #fe4134tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #031c12black | #031c12black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.34:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 9.44:1 | AAA |
| Secondary button | 9.20:1 | AAA |
| Muted text | 4.33:1 | AA Large |
| Accent | 8.23:1 | AAA |
| Destructive | 5.82:1 | AA |
| Text on background | 19.35:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 9.44:1 | AAA |
| Secondary button | 9.20:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 8.23:1 | AAA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use Number in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 171.498);
--foreground: oklch(0.18 0.029 167.065);
--muted: oklch(0.92 0.036 148.664);
--muted-foreground: oklch(0.519 0.047 148.008);
--popover: oklch(0.994 0.003 171.498);
--popover-foreground: oklch(0.18 0.029 167.065);
--card: oklch(0.988 0.006 171.403);
--card-foreground: oklch(0.163 0.025 168.7);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.203 0.038 165.195);
--primary-foreground: oklch(0.775 0.175 159.066);
--secondary: oklch(0.199 0.054 145.96);
--secondary-foreground: oklch(0.763 0.247 143.485);
--accent: oklch(0.197 0.03 206.52);
--accent-foreground: oklch(0.741 0.126 209.998);
--destructive: oklch(0.532 0.213 29.91);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.203 0.038 165.195);
--chart-1: oklch(0.203 0.038 165.195);
--chart-2: oklch(0.199 0.054 145.96);
--chart-3: oklch(0.197 0.03 206.52);
--chart-4: oklch(0.25 0.072 145.062);
--chart-5: oklch(0.204 0.039 165.038);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.007 171.758);
--foreground: oklch(0.978 0.002 171.523);
--muted: oklch(0.259 0.047 146.683);
--muted-foreground: oklch(0.707 0.044 148.379);
--popover: oklch(0.096 0.007 171.758);
--popover-foreground: oklch(0.978 0.002 171.523);
--card: oklch(0.121 0.009 171.758);
--card-foreground: oklch(0.986 0.002 171.546);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.203 0.038 165.195);
--primary-foreground: oklch(0.775 0.175 159.066);
--secondary: oklch(0.199 0.054 145.96);
--secondary-foreground: oklch(0.763 0.247 143.485);
--accent: oklch(0.197 0.03 206.52);
--accent-foreground: oklch(0.741 0.126 209.998);
--destructive: oklch(0.658 0.226 28.932);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.203 0.038 165.195);
--chart-1: oklch(0.203 0.038 165.195);
--chart-2: oklch(0.199 0.054 145.96);
--chart-3: oklch(0.197 0.03 206.52);
--chart-4: oklch(0.25 0.072 145.062);
--chart-5: oklch(0.204 0.039 165.038);
}