Settler for shadcn/ui

Settler is a shadcn/ui theme built around a vivid red primary color (#dc0425) with muted light red accents (#eae6e7). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the vivid red primary (#dc0425) on a red-tinted background (#0e0607).

Color palette

TokenLightDark
Background
#fdf7f8snow
#0e0607black
Foreground
#140508black
#f9f6f6whitesmoke
Card
#fbf3f4lavenderblush
#120809black
Card foreground
#100406black
#fbf9f9snow
Popover
#fdf7f8snow
#0e0607black
Popover foreground
#140508black
#f9f6f6whitesmoke
Primary
#dc0425crimson
#dc0425crimson
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#eae6e7linen
#312527darkslategray
Secondary foreground
#56484adarkslategray
#cdbcbfsilver
Muted
#e7dadcgainsboro
#25181ablack
Muted foreground
#634b4edimgray
#b49ca0darkgray
Accent
#eae6e7linen
#312527darkslategray
Accent foreground
#56484adarkslategray
#cdbcbfsilver
Destructive
#dd0808red
#e70808red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dc0425crimson
#dc0425crimson

Contrast

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

Light mode
Text on background18.80:1AAA
Text on card18.50:1AAA
Primary button5.13:1AA
Secondary button7.00:1AAA
Muted text5.83:1AA
Accent7.00:1AAA
Destructive5.08:1AA
Dark mode
Text on background18.63:1AAA
Text on card18.84:1AAA
Primary button5.13:1AA
Secondary button8.06:1AAA
Muted text6.69:1AA
Accent8.06:1AAA
Destructive4.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 6.749);
  --foreground: oklch(0.145 0.029 9.72);
  --muted: oklch(0.899 0.014 6.996);
  --muted-foreground: oklch(0.438 0.033 8.495);
  --popover: oklch(0.981 0.006 6.749);
  --popover-foreground: oklch(0.145 0.029 9.72);
  --card: oklch(0.972 0.009 6.828);
  --card-foreground: oklch(0.133 0.025 8.517);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.564 0.227 25.003);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.928 0.005 6.718);
  --secondary-foreground: oklch(0.417 0.02 7.767);
  --accent: oklch(0.928 0.005 6.718);
  --accent-foreground: oklch(0.417 0.02 7.767);
  --destructive: oklch(0.566 0.23 28.963);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.564 0.227 25.003);
  --chart-1: oklch(0.564 0.227 25.003);
  --chart-2: oklch(0.928 0.005 6.718);
  --chart-3: oklch(0.928 0.005 6.718);
  --chart-4: oklch(0.952 0.003 6.675);
  --chart-5: oklch(0.57 0.231 25.439);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.017 7.859);
  --foreground: oklch(0.975 0.003 6.664);
  --muted: oklch(0.227 0.021 8.901);
  --muted-foreground: oklch(0.716 0.029 7.609);
  --popover: oklch(0.137 0.017 7.859);
  --popover-foreground: oklch(0.975 0.003 6.664);
  --card: oklch(0.149 0.02 8.994);
  --card-foreground: oklch(0.984 0.002 6.64);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.564 0.227 25.003);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.28 0.019 8.247);
  --secondary-foreground: oklch(0.81 0.019 7.18);
  --accent: oklch(0.28 0.019 8.247);
  --accent-foreground: oklch(0.81 0.019 7.18);
  --destructive: oklch(0.585 0.237 28.977);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.564 0.227 25.003);
  --chart-1: oklch(0.564 0.227 25.003);
  --chart-2: oklch(0.28 0.019 8.247);
  --chart-3: oklch(0.28 0.019 8.247);
  --chart-4: oklch(0.31 0.021 8.314);
  --chart-5: oklch(0.57 0.231 25.439);
}