Dimpled for shadcn/ui

Dimpled is a shadcn/ui theme built around a muted yellow primary color (#b8b689) with muted green accents (#a3b889). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted yellow primary (#b8b689) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefefbwhite
#000000black
Foreground
#040401black
#f9f9f6whitesmoke
Card
#fcfcf8snow
#030303black
Card foreground
#000000black
#fbfbf9snow
Popover
#fcfcf8snow
#030303black
Popover foreground
#000000black
#fbfbf9snow
Primary
#b8b689tan
#b8b689tan
Primary foreground
#0a0906black
#0a0906black
Secondary
#b89e89rosybrown
#b89e89rosybrown
Secondary foreground
#0a0706black
#0a0706black
Muted
#e8ddd4gainsboro
#2b2017black
Muted foreground
#4b4a49darkslategray
#b6b5b4silver
Accent
#a3b889darkseagreen
#a3b889darkseagreen
Accent foreground
#080a06black
#080a06black
Destructive
#80170amaroon
#e42a11orangered
Destructive foreground
#fac8c1pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b8b689tan
#b8b689tan

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.43:1AAA
Primary button9.56:1AAA
Secondary button7.95:1AAA
Muted text6.61:1AA
Accent9.27:1AAA
Destructive6.87:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.95:1AAA
Primary button9.56:1AAA
Secondary button7.95:1AAA
Muted text7.74:1AAA
Accent9.27:1AAA
Destructive4.54:1AA

CSS variables

Paste this into your globals.css to use Dimpled in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 104.023);
  --foreground: oklch(0.103 0.013 106.529);
  --muted: oklch(0.903 0.018 61.933);
  --muted-foreground: oklch(0.409 0.002 62.144);
  --popover: oklch(0.99 0.006 104.075);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.006 104.075);
  --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.766 0.061 105.223);
  --primary-foreground: oklch(0.14 0.009 105.338);
  --secondary: oklch(0.718 0.043 61.343);
  --secondary-foreground: oklch(0.133 0.006 65.773);
  --accent: oklch(0.755 0.069 127.665);
  --accent-foreground: oklch(0.139 0.01 125.979);
  --destructive: oklch(0.391 0.141 31.036);
  --destructive-foreground: oklch(0.875 0.058 27.029);
  --ring: oklch(0.766 0.061 105.223);
  --chart-1: oklch(0.766 0.061 105.223);
  --chart-2: oklch(0.718 0.043 61.343);
  --chart-3: oklch(0.755 0.069 127.665);
  --chart-4: oklch(0.741 0.039 61.454);
  --chart-5: oklch(0.774 0.067 105.335);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.981 0.004 104.049);
  --muted: oklch(0.255 0.024 60.707);
  --muted-foreground: oklch(0.773 0.001 62.171);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.987 0.003 104.023);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.987 0.003 104.023);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.766 0.061 105.223);
  --primary-foreground: oklch(0.14 0.009 105.338);
  --secondary: oklch(0.718 0.043 61.343);
  --secondary-foreground: oklch(0.133 0.006 65.773);
  --accent: oklch(0.755 0.069 127.665);
  --accent-foreground: oklch(0.139 0.01 125.979);
  --destructive: oklch(0.592 0.222 30.937);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.766 0.061 105.223);
  --chart-1: oklch(0.766 0.061 105.223);
  --chart-2: oklch(0.718 0.043 61.343);
  --chart-3: oklch(0.755 0.069 127.665);
  --chart-4: oklch(0.741 0.039 61.454);
  --chart-5: oklch(0.774 0.067 105.335);
}