South for shadcn/ui

South is a shadcn/ui theme built around a purple primary color (#901796) with teal accents (#179690). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the purple primary (#901796) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#040104black
Foreground
#040104black
#ffffffwhite
Card
#fdfbfdsnow
#040104black
Card foreground
#040104black
#ffffffwhite
Popover
#fdfbfdsnow
#040104black
Popover foreground
#040104black
#ffffffwhite
Primary
#901796darkmagenta
#901796darkmagenta
Primary foreground
#fae5fblavenderblush
#fae5fblavenderblush
Secondary
#969017olive
#969017olive
Secondary foreground
#000000black
#000000black
Muted
#f2f1eewhitesmoke
#11110dblack
Muted foreground
#57574cdarkolivegreen
#b3b3a8darkgray
Accent
#179690darkcyan
#179690darkcyan
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b82f0afirebrick
#e43b0corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#901796darkmagenta
#901796darkmagenta

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button6.43:1AA
Secondary button6.27:1AA
Muted text6.48:1AA
Accent3.62:1AA Large
Destructive6.07:1AA
Dark mode
Text on background20.74:1AAA
Text on card20.74:1AAA
Primary button6.43:1AA
Secondary button6.27:1AA
Muted text8.93:1AAA
Accent3.62:1AA Large
Destructive4.27:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 324.149);
  --foreground: oklch(0.084 0.026 326.273);
  --muted: oklch(0.959 0.005 104.061);
  --muted-foreground: oklch(0.453 0.017 104.6);
  --popover: oklch(0.991 0.003 324.149);
  --popover-foreground: oklch(0.084 0.026 326.273);
  --card: oklch(0.991 0.003 324.149);
  --card-foreground: oklch(0.084 0.026 326.273);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.471 0.203 325.844);
  --primary-foreground: oklch(0.944 0.037 324.356);
  --secondary: oklch(0.638 0.13 106.261);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.609 0.101 189.406);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.518 0.178 34.405);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.471 0.203 325.844);
  --chart-1: oklch(0.471 0.203 325.844);
  --chart-2: oklch(0.638 0.13 106.261);
  --chart-3: oklch(0.609 0.101 189.406);
  --chart-4: oklch(0.678 0.138 106.253);
  --chart-5: oklch(0.475 0.208 325.834);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.015 325.433);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.177 0.008 104.676);
  --muted-foreground: oklch(0.763 0.015 104.308);
  --popover: oklch(0.087 0.015 325.433);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.087 0.015 325.433);
  --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.471 0.203 325.844);
  --primary-foreground: oklch(0.944 0.037 324.356);
  --secondary: oklch(0.638 0.13 106.261);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.609 0.101 189.406);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.605 0.211 34.185);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.471 0.203 325.844);
  --chart-1: oklch(0.471 0.203 325.844);
  --chart-2: oklch(0.638 0.13 106.261);
  --chart-3: oklch(0.609 0.101 189.406);
  --chart-4: oklch(0.678 0.138 106.253);
  --chart-5: oklch(0.475 0.208 325.834);
}