Peripheral for shadcn/ui

Peripheral is a shadcn/ui theme built around a light pink primary color (#f0dbe5) with light teal accents (#dbf0e6). The light mode uses a neutral background (#fdfbfc). Dark mode keeps the light pink primary (#f0dbe5) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fdfbfcsnow
#040103black
Foreground
#15040cblack
#ffffffwhite
Card
#fdfbfcsnow
#040103black
Card foreground
#15040cblack
#ffffffwhite
Popover
#fdfbfcsnow
#040103black
Popover foreground
#15040cblack
#ffffffwhite
Primary
#f0dbe5mistyrose
#f0dbe5mistyrose
Primary foreground
#6d2c4bbrown
#6d2c4bbrown
Secondary
#dbf0e6gainsboro
#dbf0e6gainsboro
Secondary foreground
#0f241ablack
#0f241ablack
Muted
#e4ece8lavender
#131b17black
Muted foreground
#535a57dimgray
#a5aca8darkgray
Accent
#dbf0e6gainsboro
#dbf0e6gainsboro
Accent foreground
#0f241ablack
#0f241ablack
Destructive
#6e1e08maroon
#f05428tomato
Destructive foreground
#f9beaelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0dbe5mistyrose
#f0dbe5mistyrose

Contrast

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

Light mode
Text on background19.40:1AAA
Text on card19.40:1AAA
Primary button7.55:1AAA
Secondary button13.69:1AAA
Muted text5.88:1AA
Accent13.69:1AAA
Destructive7.04:1AAA
Dark mode
Text on background20.75:1AAA
Text on card20.75:1AAA
Primary button7.55:1AAA
Secondary button13.69:1AAA
Muted text7.58:1AAA
Accent13.69:1AAA
Destructive3.50:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 346.083);
  --foreground: oklch(0.146 0.037 349.992);
  --muted: oklch(0.936 0.01 165.738);
  --muted-foreground: oklch(0.461 0.01 165.41);
  --popover: oklch(0.991 0.002 346.083);
  --popover-foreground: oklch(0.146 0.037 349.992);
  --card: oklch(0.991 0.002 346.083);
  --card-foreground: oklch(0.146 0.037 349.992);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.911 0.027 346.793);
  --primary-foreground: oklch(0.395 0.099 352.382);
  --secondary: oklch(0.937 0.026 165.242);
  --secondary-foreground: oklch(0.24 0.034 161.242);
  --accent: oklch(0.937 0.026 165.242);
  --accent-foreground: oklch(0.24 0.034 161.242);
  --destructive: oklch(0.361 0.117 35.301);
  --destructive-foreground: oklch(0.852 0.072 36.009);
  --ring: oklch(0.911 0.027 346.793);
  --chart-1: oklch(0.911 0.027 346.793);
  --chart-2: oklch(0.937 0.026 165.242);
  --chart-3: oklch(0.937 0.026 165.242);
  --chart-4: oklch(0.956 0.018 165.491);
  --chart-5: oklch(0.91 0.029 346.848);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.014 345.818);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.212 0.014 164.154);
  --muted-foreground: oklch(0.737 0.009 165.682);
  --popover: oklch(0.085 0.014 345.818);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.085 0.014 345.818);
  --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.911 0.027 346.793);
  --primary-foreground: oklch(0.395 0.099 352.382);
  --secondary: oklch(0.937 0.026 165.242);
  --secondary-foreground: oklch(0.24 0.034 161.242);
  --accent: oklch(0.937 0.026 165.242);
  --accent-foreground: oklch(0.24 0.034 161.242);
  --destructive: oklch(0.652 0.2 35.682);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.911 0.027 346.793);
  --chart-1: oklch(0.911 0.027 346.793);
  --chart-2: oklch(0.937 0.026 165.242);
  --chart-3: oklch(0.937 0.026 165.242);
  --chart-4: oklch(0.956 0.018 165.491);
  --chart-5: oklch(0.91 0.029 346.848);
}