Ukulele is a shadcn/ui theme built around a neutral gray primary color (#a9afb2) with neutral gray accents (#a9aab2). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#a9afb2) on a cyan-tinted background (#03090c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #03090cblack |
| Foreground | #060f13black | #f6f8f9whitesmoke |
| Card | #fcfcfcsnow | #040c10black |
| Card foreground | #050c10black | #f9fafbghostwhite |
| Popover | #fcfcfcsnow | #040c10black |
| Popover foreground | #050c10black | #f9fafbghostwhite |
| Primary | #a9afb2darkgray | #a9afb2darkgray |
| Primary foreground | #131516black | #131516black |
| Secondary | #a9b2b1darkgray | #a9b2b1darkgray |
| Secondary foreground | #131615black | #131615black |
| Muted | #e7eeedlavender | #111817black |
| Muted foreground | #4e5f5cdimgray | #a0b1aedarkgray |
| Accent | #a9aab2darkgray | #a9aab2darkgray |
| Accent foreground | #131416black | #131416black |
| Destructive | #9e1500darkred | #ff2200red |
| Destructive foreground | #ffd7d1bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a9afb2darkgray | #a9afb2darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 8.40:1 | AAA |
| Muted text | 5.73:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.19:1 | AA |
| Text on background | 18.77:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 8.40:1 | AAA |
| Muted text | 8.05:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Ukulele in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.162 0.017 227.465);
--muted: oklch(0.944 0.008 184.084);
--muted-foreground: oklch(0.471 0.022 183.022);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.148 0.015 225.41);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.148 0.015 225.41);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.75 0.009 227.003);
--primary-foreground: oklch(0.194 0.003 227.058);
--secondary: oklch(0.756 0.011 183.911);
--secondary-foreground: oklch(0.196 0.004 183.768);
--accent: oklch(0.74 0.012 275.957);
--accent-foreground: oklch(0.19 0.004 275.877);
--destructive: oklch(0.448 0.172 31.469);
--destructive-foreground: oklch(0.912 0.046 28.269);
--ring: oklch(0.75 0.009 227.003);
--chart-1: oklch(0.75 0.009 227.003);
--chart-2: oklch(0.756 0.011 183.911);
--chart-3: oklch(0.74 0.012 275.957);
--chart-4: oklch(0.78 0.01 183.962);
--chart-5: oklch(0.751 0.013 227.08);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.014 221.762);
--foreground: oklch(0.978 0.003 226.889);
--muted: oklch(0.201 0.011 182.726);
--muted-foreground: oklch(0.746 0.02 183.589);
--popover: oklch(0.149 0.016 225.251);
--popover-foreground: oklch(0.985 0.002 226.878);
--card: oklch(0.149 0.016 225.251);
--card-foreground: oklch(0.985 0.002 226.878);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.75 0.009 227.003);
--primary-foreground: oklch(0.194 0.003 227.058);
--secondary: oklch(0.756 0.011 183.911);
--secondary-foreground: oklch(0.196 0.004 183.768);
--accent: oklch(0.74 0.012 275.957);
--accent-foreground: oklch(0.19 0.004 275.877);
--destructive: oklch(0.637 0.249 30.851);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.75 0.009 227.003);
--chart-1: oklch(0.75 0.009 227.003);
--chart-2: oklch(0.756 0.011 183.911);
--chart-3: oklch(0.74 0.012 275.957);
--chart-4: oklch(0.78 0.01 183.962);
--chart-5: oklch(0.751 0.013 227.08);
}