Cantaloupe is a shadcn/ui theme built around a vivid light blue primary color (#dbdffa) with vivid light violet accents (#e6dbfa). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid light blue primary (#dbdffa) on a blue-tinted background (#06070e).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #06070eblack |
| Foreground | #03040cblack | #ffffffwhite |
| Card | #f8f8fcghostwhite | #06070eblack |
| Card foreground | #03040cblack | #ffffffwhite |
| Popover | #f8f8fcghostwhite | #06070eblack |
| Popover foreground | #03040cblack | #ffffffwhite |
| Primary | #dbdffalavender | #dbdffalavender |
| Primary foreground | #142490midnightblue | #142490midnightblue |
| Secondary | #dbeffalavender | #dbeffalavender |
| Secondary foreground | #072536midnightblue | #072536midnightblue |
| Muted | #e7eff3lavender | #0c1318black |
| Muted foreground | #40494fdarkslategray | #b0babfsilver |
| Accent | #e6dbfalavender | #e6dbfalavender |
| Accent foreground | #411490indigo | #411490indigo |
| Destructive | #b4100efirebrick | #f03b38crimson |
| Destructive foreground | #fef6f6snow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dbdffalavender | #dbdffalavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 9.48:1 | AAA |
| Secondary button | 13.34:1 | AAA |
| Muted text | 7.88:1 | AAA |
| Accent | 9.20:1 | AAA |
| Destructive | 6.51:1 | AA |
| Text on background | 20.08:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 9.48:1 | AAA |
| Secondary button | 13.34:1 | AAA |
| Muted text | 9.44:1 | AAA |
| Accent | 9.20:1 | AAA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Cantaloupe in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.005 279.259);
--foreground: oklch(0.112 0.023 272.23);
--muted: oklch(0.947 0.01 232.728);
--muted-foreground: oklch(0.4 0.015 233.14);
--popover: oklch(0.98 0.005 279.259);
--popover-foreground: oklch(0.112 0.023 272.23);
--card: oklch(0.98 0.005 279.259);
--card-foreground: oklch(0.112 0.023 272.23);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.909 0.037 278.697);
--primary-foreground: oklch(0.339 0.174 267.397);
--secondary: oklch(0.94 0.026 232.988);
--secondary-foreground: oklch(0.251 0.047 238.282);
--accent: oklch(0.91 0.043 302.2);
--accent-foreground: oklch(0.353 0.18 290.193);
--destructive: oklch(0.49 0.193 28.757);
--destructive-foreground: oklch(0.979 0.009 18.507);
--ring: oklch(0.909 0.037 278.697);
--chart-1: oklch(0.909 0.037 278.697);
--chart-2: oklch(0.94 0.026 232.988);
--chart-3: oklch(0.91 0.043 302.2);
--chart-4: oklch(0.963 0.016 232.822);
--chart-5: oklch(0.908 0.038 278.669);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.017 275.698);
--foreground: oklch(1 0 180);
--muted: oklch(0.183 0.014 233.976);
--muted-foreground: oklch(0.782 0.013 232.81);
--popover: oklch(0.132 0.017 275.698);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.132 0.017 275.698);
--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.909 0.037 278.697);
--primary-foreground: oklch(0.339 0.174 267.397);
--secondary: oklch(0.94 0.026 232.988);
--secondary-foreground: oklch(0.251 0.047 238.282);
--accent: oklch(0.91 0.043 302.2);
--accent-foreground: oklch(0.353 0.18 290.193);
--destructive: oklch(0.629 0.218 26.848);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.909 0.037 278.697);
--chart-1: oklch(0.909 0.037 278.697);
--chart-2: oklch(0.94 0.026 232.988);
--chart-3: oklch(0.91 0.043 302.2);
--chart-4: oklch(0.963 0.016 232.822);
--chart-5: oklch(0.908 0.038 278.669);
}