Clear-cut for shadcn/ui

Clear-cut is a shadcn/ui theme built around a muted blue primary color (#96a2c0) with muted green accents (#a2c096). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#96a2c0) on a blue-tinted background (#06090e).

Color palette

TokenLightDark
Background
#ffffffwhite
#06090eblack
Foreground
#000000black
#f9fafbghostwhite
Card
#ffffffwhite
#06090eblack
Card foreground
#000000black
#f9fafbghostwhite
Popover
#ffffffwhite
#06090eblack
Popover foreground
#000000black
#f9fafbghostwhite
Primary
#96a2c0darkgray
#96a2c0darkgray
Primary foreground
#0d1016black
#0d1016black
Secondary
#c096a2rosybrown
#c096a2rosybrown
Secondary foreground
#160d10black
#160d10black
Muted
#f1e9eclinen
#160e10black
Muted foreground
#5c474ddarkslategray
#b8a3a9darkgray
Accent
#a2c096darkseagreen
#a2c096darkseagreen
Accent foreground
#10160dblack
#10160dblack
Destructive
#9d1c10firebrick
#ec5446tomato
Destructive foreground
#fce5e3mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#96a2c0darkgray
#96a2c0darkgray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.48:1AAA
Secondary button7.38:1AAA
Muted text7.15:1AAA
Accent9.20:1AAA
Destructive6.69:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.10:1AAA
Primary button7.48:1AAA
Secondary button7.38:1AAA
Muted text8.01:1AAA
Accent9.20:1AAA
Destructive5.91:1AA

CSS variables

Paste this into your globals.css to use Clear-cut in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.941 0.009 356.933);
  --muted-foreground: oklch(0.422 0.03 358.656);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.714 0.045 266.934);
  --primary-foreground: oklch(0.173 0.014 266.783);
  --secondary: oklch(0.715 0.053 358.709);
  --secondary-foreground: oklch(0.174 0.016 359.2);
  --accent: oklch(0.774 0.067 136.363);
  --accent-foreground: oklch(0.192 0.02 136.448);
  --destructive: oklch(0.451 0.166 29.988);
  --destructive-foreground: oklch(0.941 0.025 23.859);
  --ring: oklch(0.714 0.045 266.934);
  --chart-1: oklch(0.714 0.045 266.934);
  --chart-2: oklch(0.715 0.053 358.709);
  --chart-3: oklch(0.774 0.067 136.363);
  --chart-4: oklch(0.742 0.048 358.442);
  --chart-5: oklch(0.711 0.051 266.857);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.014 263.598);
  --foreground: oklch(0.984 0.002 267.411);
  --muted: oklch(0.175 0.014 358.884);
  --muted-foreground: oklch(0.735 0.026 357.664);
  --popover: oklch(0.137 0.014 263.598);
  --popover-foreground: oklch(0.984 0.002 267.411);
  --card: oklch(0.137 0.014 263.598);
  --card-foreground: oklch(0.984 0.002 267.411);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.714 0.045 266.934);
  --primary-foreground: oklch(0.173 0.014 266.783);
  --secondary: oklch(0.715 0.053 358.709);
  --secondary-foreground: oklch(0.174 0.016 359.2);
  --accent: oklch(0.774 0.067 136.363);
  --accent-foreground: oklch(0.192 0.02 136.448);
  --destructive: oklch(0.648 0.189 28.572);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.714 0.045 266.934);
  --chart-1: oklch(0.714 0.045 266.934);
  --chart-2: oklch(0.715 0.053 358.709);
  --chart-3: oklch(0.774 0.067 136.363);
  --chart-4: oklch(0.742 0.048 358.442);
  --chart-5: oklch(0.711 0.051 266.857);
}