Watchful is a shadcn/ui theme built around a deep indigo primary color (#15104c) with muted light indigo accents (#d3d2df). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#15104c) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020203black |
| Foreground | #04030cblack | #fcfcfdwhite |
| Card | #fcfcfcsnow | #040307black |
| Card foreground | #030208black | #ffffffwhite |
| Popover | #ffffffwhite | #020203black |
| Popover foreground | #04030cblack | #fcfcfdwhite |
| Primary | #15104cmidnightblue | #15104cmidnightblue |
| Primary foreground | #a8a2eclightsteelblue | #a8a2eclightsteelblue |
| Secondary | #d3d2dflightgrey | #252527darkslategray |
| Secondary foreground | #37354bdarkslategray | #bebdc1silver |
| Muted | #d1cfe2lightgrey | #1e1d30darkslategray |
| Muted foreground | #46454adarkslategray | #b6b5basilver |
| Accent | #d3d2dflightgrey | #252527darkslategray |
| Accent foreground | #37354bdarkslategray | #bebdc1silver |
| Destructive | #99330bsaddlebrown | #db490fchocolate |
| Destructive foreground | #fce3d9antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #15104cmidnightblue | #15104cmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.51:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 6.22:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 6.06:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.53:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 8.10:1 | AAA |
| Accent | 8.17:1 | AAA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Watchful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.108 0.026 286.839);
--muted: oklch(0.862 0.026 289.666);
--muted-foreground: oklch(0.393 0.007 289.903);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.108 0.026 286.839);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.095 0.022 286.955);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.229 0.106 277.617);
--primary-foreground: oklch(0.745 0.106 287.351);
--secondary: oklch(0.869 0.018 289.859);
--secondary-foreground: oklch(0.34 0.038 288.03);
--accent: oklch(0.869 0.018 289.859);
--accent-foreground: oklch(0.34 0.038 288.03);
--destructive: oklch(0.465 0.144 38.486);
--destructive-foreground: oklch(0.934 0.031 42.863);
--ring: oklch(0.229 0.106 277.617);
--chart-1: oklch(0.229 0.106 277.617);
--chart-2: oklch(0.869 0.018 289.859);
--chart-3: oklch(0.869 0.018 289.859);
--chart-4: oklch(0.896 0.014 289.949);
--chart-5: oklch(0.227 0.11 276.762);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.009 288.86);
--foreground: oklch(0.99 0.002 290.204);
--muted: oklch(0.241 0.036 287.163);
--muted-foreground: oklch(0.776 0.006 290.101);
--popover: oklch(0.084 0.009 288.86);
--popover-foreground: oklch(0.99 0.002 290.204);
--card: oklch(0.105 0.011 288.86);
--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.229 0.106 277.617);
--primary-foreground: oklch(0.745 0.106 287.351);
--secondary: oklch(0.266 0.004 289.947);
--secondary-foreground: oklch(0.801 0.005 290.121);
--accent: oklch(0.266 0.004 289.947);
--accent-foreground: oklch(0.801 0.005 290.121);
--destructive: oklch(0.605 0.192 37.943);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.229 0.106 277.617);
--chart-1: oklch(0.229 0.106 277.617);
--chart-2: oklch(0.266 0.004 289.947);
--chart-3: oklch(0.266 0.004 289.947);
--chart-4: oklch(0.297 0.005 289.932);
--chart-5: oklch(0.227 0.11 276.762);
}