Dial is a shadcn/ui theme built around an orange primary color (#e6c999) with green accents (#dbe699). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the orange primary (#e6c999) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfaf8snow | #000000black |
| Foreground | #090601black | #fcfaf8snow |
| Card | #faf8f4whitesmoke | #030303black |
| Card foreground | #040301black | #fdfdfcwhite |
| Popover | #fcfaf8snow | #000000black |
| Popover foreground | #090601black | #fcfaf8snow |
| Primary | #e6c999burlywood | #e6c999burlywood |
| Primary foreground | #3d2c0fdarkslategray | #3d2c0fdarkslategray |
| Secondary | #e6a399burlywood | #e6a399burlywood |
| Secondary foreground | #3d150fblack | #3d150fblack |
| Muted | #f6f0efwhitesmoke | #100a09black |
| Muted foreground | #6f5652dimgray | #ad9390rosybrown |
| Accent | #dbe699khaki | #dbe699khaki |
| Accent foreground | #373d0fdarkolivegreen | #373d0fdarkolivegreen |
| Destructive | #6f1706maroon | #f33712orangered |
| Destructive foreground | #fbbaadlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e6c999burlywood | #e6c999burlywood |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 8.43:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 8.57:1 | AAA |
| Destructive | 7.03:1 | AAA |
| Text on background | 20.16:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 8.43:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 6.86:1 | AA |
| Accent | 8.57:1 | AAA |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use Dial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 81.514);
--foreground: oklch(0.124 0.018 89.51);
--muted: oklch(0.958 0.007 27.97);
--muted-foreground: oklch(0.479 0.034 28.468);
--popover: oklch(0.987 0.004 81.514);
--popover-foreground: oklch(0.124 0.018 89.51);
--card: oklch(0.98 0.006 81.513);
--card-foreground: oklch(0.099 0.014 89.51);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.849 0.071 81.074);
--primary-foreground: oklch(0.307 0.05 78.647);
--secondary: oklch(0.777 0.081 28.817);
--secondary-foreground: oklch(0.258 0.064 30.791);
--accent: oklch(0.898 0.099 114.601);
--accent-foreground: oklch(0.344 0.067 116.519);
--destructive: oklch(0.358 0.125 32.968);
--destructive-foreground: oklch(0.844 0.078 31.515);
--ring: oklch(0.849 0.071 81.074);
--chart-1: oklch(0.849 0.071 81.074);
--chart-2: oklch(0.777 0.081 28.817);
--chart-3: oklch(0.898 0.099 114.601);
--chart-4: oklch(0.803 0.07 28.631);
--chart-5: oklch(0.852 0.074 81.025);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.003 81.514);
--muted: oklch(0.153 0.012 28.796);
--muted-foreground: oklch(0.686 0.031 28.228);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.987 0.003 81.514);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.002 81.514);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.849 0.071 81.074);
--primary-foreground: oklch(0.307 0.05 78.647);
--secondary: oklch(0.777 0.081 28.817);
--secondary-foreground: oklch(0.258 0.064 30.791);
--accent: oklch(0.898 0.099 114.601);
--accent-foreground: oklch(0.344 0.067 116.519);
--destructive: oklch(0.628 0.227 32.472);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.849 0.071 81.074);
--chart-1: oklch(0.849 0.071 81.074);
--chart-2: oklch(0.777 0.081 28.817);
--chart-3: oklch(0.898 0.099 114.601);
--chart-4: oklch(0.803 0.07 28.631);
--chart-5: oklch(0.852 0.074 81.025);
}