Canvas is a shadcn/ui theme built around a teal primary color (#88ddd7) with red accents (#dd888e). The light mode uses a neutral background (#fbfefe). Dark mode keeps the teal primary (#88ddd7) on a teal-tinted background (#050b0a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #050b0ablack |
| Foreground | #000000black | #f9fbfamintcream |
| Card | #f7fdfcmintcream | #060e0eblack |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #f7fdfcmintcream | #060e0eblack |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #88ddd7skyblue | #88ddd7skyblue |
| Primary foreground | #0b2826black | #0b2826black |
| Secondary | #dd888epalevioletred | #dd888epalevioletred |
| Secondary foreground | #280b0dblack | #280b0dblack |
| Muted | #e8e3e3gainsboro | #1c1717black |
| Muted foreground | #605c5ddimgray | #a39f9fdarkgray |
| Accent | #dd888epalevioletred | #dd888epalevioletred |
| Accent foreground | #280b0dblack | #280b0dblack |
| Destructive | #770503maroon | #f90f0bred |
| Destructive foreground | #fdb1aflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #88ddd7skyblue | #88ddd7skyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.68:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 9.90:1 | AAA |
| Secondary button | 6.99:1 | AA |
| Muted text | 5.18:1 | AA |
| Accent | 6.99:1 | AA |
| Destructive | 6.66:1 | AA |
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 9.90:1 | AAA |
| Secondary button | 6.99:1 | AA |
| Muted text | 6.77:1 | AA |
| Accent | 6.99:1 | AA |
| Destructive | 4.12:1 | AA Large |
Paste this into your globals.css to use Canvas in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 192.367);
--foreground: oklch(0 0 0);
--muted: oklch(0.919 0.006 12.566);
--muted-foreground: oklch(0.48 0.005 12.638);
--popover: oklch(0.989 0.006 192.306);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.006 192.306);
--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.841 0.082 190.283);
--primary-foreground: oklch(0.253 0.034 189.274);
--secondary: oklch(0.717 0.103 15.667);
--secondary-foreground: oklch(0.199 0.047 18.367);
--accent: oklch(0.717 0.103 15.667);
--accent-foreground: oklch(0.199 0.047 18.367);
--destructive: oklch(0.361 0.144 29.154);
--destructive-foreground: oklch(0.831 0.09 20.238);
--ring: oklch(0.841 0.082 190.283);
--chart-1: oklch(0.841 0.082 190.283);
--chart-2: oklch(0.717 0.103 15.667);
--chart-3: oklch(0.717 0.103 15.667);
--chart-4: oklch(0.744 0.092 15.152);
--chart-5: oklch(0.846 0.086 190.187);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.011 191.618);
--foreground: oklch(0.986 0.001 192.399);
--muted: oklch(0.21 0.009 13.335);
--muted-foreground: oklch(0.705 0.004 12.557);
--popover: oklch(0.156 0.013 190.988);
--popover-foreground: oklch(0.993 0.001 192.413);
--card: oklch(0.156 0.013 190.988);
--card-foreground: oklch(0.993 0.001 192.413);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.841 0.082 190.283);
--primary-foreground: oklch(0.253 0.034 189.274);
--secondary: oklch(0.717 0.103 15.667);
--secondary-foreground: oklch(0.199 0.047 18.367);
--accent: oklch(0.717 0.103 15.667);
--accent-foreground: oklch(0.199 0.047 18.367);
--destructive: oklch(0.619 0.25 29.092);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.841 0.082 190.283);
--chart-1: oklch(0.841 0.082 190.283);
--chart-2: oklch(0.717 0.103 15.667);
--chart-3: oklch(0.717 0.103 15.667);
--chart-4: oklch(0.744 0.092 15.152);
--chart-5: oklch(0.846 0.086 190.187);
}