1 is a shadcn/ui theme built around a muted indigo primary color (#4a487a) with muted yellow accents (#787a48). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the muted indigo primary (#4a487a) on an indigo-tinted background (#07060e).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #07060eblack |
| Foreground | #050416black | #f8f8fcghostwhite |
| Card | #f8f8fcghostwhite | #07060eblack |
| Card foreground | #050416black | #f8f8fcghostwhite |
| Popover | #f8f8fcghostwhite | #07060eblack |
| Popover foreground | #050416black | #f8f8fcghostwhite |
| Primary | #4a487adarkslateblue | #4a487adarkslateblue |
| Primary foreground | #f9f9fbghostwhite | #f9f9fbghostwhite |
| Secondary | #787a48dimgray | #787a48dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f4f4e6linen | #18190bblack |
| Muted foreground | #6b6d50dimgray | #adaf92darkgray |
| Accent | #787a48dimgray | #787a48dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a93004firebrick | #e54106orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #ececeewhitesmoke | #18181bblack |
| Input | #ececeewhitesmoke | #18181bblack |
| Ring | #4a487adarkslateblue | #4a487adarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 4.49:1 | AA Large |
| Muted text | 4.82:1 | AA |
| Accent | 4.49:1 | AA Large |
| Destructive | 6.73:1 | AA |
| Text on background | 19.02:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 4.49:1 | AA Large |
| Muted text | 7.88:1 | AAA |
| Accent | 4.49:1 | AA Large |
| Destructive | 4.12:1 | AA Large |
Paste this into your globals.css to use 1 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.004 288.625);
--foreground: oklch(0.123 0.042 281.611);
--muted: oklch(0.964 0.019 109.069);
--muted-foreground: oklch(0.524 0.042 110.153);
--popover: oklch(0.981 0.004 288.625);
--popover-foreground: oklch(0.123 0.042 281.611);
--card: oklch(0.981 0.004 288.625);
--card-foreground: oklch(0.123 0.042 281.611);
--border: oklch(0.944 0.002 288.662);
--input: oklch(0.944 0.002 288.662);
--primary: oklch(0.427 0.082 284.617);
--primary-foreground: oklch(0.982 0.004 288.643);
--secondary: oklch(0.565 0.071 110.935);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.565 0.071 110.935);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.491 0.164 36.505);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.427 0.082 284.617);
--chart-1: oklch(0.427 0.082 284.617);
--chart-2: oklch(0.565 0.071 110.935);
--chart-3: oklch(0.565 0.071 110.935);
--chart-4: oklch(0.597 0.076 110.95);
--chart-5: oklch(0.42 0.092 283.977);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.019 286.234);
--foreground: oklch(0.98 0.005 288.609);
--muted: oklch(0.208 0.026 110.913);
--muted-foreground: oklch(0.745 0.039 109.665);
--popover: oklch(0.129 0.019 286.234);
--popover-foreground: oklch(0.98 0.005 288.609);
--card: oklch(0.129 0.019 286.234);
--card-foreground: oklch(0.98 0.005 288.609);
--border: oklch(0.211 0.005 288.266);
--input: oklch(0.211 0.005 288.266);
--primary: oklch(0.427 0.082 284.617);
--primary-foreground: oklch(0.982 0.004 288.643);
--secondary: oklch(0.565 0.071 110.935);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.565 0.071 110.935);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.612 0.208 35.936);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.427 0.082 284.617);
--chart-1: oklch(0.427 0.082 284.617);
--chart-2: oklch(0.565 0.071 110.935);
--chart-3: oklch(0.565 0.071 110.935);
--chart-4: oklch(0.597 0.076 110.95);
--chart-5: oklch(0.42 0.092 283.977);
}