Twist for shadcn/ui

Twist is a shadcn/ui theme built around a muted light pink primary color (#cec5c8) with muted light teal accents (#c5cecb). The light mode uses a neutral background (#fefbfc). Dark mode keeps the muted light pink primary (#cec5c8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfcsnow
#000000black
Foreground
#000000black
#fbf9fasnow
Card
#fcf7f9snow
#030303black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fcf7f9snow
#030303black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#cec5c8silver
#cec5c8silver
Primary foreground
#352c2fdarkslategray
#352c2fdarkslategray
Secondary
#c5cecblightgrey
#c5cecblightgrey
Secondary foreground
#2c3532darkslategray
#2c3532darkslategray
Muted
#d1e6dfgainsboro
#192e27darkslategray
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#c5cecblightgrey
#c5cecblightgrey
Accent foreground
#2c3532darkslategray
#2c3532darkslategray
Destructive
#b2420afirebrick
#d9510dchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cec5c8silver
#cec5c8silver

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card19.87:1AAA
Primary button7.99:1AAA
Secondary button7.86:1AAA
Muted text5.78:1AA
Accent7.86:1AAA
Destructive5.68:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.19:1AAA
Primary button7.99:1AAA
Secondary button7.86:1AAA
Muted text6.24:1AA
Accent7.86:1AAA
Destructive4.10:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 354.671);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.907 0.024 173.8);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(0.982 0.006 354.757);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.006 354.757);
  --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.831 0.012 354.988);
  --primary-foreground: oklch(0.304 0.014 355.847);
  --secondary: oklch(0.844 0.011 174.189);
  --secondary-foreground: oklch(0.319 0.013 173.352);
  --accent: oklch(0.844 0.011 174.189);
  --accent-foreground: oklch(0.319 0.013 173.352);
  --destructive: oklch(0.529 0.157 41.194);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.831 0.012 354.988);
  --chart-1: oklch(0.831 0.012 354.988);
  --chart-2: oklch(0.844 0.011 174.189);
  --chart-3: oklch(0.844 0.011 174.189);
  --chart-4: oklch(0.867 0.01 174.258);
  --chart-5: oklch(0.829 0.016 355.122);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 354.646);
  --muted: oklch(0.281 0.03 170.943);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.992 0.001 354.616);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 354.616);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.831 0.012 354.988);
  --primary-foreground: oklch(0.304 0.014 355.847);
  --secondary: oklch(0.844 0.011 174.189);
  --secondary-foreground: oklch(0.319 0.013 173.352);
  --accent: oklch(0.844 0.011 174.189);
  --accent-foreground: oklch(0.319 0.013 173.352);
  --destructive: oklch(0.61 0.183 40.835);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.831 0.012 354.988);
  --chart-1: oklch(0.831 0.012 354.988);
  --chart-2: oklch(0.844 0.011 174.189);
  --chart-3: oklch(0.844 0.011 174.189);
  --chart-4: oklch(0.867 0.01 174.258);
  --chart-5: oklch(0.829 0.016 355.122);
}