Dial for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button8.43:1AAA
Secondary button7.66:1AAA
Muted text5.93:1AA
Accent8.57:1AAA
Destructive7.03:1AAA
Dark mode
Text on background20.16:1AAA
Text on card20.31:1AAA
Primary button8.43:1AAA
Secondary button7.66:1AAA
Muted text6.86:1AA
Accent8.57:1AAA
Destructive3.92:1AA Large

CSS variables

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);
}