Unfinished for shadcn/ui

Unfinished is a shadcn/ui theme built around a violet primary color (#6e1c8d) with green accents (#3a8d1c). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#6e1c8d) on a neutral background (#060307).

Color palette

TokenLightDark
Background
#ffffffwhite
#060307black
Foreground
#0a020dblack
#faf9fbghostwhite
Card
#fcfcfcsnow
#09040bblack
Card foreground
#070109black
#fdfcfdwhite
Popover
#fcfcfcsnow
#09040bblack
Popover foreground
#070109black
#fdfcfdwhite
Primary
#6e1c8drebeccapurple
#6e1c8drebeccapurple
Primary foreground
#f3e1f9lavender
#f3e1f9lavender
Secondary
#3a8d1cforestgreen
#3a8d1cforestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f2f3f1whitesmoke
#0c0e0cblack
Muted foreground
#3d453bdarkslategray
#bdc4basilver
Accent
#3a8d1cforestgreen
#3a8d1cforestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#db3700orangered
#ff5e29tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6e1c8drebeccapurple
#6e1c8drebeccapurple

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.19:1AAA
Primary button7.65:1AAA
Secondary button4.21:1AA Large
Muted text8.94:1AAA
Accent4.21:1AA Large
Destructive4.60:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.82:1AAA
Primary button7.65:1AAA
Secondary button4.21:1AA Large
Muted text10.86:1AAA
Accent4.21:1AA Large
Destructive6.89:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.116 0.037 319.164);
  --muted: oklch(0.963 0.004 137.198);
  --muted-foreground: oklch(0.38 0.02 137.316);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.101 0.032 319.827);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.101 0.032 319.827);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.416 0.178 314.854);
  --primary-foreground: oklch(0.931 0.037 317.099);
  --secondary: oklch(0.569 0.165 139.121);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.569 0.165 139.121);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.586 0.207 34.755);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.416 0.178 314.854);
  --chart-1: oklch(0.416 0.178 314.854);
  --chart-2: oklch(0.569 0.165 139.121);
  --chart-3: oklch(0.569 0.165 139.121);
  --chart-4: oklch(0.606 0.177 139.156);
  --chart-5: oklch(0.418 0.183 314.652);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.019 318.709);
  --foreground: oklch(0.984 0.003 317.182);
  --muted: oklch(0.16 0.005 137.271);
  --muted-foreground: oklch(0.813 0.016 137.237);
  --popover: oklch(0.123 0.021 318.599);
  --popover-foreground: oklch(0.992 0.001 317.186);
  --card: oklch(0.123 0.021 318.599);
  --card-foreground: oklch(0.992 0.001 317.186);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.416 0.178 314.854);
  --primary-foreground: oklch(0.931 0.037 317.099);
  --secondary: oklch(0.569 0.165 139.121);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.569 0.165 139.121);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.688 0.206 37.499);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.416 0.178 314.854);
  --chart-1: oklch(0.416 0.178 314.854);
  --chart-2: oklch(0.569 0.165 139.121);
  --chart-3: oklch(0.569 0.165 139.121);
  --chart-4: oklch(0.606 0.177 139.156);
  --chart-5: oklch(0.418 0.183 314.652);
}