Diving for shadcn/ui

Diving is a shadcn/ui theme built around a red primary color (#9c594f) with cyan accents (#4f929c). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#9c594f) on a red-tinted background (#100605).

Color palette

TokenLightDark
Background
#ffffffwhite
#100605black
Foreground
#080302black
#ffffffwhite
Card
#ffffffwhite
#100605black
Card foreground
#080302black
#ffffffwhite
Popover
#ffffffwhite
#100605black
Popover foreground
#080302black
#ffffffwhite
Primary
#9c594fsienna
#9c594fsienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4f929ccadetblue
#4f929ccadetblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e1edeflavender
#101c1eblack
Muted foreground
#626464dimgray
#9b9c9ddarkgray
Accent
#4f929ccadetblue
#4f929ccadetblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ab1f0dfirebrick
#d52710firebrick
Destructive foreground
#feeeecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9c594fsienna
#9c594fsienna

Contrast

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

Light mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button5.31:1AA
Secondary button3.55:1AA Large
Muted text4.98:1AA
Accent3.55:1AA Large
Destructive6.36:1AA
Dark mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button5.31:1AA
Secondary button3.55:1AA Large
Muted text6.31:1AA
Accent3.55:1AA Large
Destructive5.07:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.109 0.014 33.147);
  --muted: oklch(0.938 0.013 207.878);
  --muted-foreground: oklch(0.502 0.002 207.914);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.109 0.014 33.147);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.109 0.014 33.147);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.538 0.091 29.645);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.619 0.07 208.413);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.619 0.07 208.413);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.48 0.177 30.995);
  --destructive-foreground: oklch(0.961 0.017 26.566);
  --ring: oklch(0.538 0.091 29.645);
  --chart-1: oklch(0.538 0.091 29.645);
  --chart-2: oklch(0.619 0.07 208.413);
  --chart-3: oklch(0.619 0.07 208.413);
  --chart-4: oklch(0.648 0.073 208.423);
  --chart-5: oklch(0.538 0.099 29.865);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.019 32.182);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.217 0.018 207.993);
  --muted-foreground: oklch(0.692 0.002 207.921);
  --popover: oklch(0.138 0.019 32.182);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.019 32.182);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.538 0.091 29.645);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.619 0.07 208.413);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.619 0.07 208.413);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.564 0.211 30.951);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.538 0.091 29.645);
  --chart-1: oklch(0.538 0.091 29.645);
  --chart-2: oklch(0.619 0.07 208.413);
  --chart-3: oklch(0.619 0.07 208.413);
  --chart-4: oklch(0.648 0.073 208.423);
  --chart-5: oklch(0.538 0.099 29.865);
}