Torn for shadcn/ui

Torn is a shadcn/ui theme built around a light orange primary color (#f3d7b4) with light violet accents (#d7b4f3). The light mode uses a neutral background (#ffffff). Dark mode keeps the light orange primary (#f3d7b4) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040301black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#040301black
#ffffffwhite
Primary
#f3d7b4wheat
#f3d7b4wheat
Primary foreground
#653f10saddlebrown
#653f10saddlebrown
Secondary
#b4f3d7paleturquoise
#b4f3d7paleturquoise
Secondary foreground
#020d08black
#020d08black
Muted
#ddeee6gainsboro
#11221ablack
Muted foreground
#494b4adarkslategray
#b4b6b5silver
Accent
#d7b4f3thistle
#d7b4f3thistle
Accent foreground
#3f1065indigo
#3f1065indigo
Destructive
#8d390csaddlebrown
#ee7c3fcoral
Destructive foreground
#fbdfd0blanchedalmond
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f3d7b4wheat
#f3d7b4wheat

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.54:1AAA
Primary button6.68:1AA
Secondary button15.77:1AAA
Muted text7.32:1AAA
Accent7.94:1AAA
Destructive6.08:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.68:1AA
Secondary button15.77:1AAA
Muted text8.09:1AAA
Accent7.94:1AAA
Destructive7.60:1AAA

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.095 0.01 80.55);
  --muted: oklch(0.935 0.022 167.157);
  --muted-foreground: oklch(0.41 0.002 167.662);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.095 0.01 80.55);
  --card: oklch(0.992 0 161.565);
  --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.894 0.056 72.582);
  --primary-foreground: oklch(0.404 0.08 66.423);
  --secondary: oklch(0.915 0.075 165.308);
  --secondary-foreground: oklch(0.145 0.023 167.283);
  --accent: oklch(0.821 0.094 309.362);
  --accent-foreground: oklch(0.305 0.138 303.845);
  --destructive: oklch(0.454 0.125 43.692);
  --destructive-foreground: oklch(0.923 0.037 50.173);
  --ring: oklch(0.894 0.056 72.582);
  --chart-1: oklch(0.894 0.056 72.582);
  --chart-2: oklch(0.915 0.075 165.308);
  --chart-3: oklch(0.821 0.094 309.362);
  --chart-4: oklch(0.929 0.062 165.817);
  --chart-5: oklch(0.895 0.058 72.547);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.235 0.029 163.785);
  --muted-foreground: oklch(0.774 0.002 167.745);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.894 0.056 72.582);
  --primary-foreground: oklch(0.404 0.08 66.423);
  --secondary: oklch(0.915 0.075 165.308);
  --secondary-foreground: oklch(0.145 0.023 167.283);
  --accent: oklch(0.821 0.094 309.362);
  --accent-foreground: oklch(0.305 0.138 303.845);
  --destructive: oklch(0.706 0.159 46.63);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.894 0.056 72.582);
  --chart-1: oklch(0.894 0.056 72.582);
  --chart-2: oklch(0.915 0.075 165.308);
  --chart-3: oklch(0.821 0.094 309.362);
  --chart-4: oklch(0.929 0.062 165.817);
  --chart-5: oklch(0.895 0.058 72.547);
}