Calm is a shadcn/ui theme built around a deep teal primary color (#10322a) with muted light teal accents (#d0ddd9). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#10322a) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030706black |
| Foreground | #030806black | #f9fbfbghostwhite |
| Card | #ffffffwhite | #030706black |
| Card foreground | #030806black | #f9fbfbghostwhite |
| Popover | #ffffffwhite | #030706black |
| Popover foreground | #030806black | #f9fbfbghostwhite |
| Primary | #10322adarkslategray | #10322adarkslategray |
| Primary foreground | #4ac4a6mediumaquamarine | #4ac4a6mediumaquamarine |
| Secondary | #e1e5e4gainsboro | #262726darkslategray |
| Secondary foreground | #454f4ddarkslategray | #bfc0c0silver |
| Muted | #eff1f0whitesmoke | #0e1010black |
| Muted foreground | #49504edarkslategray | #afb6b4darkgray |
| Accent | #d0ddd9lightgrey | #35413edarkslategray |
| Accent foreground | #334742darkslategray | #cfd8d6lightgrey |
| Destructive | #cf1002firebrick | #e81202red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #10322adarkslategray | #10322adarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 6.66:1 | AA |
| Muted text | 7.27:1 | AAA |
| Accent | 7.06:1 | AAA |
| Destructive | 5.63:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 9.22:1 | AAA |
| Accent | 7.35:1 | AAA |
| Destructive | 4.64:1 | AA |
Paste this into your globals.css to use Calm in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.013 179.909);
--muted: oklch(0.956 0.002 179.795);
--muted-foreground: oklch(0.425 0.01 179.16);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.013 179.909);
--card: oklch(1 0 180);
--card-foreground: oklch(0.124 0.013 179.909);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.289 0.042 174.185);
--primary-foreground: oklch(0.745 0.118 173.409);
--secondary: oklch(0.918 0.004 179.729);
--secondary-foreground: oklch(0.418 0.014 178.887);
--accent: oklch(0.886 0.015 179.386);
--accent-foreground: oklch(0.38 0.026 177.733);
--destructive: oklch(0.541 0.216 29.868);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.289 0.042 174.185);
--chart-1: oklch(0.289 0.042 174.185);
--chart-2: oklch(0.918 0.004 179.729);
--chart-3: oklch(0.886 0.015 179.386);
--chart-4: oklch(0.941 0.003 179.769);
--chart-5: oklch(0.292 0.044 173.866);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.01 179.899);
--foreground: oklch(0.987 0.003 179.778);
--muted: oklch(0.172 0.004 179.255);
--muted-foreground: oklch(0.771 0.009 179.532);
--popover: oklch(0.122 0.01 179.899);
--popover-foreground: oklch(0.987 0.003 179.778);
--card: oklch(0.122 0.01 179.899);
--card-foreground: oklch(0.987 0.003 179.778);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.289 0.042 174.185);
--primary-foreground: oklch(0.745 0.118 173.409);
--secondary: oklch(0.27 0.001 179.743);
--secondary-foreground: oklch(0.806 0.001 179.813);
--accent: oklch(0.362 0.016 178.53);
--accent-foreground: oklch(0.875 0.01 179.543);
--destructive: oklch(0.589 0.236 29.807);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.289 0.042 174.185);
--chart-1: oklch(0.289 0.042 174.185);
--chart-2: oklch(0.27 0.001 179.743);
--chart-3: oklch(0.362 0.016 178.53);
--chart-4: oklch(0.302 0.001 179.737);
--chart-5: oklch(0.292 0.044 173.866);
}