Watchful is a shadcn/ui theme built around a deep cyan primary color (#25646a) with near-white accents (#e7e9e9). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the deep cyan primary (#25646a) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #010304black |
| Foreground | #020808black | #f5f9f9whitesmoke |
| Card | #f8fbfcghostwhite | #030707black |
| Card foreground | #010404black | #f9fbfbghostwhite |
| Popover | #f8fbfcghostwhite | #030707black |
| Popover foreground | #010404black | #f9fbfbghostwhite |
| Primary | #25646adarkslategray | #25646adarkslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e7e9e9lavender | #162122black |
| Secondary foreground | #4d5151darkslategray | #a6c1c4silver |
| Muted | #ecf3f3whitesmoke | #0c1213black |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #e7e9e9lavender | #162122black |
| Accent foreground | #4d5151darkslategray | #a6c1c4silver |
| Destructive | #ba3b0dfirebrick | #f16532tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #25646adarkslategray | #25646adarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 6.58:1 | AA |
| Muted text | 5.33:1 | AA |
| Accent | 6.58:1 | AA |
| Destructive | 5.64:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 8.68:1 | AAA |
| Muted text | 6.87:1 | AA |
| Accent | 8.68:1 | AAA |
| Destructive | 6.63:1 | AA |
Paste this into your globals.css to use Watchful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 203.565);
--foreground: oklch(0.124 0.015 200.847);
--muted: oklch(0.958 0.007 203.518);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(0.987 0.003 203.548);
--popover-foreground: oklch(0.099 0.012 200.847);
--card: oklch(0.987 0.003 203.548);
--card-foreground: oklch(0.099 0.012 200.847);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.465 0.064 203.55);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.932 0.001 203.568);
--secondary-foreground: oklch(0.431 0.006 203.464);
--accent: oklch(0.932 0.001 203.568);
--accent-foreground: oklch(0.431 0.006 203.464);
--destructive: oklch(0.533 0.171 37.21);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.465 0.064 203.55);
--chart-1: oklch(0.465 0.064 203.55);
--chart-2: oklch(0.932 0.001 203.568);
--chart-3: oklch(0.932 0.001 203.568);
--chart-4: oklch(0.955 0.001 203.572);
--chart-5: oklch(0.47 0.066 203.649);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.008 201.573);
--foreground: oklch(0.979 0.004 203.546);
--muted: oklch(0.176 0.01 203.192);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0.122 0.01 201.573);
--popover-foreground: oklch(0.986 0.003 203.558);
--card: oklch(0.122 0.01 201.573);
--card-foreground: oklch(0.986 0.003 203.558);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.465 0.064 203.55);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.237 0.015 203.161);
--secondary-foreground: oklch(0.793 0.03 203.284);
--accent: oklch(0.237 0.015 203.161);
--accent-foreground: oklch(0.793 0.03 203.284);
--destructive: oklch(0.675 0.184 39.21);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.465 0.064 203.55);
--chart-1: oklch(0.465 0.064 203.55);
--chart-2: oklch(0.237 0.015 203.161);
--chart-3: oklch(0.237 0.015 203.161);
--chart-4: oklch(0.272 0.018 203.148);
--chart-5: oklch(0.47 0.066 203.649);
}