Torn for shadcn/ui

Torn is a shadcn/ui theme built around a vivid light pink primary color (#f8bae1) with vivid light red accents (#f8bac2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light pink primary (#f8bae1) on a neutral background (#080206).

Color palette

TokenLightDark
Background
#ffffffwhite
#080206black
Foreground
#0d0209black
#f8f7f8whitesmoke
Card
#fcfcfcsnow
#0c0309black
Card foreground
#090106black
#faf9fasnow
Popover
#fcfcfcsnow
#0c0309black
Popover foreground
#090106black
#faf9fasnow
Primary
#f8bae1pink
#f8bae1pink
Primary foreground
#730c4epurple
#730c4epurple
Secondary
#efbaf8thistle
#efbaf8thistle
Secondary foreground
#660c73purple
#660c73purple
Muted
#ecddeelavender
#201122black
Muted foreground
#5f5161dimgray
#ac9eaedarkgray
Accent
#f8bac2lightpink
#f8bac2lightpink
Accent foreground
#730c1amaroon
#730c1amaroon
Destructive
#910808darkred
#f11313red
Destructive foreground
#fccfcfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8bae1pink
#f8bae1pink

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card20.17:1AAA
Primary button6.91:1AA
Secondary button6.99:1AA
Muted text5.68:1AA
Accent7.10:1AAA
Destructive6.69:1AA
Dark mode
Text on background19.21:1AAA
Text on card19.33:1AAA
Primary button6.91:1AA
Secondary button6.99:1AA
Muted text7.09:1AAA
Accent7.10:1AAA
Destructive4.32:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.119 0.034 339.752);
  --muted: oklch(0.914 0.028 321.678);
  --muted-foreground: oklch(0.455 0.031 321.777);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.104 0.029 339.082);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.104 0.029 339.082);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.856 0.087 340.776);
  --primary-foreground: oklch(0.375 0.147 348.594);
  --secondary: oklch(0.856 0.102 321.901);
  --secondary-foreground: oklch(0.373 0.167 321.571);
  --accent: oklch(0.847 0.072 9.832);
  --accent-foreground: oklch(0.359 0.135 21.775);
  --destructive: oklch(0.415 0.165 28.526);
  --destructive-foreground: oklch(0.893 0.051 18.158);
  --ring: oklch(0.856 0.087 340.776);
  --chart-1: oklch(0.856 0.087 340.776);
  --chart-2: oklch(0.856 0.102 321.901);
  --chart-3: oklch(0.847 0.072 9.832);
  --chart-4: oklch(0.884 0.081 321.837);
  --chart-5: oklch(0.855 0.09 340.85);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.022 338.989);
  --foreground: oklch(0.976 0.002 338.765);
  --muted: oklch(0.206 0.04 322.05);
  --muted-foreground: oklch(0.715 0.028 321.7);
  --popover: oklch(0.123 0.025 339.304);
  --popover-foreground: oklch(0.984 0.001 338.749);
  --card: oklch(0.123 0.025 339.304);
  --card-foreground: oklch(0.984 0.001 338.749);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.856 0.087 340.776);
  --primary-foreground: oklch(0.375 0.147 348.594);
  --secondary: oklch(0.856 0.102 321.901);
  --secondary-foreground: oklch(0.373 0.167 321.571);
  --accent: oklch(0.847 0.072 9.832);
  --accent-foreground: oklch(0.359 0.135 21.775);
  --destructive: oklch(0.607 0.242 28.658);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.856 0.087 340.776);
  --chart-1: oklch(0.856 0.087 340.776);
  --chart-2: oklch(0.856 0.102 321.901);
  --chart-3: oklch(0.847 0.072 9.832);
  --chart-4: oklch(0.884 0.081 321.837);
  --chart-5: oklch(0.855 0.09 340.85);
}