Incision for shadcn/ui

Incision is a shadcn/ui theme built around a vivid light purple primary color (#f7e4fc) with muted light purple accents (#d8ccdb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light purple primary (#f7e4fc) on a neutral background (#070208).

Color palette

TokenLightDark
Background
#ffffffwhite
#070208black
Foreground
#040104black
#f9f5faghostwhite
Card
#ffffffwhite
#070208black
Card foreground
#040104black
#f9f5faghostwhite
Popover
#ffffffwhite
#070208black
Popover foreground
#040104black
#f9f5faghostwhite
Primary
#f7e4fclavenderblush
#f7e4fclavenderblush
Primary foreground
#7f139adarkmagenta
#7f139adarkmagenta
Secondary
#d8ccdblightgrey
#2f2d2fdarkslategray
Secondary foreground
#413045darkslategray
#c8c5c9silver
Muted
#e5d1eagainsboro
#29152eblack
Muted foreground
#443946darkslategray
#c3b9c6silver
Accent
#d8ccdblightgrey
#2f2d2fdarkslategray
Accent foreground
#413045darkslategray
#c8c5c9silver
Destructive
#7b110amaroon
#ed2f21crimson
Destructive foreground
#fac1bdlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7e4fclavenderblush
#f7e4fclavenderblush

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button7.07:1AAA
Secondary button7.83:1AAA
Muted text7.64:1AAA
Accent7.83:1AAA
Destructive6.97:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button7.07:1AAA
Secondary button8.03:1AAA
Muted text8.95:1AAA
Accent8.03:1AAA
Destructive4.17:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.081 0.026 322.033);
  --muted: oklch(0.885 0.04 319.457);
  --muted-foreground: oklch(0.362 0.026 319.462);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.081 0.026 322.033);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.081 0.026 322.033);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.94 0.038 319.455);
  --primary-foreground: oklch(0.446 0.203 317.9);
  --secondary: oklch(0.859 0.025 319.452);
  --secondary-foreground: oklch(0.337 0.043 319.463);
  --accent: oklch(0.859 0.025 319.452);
  --accent-foreground: oklch(0.337 0.043 319.463);
  --destructive: oklch(0.376 0.14 29.541);
  --destructive-foreground: oklch(0.861 0.066 23.222);
  --ring: oklch(0.94 0.038 319.455);
  --chart-1: oklch(0.94 0.038 319.455);
  --chart-2: oklch(0.859 0.025 319.452);
  --chart-3: oklch(0.859 0.025 319.452);
  --chart-4: oklch(0.885 0.021 319.451);
  --chart-5: oklch(0.94 0.039 319.456);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.025 321.4);
  --foreground: oklch(0.974 0.009 319.447);
  --muted: oklch(0.234 0.054 319.387);
  --muted-foreground: oklch(0.798 0.021 319.452);
  --popover: oklch(0.106 0.025 321.4);
  --popover-foreground: oklch(0.974 0.009 319.447);
  --card: oklch(0.106 0.025 321.4);
  --card-foreground: oklch(0.974 0.009 319.447);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.94 0.038 319.455);
  --primary-foreground: oklch(0.446 0.203 317.9);
  --secondary: oklch(0.299 0.006 319.45);
  --secondary-foreground: oklch(0.827 0.005 319.446);
  --accent: oklch(0.299 0.006 319.45);
  --accent-foreground: oklch(0.827 0.005 319.446);
  --destructive: oklch(0.613 0.225 29.456);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.94 0.038 319.455);
  --chart-1: oklch(0.94 0.038 319.455);
  --chart-2: oklch(0.299 0.006 319.45);
  --chart-3: oklch(0.299 0.006 319.45);
  --chart-4: oklch(0.329 0.007 319.45);
  --chart-5: oklch(0.94 0.039 319.456);
}