Dibble for shadcn/ui

Dibble is a shadcn/ui theme built around a deep blue primary color (#080c16) with deep indigo accents (#0b0816). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the deep blue primary (#080c16) on a blue-tinted background (#07090e).

Color palette

TokenLightDark
Background
#fbfcfewhite
#07090eblack
Foreground
#02050dblack
#f6f7f9whitesmoke
Card
#fbfcfewhite
#07090eblack
Card foreground
#02050dblack
#f6f7f9whitesmoke
Popover
#fbfcfewhite
#07090eblack
Popover foreground
#02050dblack
#f6f7f9whitesmoke
Primary
#080c16black
#080c16black
Primary foreground
#8095d1cornflowerblue
#8095d1cornflowerblue
Secondary
#081316black
#081316black
Secondary foreground
#80bed1skyblue
#80bed1skyblue
Muted
#eaeff0whitesmoke
#0f1415black
Muted foreground
#575a5bdimgray
#a4a7a8darkgray
Accent
#0b0816black
#0b0816black
Accent foreground
#d2cbecthistle
#d2cbecthistle
Destructive
#a22a02firebrick
#f23e02orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#080c16black
#080c16black

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button6.64:1AA
Secondary button9.13:1AAA
Muted text5.99:1AA
Accent12.70:1AAA
Destructive7.35:1AAA
Dark mode
Text on background18.62:1AAA
Text on card18.62:1AAA
Primary button6.64:1AA
Secondary button9.13:1AAA
Muted text7.69:1AAA
Accent12.70:1AAA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 270.093);
  --foreground: oklch(0.116 0.022 260.397);
  --muted: oklch(0.948 0.006 217.777);
  --muted-foreground: oklch(0.466 0.004 217.79);
  --popover: oklch(0.99 0.003 270.093);
  --popover-foreground: oklch(0.116 0.022 260.397);
  --card: oklch(0.99 0.003 270.093);
  --card-foreground: oklch(0.116 0.022 260.397);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.156 0.024 267.925);
  --primary-foreground: oklch(0.677 0.092 268.542);
  --secondary: oklch(0.178 0.018 218.952);
  --secondary-foreground: oklch(0.766 0.069 218.953);
  --accent: oklch(0.148 0.031 293.294);
  --accent-foreground: oklch(0.857 0.047 296.089);
  --destructive: oklch(0.471 0.162 35.574);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.156 0.024 267.925);
  --chart-1: oklch(0.156 0.024 267.925);
  --chart-2: oklch(0.178 0.018 218.952);
  --chart-3: oklch(0.148 0.031 293.294);
  --chart-4: oklch(0.217 0.024 219.593);
  --chart-5: oklch(0.155 0.025 267.574);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.012 266.985);
  --foreground: oklch(0.975 0.004 270.091);
  --muted: oklch(0.185 0.008 218.122);
  --muted-foreground: oklch(0.725 0.003 217.769);
  --popover: oklch(0.138 0.012 266.985);
  --popover-foreground: oklch(0.975 0.004 270.091);
  --card: oklch(0.138 0.012 266.985);
  --card-foreground: oklch(0.975 0.004 270.091);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.156 0.024 267.925);
  --primary-foreground: oklch(0.677 0.092 268.542);
  --secondary: oklch(0.178 0.018 218.952);
  --secondary-foreground: oklch(0.766 0.069 218.953);
  --accent: oklch(0.148 0.031 293.294);
  --accent-foreground: oklch(0.857 0.047 296.089);
  --destructive: oklch(0.633 0.222 34.75);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.156 0.024 267.925);
  --chart-1: oklch(0.156 0.024 267.925);
  --chart-2: oklch(0.178 0.018 218.952);
  --chart-3: oklch(0.148 0.031 293.294);
  --chart-4: oklch(0.217 0.024 219.593);
  --chart-5: oklch(0.155 0.025 267.574);
}