Cautious is a shadcn/ui theme built around a vivid yellow primary color (#f3ce16) with vivid purple accents (#ce16f3). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the vivid yellow primary (#f3ce16) on a yellow-tinted background (#100e04).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #100e04black |
| Foreground | #0b0a04black | #fdfdfbsnow |
| Card | #fbfaf4floralwhite | #141206black |
| Card foreground | #080703black | #ffffffwhite |
| Popover | #fbfaf4floralwhite | #141206black |
| Popover foreground | #080703black | #ffffffwhite |
| Primary | #f3ce16gold | #f3ce16gold |
| Primary foreground | #3a3103black | #3a3103black |
| Secondary | #16f3cedarkturquoise | #16f3cedarkturquoise |
| Secondary foreground | #033a31darkslategray | #033a31darkslategray |
| Muted | #cbe6e2gainsboro | #19342fdarkslategray |
| Muted foreground | #505353darkslategray | #acafaedarkgray |
| Accent | #ce16f3magenta | #ce16f3magenta |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6d0703maroon | #f8312acrimson |
| Destructive foreground | #fca9a6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f3ce16gold | #f3ce16gold |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 8.42:1 | AAA |
| Secondary button | 8.90:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 4.17:1 | AA Large |
| Destructive | 6.76:1 | AA |
| Text on background | 18.97:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 8.42:1 | AAA |
| Secondary button | 8.90:1 | AAA |
| Muted text | 6.06:1 | AA |
| Accent | 4.17:1 | AA Large |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Cautious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 97.332);
--foreground: oklch(0.145 0.016 100.456);
--muted: oklch(0.904 0.029 184.597);
--muted-foreground: oklch(0.44 0.004 185.193);
--popover: oklch(0.984 0.008 97.368);
--popover-foreground: oklch(0.126 0.014 100.796);
--card: oklch(0.984 0.008 97.368);
--card-foreground: oklch(0.126 0.014 100.796);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.858 0.173 95.668);
--primary-foreground: oklch(0.314 0.062 97.106);
--secondary: oklch(0.862 0.159 176.198);
--secondary-foreground: oklch(0.313 0.056 177.843);
--accent: oklch(0.626 0.293 319.352);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.34 0.133 29.415);
--destructive-foreground: oklch(0.815 0.099 21.635);
--ring: oklch(0.858 0.173 95.668);
--chart-1: oklch(0.858 0.173 95.668);
--chart-2: oklch(0.862 0.159 176.198);
--chart-3: oklch(0.626 0.293 319.352);
--chart-4: oklch(0.866 0.156 177.088);
--chart-5: oklch(0.866 0.175 95.434);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.163 0.021 99.532);
--foreground: oklch(0.994 0.002 97.289);
--muted: oklch(0.301 0.034 181.955);
--muted-foreground: oklch(0.751 0.004 185.318);
--popover: oklch(0.179 0.023 98.901);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.179 0.023 98.901);
--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.858 0.173 95.668);
--primary-foreground: oklch(0.314 0.062 97.106);
--secondary: oklch(0.862 0.159 176.198);
--secondary-foreground: oklch(0.313 0.056 177.843);
--accent: oklch(0.626 0.293 319.352);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.635 0.233 28.281);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.858 0.173 95.668);
--chart-1: oklch(0.858 0.173 95.668);
--chart-2: oklch(0.862 0.159 176.198);
--chart-3: oklch(0.626 0.293 319.352);
--chart-4: oklch(0.866 0.156 177.088);
--chart-5: oklch(0.866 0.175 95.434);
}