Distorted for shadcn/ui

Distorted is a shadcn/ui theme built around a pink primary color (#c38da7) with red accents (#c38e8d). The light mode uses a neutral background (#fefbfc). Dark mode keeps the pink primary (#c38da7) on a neutral background (#040203).

Color palette

TokenLightDark
Background
#fefbfcsnow
#040203black
Foreground
#11040ablack
#fdfcfcsnow
Card
#fefbfcsnow
#040203black
Card foreground
#11040ablack
#fdfcfcsnow
Popover
#fefbfcsnow
#040203black
Popover foreground
#11040ablack
#fdfcfcsnow
Primary
#c38da7rosybrown
#c38da7rosybrown
Primary foreground
#140b0fblack
#140b0fblack
Secondary
#c38dc2plum
#c38dc2plum
Secondary foreground
#140b14black
#140b14black
Muted
#e9d8e9gainsboro
#271627black
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#c38e8drosybrown
#c38e8drosybrown
Accent foreground
#140b0bblack
#140b0bblack
Destructive
#a62407firebrick
#eb330aorangered
Destructive foreground
#fee7e2mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c38da7rosybrown
#c38da7rosybrown

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button7.11:1AAA
Secondary button7.30:1AAA
Muted text4.41:1AA Large
Accent7.02:1AAA
Destructive6.14:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button7.11:1AAA
Secondary button7.30:1AAA
Muted text6.21:1AA
Accent7.02:1AAA
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 346.127);
  --foreground: oklch(0.134 0.032 348.1);
  --muted: oklch(0.9 0.03 326.322);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.99 0.004 346.127);
  --popover-foreground: oklch(0.134 0.032 348.1);
  --card: oklch(0.99 0.004 346.127);
  --card-foreground: oklch(0.134 0.032 348.1);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.705 0.073 348.618);
  --primary-foreground: oklch(0.163 0.019 348.872);
  --secondary: oklch(0.714 0.096 327.075);
  --secondary-foreground: oklch(0.165 0.024 327.167);
  --accent: oklch(0.699 0.065 19.939);
  --accent-foreground: oklch(0.161 0.016 20.128);
  --destructive: oklch(0.475 0.17 33.028);
  --destructive-foreground: oklch(0.944 0.026 32.689);
  --ring: oklch(0.705 0.073 348.618);
  --chart-1: oklch(0.705 0.073 348.618);
  --chart-2: oklch(0.714 0.096 327.075);
  --chart-3: oklch(0.699 0.065 19.939);
  --chart-4: oklch(0.74 0.087 326.955);
  --chart-5: oklch(0.703 0.081 348.871);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.01 345.868);
  --foreground: oklch(0.991 0.002 346.077);
  --muted: oklch(0.231 0.042 327.395);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0.087 0.01 345.868);
  --popover-foreground: oklch(0.991 0.002 346.077);
  --card: oklch(0.087 0.01 345.868);
  --card-foreground: oklch(0.991 0.002 346.077);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.705 0.073 348.618);
  --primary-foreground: oklch(0.163 0.019 348.872);
  --secondary: oklch(0.714 0.096 327.075);
  --secondary-foreground: oklch(0.165 0.024 327.167);
  --accent: oklch(0.699 0.065 19.939);
  --accent-foreground: oklch(0.161 0.016 20.128);
  --destructive: oklch(0.611 0.223 32.69);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.705 0.073 348.618);
  --chart-1: oklch(0.705 0.073 348.618);
  --chart-2: oklch(0.714 0.096 327.075);
  --chart-3: oklch(0.699 0.065 19.939);
  --chart-4: oklch(0.74 0.087 326.955);
  --chart-5: oklch(0.703 0.081 348.871);
}