Till is a shadcn/ui theme built around a muted blue primary color (#47495c) with muted violet accents (#4f475c). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the muted blue primary (#47495c) on a blue-tinted background (#04050b).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8fdghostwhite | #04050bblack |
| Foreground | #010104black | #f5f5fawhitesmoke |
| Card | #f3f4fbwhitesmoke | #06070fblack |
| Card foreground | #000000black | #f8f9fcghostwhite |
| Popover | #f7f8fdghostwhite | #04050bblack |
| Popover foreground | #010104black | #f5f5fawhitesmoke |
| Primary | #47495cdarkslategray | #47495cdarkslategray |
| Primary foreground | #e8e9edlavender | #e8e9edlavender |
| Secondary | #47545cdarkslategray | #47545cdarkslategray |
| Secondary foreground | #e8ebedlavender | #e8ebedlavender |
| Muted | #d4dde3gainsboro | #1c252bdarkslategray |
| Muted foreground | #646668dimgray | #97999bdarkgray |
| Accent | #4f475cdarkslategray | #4f475cdarkslategray |
| Accent foreground | #eae8edlavender | #eae8edlavender |
| Destructive | #c32e09firebrick | #f4461aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #47495cdarkslategray | #47495cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 6.51:1 | AA |
| Muted text | 4.18:1 | AA Large |
| Accent | 7.22:1 | AAA |
| Destructive | 5.65:1 | AA |
| Text on background | 18.71:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 6.51:1 | AA |
| Muted text | 5.41:1 | AA |
| Accent | 7.22:1 | AAA |
| Destructive | 3.65:1 | AA Large |
Paste this into your globals.css to use Till in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.006 280.227);
--foreground: oklch(0.074 0.019 271.101);
--muted: oklch(0.892 0.013 234.713);
--muted-foreground: oklch(0.51 0.004 234.619);
--popover: oklch(0.979 0.006 280.227);
--popover-foreground: oklch(0.074 0.019 271.101);
--card: oklch(0.969 0.01 280.172);
--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.412 0.031 279.026);
--primary-foreground: oklch(0.934 0.006 280.224);
--secondary: oklch(0.438 0.021 235.274);
--secondary-foreground: oklch(0.939 0.004 234.574);
--accent: oklch(0.414 0.036 302.336);
--accent-foreground: oklch(0.934 0.007 303.522);
--destructive: oklch(0.536 0.19 33.56);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.412 0.031 279.026);
--chart-1: oklch(0.412 0.031 279.026);
--chart-2: oklch(0.438 0.021 235.274);
--chart-3: oklch(0.414 0.036 302.336);
--chart-4: oklch(0.466 0.023 235.285);
--chart-5: oklch(0.407 0.039 278.659);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.016 275.962);
--foreground: oklch(0.972 0.006 280.229);
--muted: oklch(0.26 0.017 235.594);
--muted-foreground: oklch(0.683 0.004 234.584);
--popover: oklch(0.118 0.016 275.962);
--popover-foreground: oklch(0.972 0.006 280.229);
--card: oklch(0.13 0.019 276.239);
--card-foreground: oklch(0.981 0.004 280.263);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.412 0.031 279.026);
--primary-foreground: oklch(0.934 0.006 280.224);
--secondary: oklch(0.438 0.021 235.274);
--secondary-foreground: oklch(0.939 0.004 234.574);
--accent: oklch(0.414 0.036 302.336);
--accent-foreground: oklch(0.934 0.007 303.522);
--destructive: oklch(0.643 0.217 34.195);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.412 0.031 279.026);
--chart-1: oklch(0.412 0.031 279.026);
--chart-2: oklch(0.438 0.021 235.274);
--chart-3: oklch(0.414 0.036 302.336);
--chart-4: oklch(0.466 0.023 235.285);
--chart-5: oklch(0.407 0.039 278.659);
}