Cello is a shadcn/ui theme built around a muted deep blue primary color (#0e1011) with muted blue accents (#b4c2cb). The light mode uses a neutral background (#f7fafc). Dark mode keeps the muted deep blue primary (#0e1011) on a neutral background (#030607).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fafcghostwhite | #030607black |
| Foreground | #020608black | #fcfdfdwhite |
| Card | #f7fafcghostwhite | #030607black |
| Card foreground | #020608black | #fcfdfdwhite |
| Popover | #f7fafcghostwhite | #030607black |
| Popover foreground | #020608black | #fcfdfdwhite |
| Primary | #0e1011black | #0e1011black |
| Primary foreground | #a0aab0darkgray | #a0aab0darkgray |
| Secondary | #cdd2d5lightgrey | #161718black |
| Secondary foreground | #33393ddarkslategray | #adb1b3darkgray |
| Muted | #d6e3eagainsboro | #152129black |
| Muted foreground | #55646ddimgray | #92a1aadarkgray |
| Accent | #b4c2cbsilver | #1f2528darkslategray |
| Accent foreground | #1f282ddarkslategray | #b4bfc5silver |
| Destructive | #640c02maroon | #fa1e05red |
| Destructive foreground | #fda59blightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0e1011black | #0e1011black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 4.67:1 | AA |
| Accent | 8.21:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 19.98:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.29:1 | AAA |
| Muted text | 6.17:1 | AA |
| Accent | 8.28:1 | AAA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Cello in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.004 234.565);
--foreground: oklch(0.115 0.012 227.829);
--muted: oklch(0.908 0.017 234.781);
--muted-foreground: oklch(0.493 0.023 235.227);
--popover: oklch(0.985 0.004 234.565);
--popover-foreground: oklch(0.115 0.012 227.829);
--card: oklch(0.985 0.004 234.565);
--card-foreground: oklch(0.115 0.012 227.829);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.17 0.004 234.813);
--primary-foreground: oklch(0.733 0.014 234.784);
--secondary: oklch(0.861 0.007 234.625);
--secondary-foreground: oklch(0.341 0.011 234.986);
--accent: oklch(0.806 0.02 234.874);
--accent-foreground: oklch(0.27 0.016 235.437);
--destructive: oklch(0.324 0.122 31.256);
--destructive-foreground: oklch(0.806 0.106 26.587);
--ring: oklch(0.17 0.004 234.813);
--chart-1: oklch(0.17 0.004 234.813);
--chart-2: oklch(0.861 0.007 234.625);
--chart-3: oklch(0.806 0.02 234.874);
--chart-4: oklch(0.884 0.006 234.601);
--chart-5: oklch(0.17 0.005 234.92);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.009 229.301);
--foreground: oklch(0.992 0.001 234.519);
--muted: oklch(0.24 0.023 236.286);
--muted-foreground: oklch(0.7 0.021 234.955);
--popover: oklch(0.116 0.009 229.301);
--popover-foreground: oklch(0.992 0.001 234.519);
--card: oklch(0.116 0.009 229.301);
--card-foreground: oklch(0.992 0.001 234.519);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.17 0.004 234.813);
--primary-foreground: oklch(0.733 0.014 234.784);
--secondary: oklch(0.204 0.002 234.666);
--secondary-foreground: oklch(0.757 0.006 234.612);
--accent: oklch(0.259 0.011 235.141);
--accent-foreground: oklch(0.797 0.015 234.783);
--destructive: oklch(0.626 0.247 30.281);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.17 0.004 234.813);
--chart-1: oklch(0.17 0.004 234.813);
--chart-2: oklch(0.204 0.002 234.666);
--chart-3: oklch(0.259 0.011 235.141);
--chart-4: oklch(0.238 0.003 234.683);
--chart-5: oklch(0.17 0.005 234.92);
}