Shrill is a shadcn/ui theme built around a deep blue primary color (#0e152f) with deep green accents (#152f0e). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the deep blue primary (#0e152f) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8fdghostwhite | #030407black |
| Foreground | #040711black | #f5f6fawhitesmoke |
| Card | #f3f5fcaliceblue | #05060ablack |
| Card foreground | #03050dblack | #f8f9fcghostwhite |
| Popover | #f7f8fdghostwhite | #030407black |
| Popover foreground | #040711black | #f5f6fawhitesmoke |
| Primary | #0e152fblack | #0e152fblack |
| Primary foreground | #91a2delightsteelblue | #91a2delightsteelblue |
| Secondary | #2f0e15black | #2f0e15black |
| Secondary foreground | #de91a2palevioletred | #de91a2palevioletred |
| Muted | #ebd5dagainsboro | #2a1418black |
| Muted foreground | #4b3a3ddarkslategray | #c5b4b8silver |
| Accent | #152f0eblack | #152f0eblack |
| Accent foreground | #5fc743limegreen | #5fc743limegreen |
| Destructive | #952b0esaddlebrown | #ee6944tomato |
| Destructive foreground | #fce1damistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0e152fblack | #0e152fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.00:1 | AAA |
| Text on card | 18.67:1 | AAA |
| Primary button | 7.20:1 | AAA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 6.72:1 | AA |
| Destructive | 6.41:1 | AA |
| Text on background | 18.97:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 7.20:1 | AAA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 8.77:1 | AAA |
| Accent | 6.72:1 | AA |
| Destructive | 6.72:1 | AA |
Paste this into your globals.css to use Shrill in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 273.795);
--foreground: oklch(0.128 0.025 266.452);
--muted: oklch(0.894 0.025 2.832);
--muted-foreground: oklch(0.367 0.025 3.891);
--popover: oklch(0.98 0.006 273.795);
--popover-foreground: oklch(0.128 0.025 266.452);
--card: oklch(0.97 0.009 273.757);
--card-foreground: oklch(0.115 0.021 265.515);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.206 0.052 269.713);
--primary-foreground: oklch(0.721 0.09 272.079);
--secondary: oklch(0.221 0.055 9.294);
--secondary-foreground: oklch(0.739 0.095 5.526);
--accent: oklch(0.276 0.065 139.35);
--accent-foreground: oklch(0.74 0.195 139.587);
--destructive: oklch(0.451 0.147 35.192);
--destructive-foreground: oklch(0.929 0.031 35.945);
--ring: oklch(0.206 0.052 269.713);
--chart-1: oklch(0.206 0.052 269.713);
--chart-2: oklch(0.221 0.055 9.294);
--chart-3: oklch(0.276 0.065 139.35);
--chart-4: oklch(0.251 0.066 9.886);
--chart-5: oklch(0.205 0.055 269.408);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.01 269.621);
--foreground: oklch(0.973 0.006 273.795);
--muted: oklch(0.223 0.037 6.565);
--muted-foreground: oklch(0.786 0.02 2.77);
--popover: oklch(0.108 0.01 269.621);
--popover-foreground: oklch(0.973 0.006 273.795);
--card: oklch(0.123 0.012 269.63);
--card-foreground: oklch(0.982 0.004 273.819);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.206 0.052 269.713);
--primary-foreground: oklch(0.721 0.09 272.079);
--secondary: oklch(0.221 0.055 9.294);
--secondary-foreground: oklch(0.739 0.095 5.526);
--accent: oklch(0.276 0.065 139.35);
--accent-foreground: oklch(0.74 0.195 139.587);
--destructive: oklch(0.678 0.172 36.316);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.206 0.052 269.713);
--chart-1: oklch(0.206 0.052 269.713);
--chart-2: oklch(0.221 0.055 9.294);
--chart-3: oklch(0.276 0.065 139.35);
--chart-4: oklch(0.251 0.066 9.886);
--chart-5: oklch(0.205 0.055 269.408);
}