Cautious is a shadcn/ui theme built around a blue primary color (#4376ad) with indigo accents (#4543ad). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#4376ad) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020303black |
| Foreground | #030a11black | #ffffffwhite |
| Card | #fcfcfcsnow | #030507black |
| Card foreground | #02070dblack | #ffffffwhite |
| Popover | #ffffffwhite | #020303black |
| Popover foreground | #030a11black | #ffffffwhite |
| Primary | #4376adsteelblue | #4376adsteelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #43abadcadetblue | #43abadcadetblue |
| Secondary foreground | #0a191ablack | #0a191ablack |
| Muted | #e1efeflavender | #101e1eblack |
| Muted foreground | #485656darkslategray | #a9b7b7darkgray |
| Accent | #4543addarkslateblue | #4543addarkslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #81320esaddlebrown | #e76123chocolate |
| Destructive foreground | #f9d7c8bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4376adsteelblue | #4376adsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 4.73:1 | AA |
| Secondary button | 6.55:1 | AA |
| Muted text | 6.49:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 6.50:1 | AA |
| Text on background | 20.69:1 | AAA |
| Text on card | 20.40:1 | AAA |
| Primary button | 4.73:1 | AA |
| Secondary button | 6.55:1 | AA |
| Muted text | 8.27:1 | AAA |
| Accent | 7.90:1 | AAA |
| Destructive | 6.10:1 | AA |
Paste this into your globals.css to use Cautious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.14 0.021 244.196);
--muted: oklch(0.942 0.015 198.122);
--muted-foreground: oklch(0.441 0.018 197.794);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.14 0.021 244.196);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.127 0.018 240.746);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.555 0.102 251.537);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.682 0.094 196.74);
--secondary-foreground: oklch(0.202 0.021 197.021);
--accent: oklch(0.449 0.164 278.262);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.424 0.117 41.886);
--destructive-foreground: oklch(0.904 0.043 46.381);
--ring: oklch(0.555 0.102 251.537);
--chart-1: oklch(0.555 0.102 251.537);
--chart-2: oklch(0.682 0.094 196.74);
--chart-3: oklch(0.449 0.164 278.262);
--chart-4: oklch(0.714 0.099 196.738);
--chart-5: oklch(0.555 0.108 251.731);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.09 0.006 244.829);
--foreground: oklch(1 0 180);
--muted: oklch(0.222 0.02 197.18);
--muted-foreground: oklch(0.768 0.016 198.064);
--popover: oklch(0.09 0.006 244.829);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.113 0.008 244.829);
--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.555 0.102 251.537);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.682 0.094 196.74);
--secondary-foreground: oklch(0.202 0.021 197.021);
--accent: oklch(0.449 0.164 278.262);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.653 0.181 41.9);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.555 0.102 251.537);
--chart-1: oklch(0.555 0.102 251.537);
--chart-2: oklch(0.682 0.094 196.74);
--chart-3: oklch(0.449 0.164 278.262);
--chart-4: oklch(0.714 0.099 196.738);
--chart-5: oklch(0.555 0.108 251.731);
}