Number is a shadcn/ui theme built around a light yellow primary color (#f0f1da) with light indigo accents (#dbdaf1). The light mode uses a neutral background (#fefefb). Dark mode keeps the light yellow primary (#f0f1da) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #070703black |
| Foreground | #000000black | #fbfcf8snow |
| Card | #fcfcf7snow | #0b0b04black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fefefbwhite | #070703black |
| Popover foreground | #000000black | #fbfcf8snow |
| Primary | #f0f1dabeige | #f0f1dabeige |
| Primary foreground | #24250eblack | #24250eblack |
| Secondary | #dbdaf1lavender | #dbdaf1lavender |
| Secondary foreground | #2e2b6emidnightblue | #2e2b6emidnightblue |
| Muted | #e5e5eblavender | #14141ablack |
| Muted foreground | #484757darkslategray | #a9a8b8darkgray |
| Accent | #dbdaf1lavender | #dbdaf1lavender |
| Accent foreground | #2e2b6emidnightblue | #2e2b6emidnightblue |
| Destructive | #d94602orangered | #fd5c12orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f0f1dabeige | #f0f1dabeige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.73:1 | AAA |
| Text on card | 20.46:1 | AAA |
| Primary button | 13.56:1 | AAA |
| Secondary button | 9.09:1 | AAA |
| Muted text | 7.21:1 | AAA |
| Accent | 9.09:1 | AAA |
| Destructive | 4.34:1 | AA Large |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 13.56:1 | AAA |
| Secondary button | 9.09:1 | AAA |
| Muted text | 7.86:1 | AAA |
| Accent | 9.09:1 | AAA |
| Destructive | 6.70:1 | AA |
Paste this into your globals.css to use Number in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 108.77);
--foreground: oklch(0 0 0);
--muted: oklch(0.923 0.009 288.522);
--muted-foreground: oklch(0.405 0.026 287.454);
--popover: oklch(0.995 0.003 108.77);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.007 108.832);
--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.95 0.03 109.278);
--primary-foreground: oklch(0.256 0.038 111.309);
--secondary: oklch(0.897 0.031 288.064);
--secondary-foreground: oklch(0.334 0.113 280.589);
--accent: oklch(0.897 0.031 288.064);
--accent-foreground: oklch(0.334 0.113 280.589);
--destructive: oklch(0.598 0.193 38.409);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.95 0.03 109.278);
--chart-1: oklch(0.95 0.03 109.278);
--chart-2: oklch(0.897 0.031 288.064);
--chart-3: oklch(0.897 0.031 288.064);
--chart-4: oklch(0.928 0.021 288.28);
--chart-5: oklch(0.952 0.032 109.315);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.015 110.26);
--foreground: oklch(0.989 0.004 108.79);
--muted: oklch(0.193 0.014 287.318);
--muted-foreground: oklch(0.737 0.023 288.13);
--popover: oklch(0.128 0.015 110.26);
--popover-foreground: oklch(0.989 0.004 108.79);
--card: oklch(0.147 0.017 110.37);
--card-foreground: oklch(0.994 0.002 108.749);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.95 0.03 109.278);
--primary-foreground: oklch(0.256 0.038 111.309);
--secondary: oklch(0.897 0.031 288.064);
--secondary-foreground: oklch(0.334 0.113 280.589);
--accent: oklch(0.897 0.031 288.064);
--accent-foreground: oklch(0.334 0.113 280.589);
--destructive: oklch(0.68 0.208 39.828);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.95 0.03 109.278);
--chart-1: oklch(0.95 0.03 109.278);
--chart-2: oklch(0.897 0.031 288.064);
--chart-3: oklch(0.897 0.031 288.064);
--chart-4: oklch(0.928 0.021 288.28);
--chart-5: oklch(0.952 0.032 109.315);
}