Spacing is a shadcn/ui theme built around a vivid deep teal primary color (#016060) with muted light teal accents (#bcd2d2). The light mode uses a neutral background (#fbfefe). Dark mode keeps the vivid deep teal primary (#016060) on a teal-tinted background (#050a0a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #050a0ablack |
| Foreground | #010404black | #f9fbfbghostwhite |
| Card | #f7fdfdmintcream | #070e0eblack |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #fbfefewhite | #050a0ablack |
| Popover foreground | #010404black | #f9fbfbghostwhite |
| Primary | #016060teal | #016060teal |
| Primary foreground | #95fefepaleturquoise | #95fefepaleturquoise |
| Secondary | #d2dbdbgainsboro | #253232darkslategray |
| Secondary foreground | #364444darkslategray | #bccdcdsilver |
| Muted | #f1f4f4whitesmoke | #0b0e0eblack |
| Muted foreground | #4a4f4fdarkslategray | #b0b5b5darkgray |
| Accent | #bcd2d2lightsteelblue | #2e4747darkslategray |
| Accent foreground | #253737darkslategray | #cbddddlightgrey |
| Destructive | #9c3407saddlebrown | #f6743ctomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #016060teal | #016060teal |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.36:1 | AAA |
| Primary button | 6.29:1 | AA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 7.51:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 7.23:1 | AAA |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 6.29:1 | AA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 9.32:1 | AAA |
| Accent | 7.07:1 | AAA |
| Destructive | 7.46:1 | AAA |
Paste this into your globals.css to use Spacing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 197.113);
--foreground: oklch(0.101 0.013 195.347);
--muted: oklch(0.964 0.004 197.099);
--muted-foreground: oklch(0.423 0.006 196.931);
--popover: oklch(0.994 0.003 197.113);
--popover-foreground: oklch(0.101 0.013 195.347);
--card: oklch(0.989 0.006 197.068);
--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.443 0.075 194.776);
--primary-foreground: oklch(0.933 0.098 195.605);
--secondary: oklch(0.884 0.01 196.98);
--secondary-foreground: oklch(0.375 0.017 196.432);
--accent: oklch(0.846 0.023 196.726);
--accent-foreground: oklch(0.32 0.023 196.077);
--destructive: oklch(0.472 0.147 38.991);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.443 0.075 194.776);
--chart-1: oklch(0.443 0.075 194.776);
--chart-2: oklch(0.884 0.01 196.98);
--chart-3: oklch(0.846 0.023 196.726);
--chart-4: oklch(0.906 0.008 197.018);
--chart-5: oklch(0.447 0.076 194.765);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.01 196.045);
--foreground: oklch(0.986 0.002 197.119);
--muted: oklch(0.162 0.005 196.634);
--muted-foreground: oklch(0.769 0.005 197.049);
--popover: oklch(0.14 0.01 196.045);
--popover-foreground: oklch(0.986 0.002 197.119);
--card: oklch(0.155 0.012 196.012);
--card-foreground: oklch(0.993 0.001 197.139);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.443 0.075 194.776);
--primary-foreground: oklch(0.933 0.098 195.605);
--secondary: oklch(0.305 0.017 196.272);
--secondary-foreground: oklch(0.835 0.019 196.793);
--accent: oklch(0.378 0.03 195.945);
--accent-foreground: oklch(0.883 0.02 196.805);
--destructive: oklch(0.704 0.174 42.124);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.443 0.075 194.776);
--chart-1: oklch(0.443 0.075 194.776);
--chart-2: oklch(0.305 0.017 196.272);
--chart-3: oklch(0.378 0.03 195.945);
--chart-4: oklch(0.338 0.02 196.245);
--chart-5: oklch(0.447 0.076 194.765);
}