Calm is a shadcn/ui theme built around an orange primary color (#d29c5b) with violet accents (#9c5bd2). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the orange primary (#d29c5b) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #040301black |
| Foreground | #040301black | #fafaf9snow |
| Card | #fcfaf8snow | #080503black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fcfaf8snow | #080503black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #d29c5bsandybrown | #d29c5bsandybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #5bd29cmediumaquamarine | #5bd29cmediumaquamarine |
| Secondary foreground | #000000black | #000000black |
| Muted | #f0f4f2whitesmoke | #0b0f0dblack |
| Muted foreground | #4e5f58dimgray | #a0b1a9darkgray |
| Accent | #9c5bd2mediumpurple | #9c5bd2mediumpurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9d120bdarkred | #ef2015red |
| Destructive foreground | #fddfdemistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d29c5bsandybrown | #d29c5bsandybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 8.67:1 | AAA |
| Secondary button | 11.14:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 4.33:1 | AA Large |
| Destructive | 6.62:1 | AA |
| Text on background | 19.76:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 8.67:1 | AAA |
| Secondary button | 11.14:1 | AAA |
| Muted text | 8.60:1 | AAA |
| Accent | 4.33:1 | AA Large |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use Calm in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 73.208);
--foreground: oklch(0.096 0.012 81.718);
--muted: oklch(0.964 0.005 167.67);
--muted-foreground: oklch(0.47 0.025 166.275);
--popover: oklch(0.986 0.003 73.196);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.003 73.196);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.731 0.105 70.475);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.781 0.134 161.391);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.598 0.182 307.145);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.445 0.172 29.327);
--destructive-foreground: oklch(0.928 0.033 21.362);
--ring: oklch(0.731 0.105 70.475);
--chart-1: oklch(0.731 0.105 70.475);
--chart-2: oklch(0.781 0.134 161.391);
--chart-3: oklch(0.598 0.182 307.145);
--chart-4: oklch(0.795 0.125 162.111);
--chart-5: oklch(0.735 0.109 70.212);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.009 79.638);
--foreground: oklch(0.985 0.001 73.212);
--muted: oklch(0.162 0.008 166.451);
--muted-foreground: oklch(0.745 0.022 166.963);
--popover: oklch(0.12 0.011 79.638);
--popover-foreground: oklch(0.993 0 73.215);
--card: oklch(0.12 0.011 79.638);
--card-foreground: oklch(0.993 0 73.215);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.731 0.105 70.475);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.781 0.134 161.391);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.598 0.182 307.145);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.607 0.236 29.358);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.731 0.105 70.475);
--chart-1: oklch(0.731 0.105 70.475);
--chart-2: oklch(0.781 0.134 161.391);
--chart-3: oklch(0.598 0.182 307.145);
--chart-4: oklch(0.795 0.125 162.111);
--chart-5: oklch(0.735 0.109 70.212);
}