Scarce is a shadcn/ui theme built around a neutral gray primary color (#b5b5b5) with neutral gray accents (#b5b5b5). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#b5b5b5) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #030202black |
| Foreground | #080202black | #faf4f4whitesmoke |
| Card | #fefbfbsnow | #030202black |
| Card foreground | #080202black | #faf4f4whitesmoke |
| Popover | #fefbfbsnow | #030202black |
| Popover foreground | #080202black | #faf4f4whitesmoke |
| Primary | #b5b5b5silver | #b5b5b5silver |
| Primary foreground | #1c1c1cblack | #1c1c1cblack |
| Secondary | #b5b5b5silver | #b5b5b5silver |
| Secondary foreground | #1c1c1cblack | #1c1c1cblack |
| Muted | #eceaealinen | #151313black |
| Muted foreground | #483737darkslategray | #c8b7b7silver |
| Accent | #b5b5b5silver | #b5b5b5silver |
| Accent foreground | #1c1c1cblack | #1c1c1cblack |
| Destructive | #ca2c0cfirebrick | #ec330eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b5b5b5silver | #b5b5b5silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 8.31:1 | AAA |
| Secondary button | 8.31:1 | AAA |
| Muted text | 9.30:1 | AAA |
| Accent | 8.31:1 | AAA |
| Destructive | 5.40:1 | AA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 8.31:1 | AAA |
| Secondary button | 8.31:1 | AAA |
| Muted text | 9.58:1 | AAA |
| Accent | 8.31:1 | AAA |
| Destructive | 4.15:1 | AA Large |
Paste this into your globals.css to use Scarce in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 17.2);
--foreground: oklch(0.104 0.018 20.492);
--muted: oklch(0.937 0.002 17.197);
--muted-foreground: oklch(0.357 0.024 18.323);
--popover: oklch(0.991 0.002 17.2);
--popover-foreground: oklch(0.104 0.018 20.492);
--card: oklch(0.991 0.002 17.2);
--card-foreground: oklch(0.104 0.018 20.492);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.773 0 180);
--primary-foreground: oklch(0.227 0 164.055);
--secondary: oklch(0.773 0 180);
--secondary-foreground: oklch(0.227 0 164.055);
--accent: oklch(0.773 0 180);
--accent-foreground: oklch(0.227 0 164.055);
--destructive: oklch(0.547 0.198 32.426);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.773 0 180);
--chart-1: oklch(0.773 0 180);
--chart-2: oklch(0.773 0 180);
--chart-3: oklch(0.773 0 180);
--chart-4: oklch(0.797 0 180);
--chart-5: oklch(0.77 0.005 17.266);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.007 18.604);
--foreground: oklch(0.973 0.007 17.27);
--muted: oklch(0.191 0.003 17.447);
--muted-foreground: oklch(0.793 0.019 17.559);
--popover: oklch(0.087 0.007 18.604);
--popover-foreground: oklch(0.973 0.007 17.27);
--card: oklch(0.087 0.007 18.604);
--card-foreground: oklch(0.973 0.007 17.27);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.773 0 180);
--primary-foreground: oklch(0.227 0 164.055);
--secondary: oklch(0.773 0 180);
--secondary-foreground: oklch(0.227 0 164.055);
--accent: oklch(0.773 0 180);
--accent-foreground: oklch(0.227 0 164.055);
--destructive: oklch(0.613 0.224 32.329);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.773 0 180);
--chart-1: oklch(0.773 0 180);
--chart-2: oklch(0.773 0 180);
--chart-3: oklch(0.773 0 180);
--chart-4: oklch(0.797 0 180);
--chart-5: oklch(0.77 0.005 17.266);
}