Custody is a shadcn/ui theme built around a muted blue primary color (#546683) with muted indigo accents (#595483). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#546683) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010204black |
| Foreground | #010409black | #ffffffwhite |
| Card | #fcfcfcsnow | #020408black |
| Card foreground | #010204black | #ffffffwhite |
| Popover | #ffffffwhite | #010204black |
| Popover foreground | #010409black | #ffffffwhite |
| Primary | #546683dimgray | #546683dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #547d83slategray | #547d83slategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e0eef0lavender | #0f1d1fblack |
| Muted foreground | #5d5f5fdimgray | #a0a1a2darkgray |
| Accent | #595483darkslateblue | #595483darkslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9c2f11brown | #e14419orangered |
| Destructive foreground | #fce9e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #546683dimgray | #546683dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.53:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 5.86:1 | AA |
| Secondary button | 4.52:1 | AA |
| Muted text | 5.41:1 | AA |
| Accent | 6.98:1 | AA |
| Destructive | 6.31:1 | AA |
| Text on background | 20.73:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 5.86:1 | AA |
| Secondary button | 4.52:1 | AA |
| Muted text | 6.66:1 | AA |
| Accent | 6.98:1 | AA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Custody in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.106 0.017 249.218);
--muted: oklch(0.94 0.016 206.349);
--muted-foreground: oklch(0.484 0.002 206.414);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.106 0.017 249.218);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.084 0.014 249.218);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.506 0.051 259.79);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.562 0.047 206.334);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.47 0.075 288.487);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.468 0.149 35.363);
--destructive-foreground: oklch(0.947 0.022 35.954);
--ring: oklch(0.506 0.051 259.79);
--chart-1: oklch(0.506 0.051 259.79);
--chart-2: oklch(0.562 0.047 206.334);
--chart-3: oklch(0.47 0.075 288.487);
--chart-4: oklch(0.59 0.05 206.337);
--chart-5: oklch(0.503 0.059 259.746);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.011 251.288);
--foreground: oklch(1 0 180);
--muted: oklch(0.22 0.02 206.401);
--muted-foreground: oklch(0.709 0.002 206.424);
--popover: oklch(0.086 0.011 251.288);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.108 0.014 251.288);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.506 0.051 259.79);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.562 0.047 206.334);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.47 0.075 288.487);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.61 0.2 35.091);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.506 0.051 259.79);
--chart-1: oklch(0.506 0.051 259.79);
--chart-2: oklch(0.562 0.047 206.334);
--chart-3: oklch(0.47 0.075 288.487);
--chart-4: oklch(0.59 0.05 206.337);
--chart-5: oklch(0.503 0.059 259.746);
}