Scarce is a shadcn/ui theme built around a vivid indigo primary color (#320bf4) with vivid green accents (#0bf432). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#320bf4) on a neutral background (#030208).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030208black |
| Foreground | #030208black | #f6f5fawhitesmoke |
| Card | #fcfcfcsnow | #05030cblack |
| Card foreground | #020104black | #f9f8fcghostwhite |
| Popover | #ffffffwhite | #030208black |
| Popover foreground | #030208black | #f6f5fawhitesmoke |
| Primary | #320bf4blue | #320bf4blue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #f4320borangered | #f4320borangered |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f0ebealinen | #15100fblack |
| Muted foreground | #5a504edimgray | #b1a7a5darkgray |
| Accent | #0bf432lime | #0bf432lime |
| Accent foreground | #02310ablack | #02310ablack |
| Destructive | #a91e0ffirebrick | #eb321eorangered |
| Destructive foreground | #fdeeeclinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #320bf4blue | #320bf4blue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 8.44:1 | AAA |
| Secondary button | 3.96:1 | AA Large |
| Muted text | 6.61:1 | AA |
| Accent | 9.64:1 | AAA |
| Destructive | 6.46:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 8.44:1 | AAA |
| Secondary button | 3.96:1 | AA Large |
| Muted text | 8.03:1 | AAA |
| Accent | 9.64:1 | AAA |
| Destructive | 4.17:1 | AA Large |
Paste this into your globals.css to use Scarce in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.099 0.019 292.703);
--muted: oklch(0.944 0.005 31.053);
--muted-foreground: oklch(0.441 0.013 31.129);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.099 0.019 292.703);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.078 0.015 292.703);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.455 0.29 271.05);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.626 0.231 32.178);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.839 0.273 143.695);
--accent-foreground: oklch(0.272 0.081 145.598);
--destructive: oklch(0.475 0.176 30.519);
--destructive-foreground: oklch(0.961 0.017 25.141);
--ring: oklch(0.455 0.29 271.05);
--chart-1: oklch(0.455 0.29 271.05);
--chart-2: oklch(0.626 0.231 32.178);
--chart-3: oklch(0.839 0.273 143.695);
--chart-4: oklch(0.637 0.222 32.782);
--chart-5: oklch(0.457 0.296 270.277);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.023 292.374);
--foreground: oklch(0.971 0.007 293.928);
--muted: oklch(0.179 0.008 31.188);
--muted-foreground: oklch(0.736 0.012 31.078);
--popover: oklch(0.096 0.023 292.374);
--popover-foreground: oklch(0.971 0.007 293.928);
--card: oklch(0.109 0.026 292.195);
--card-foreground: oklch(0.981 0.005 293.975);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.455 0.29 271.05);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.626 0.231 32.178);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.839 0.273 143.695);
--accent-foreground: oklch(0.272 0.081 145.598);
--destructive: oklch(0.612 0.222 30.499);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.455 0.29 271.05);
--chart-1: oklch(0.455 0.29 271.05);
--chart-2: oklch(0.626 0.231 32.178);
--chart-3: oklch(0.839 0.273 143.695);
--chart-4: oklch(0.637 0.222 32.782);
--chart-5: oklch(0.457 0.296 270.277);
}