Simple for shadcn/ui

Simple is a shadcn/ui theme built around a deep pink primary color (#4c1f2d) with deep teal accents (#1f4c3e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#4c1f2d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040102black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#040102black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#040102black
#ffffffwhite
Primary
#4c1f2ddarkslategray
#4c1f2ddarkslategray
Primary foreground
#e3bac7thistle
#e3bac7thistle
Secondary
#1f4c3edarkslategray
#1f4c3edarkslategray
Secondary foreground
#bae3d6powderblue
#bae3d6powderblue
Muted
#d8e3e0gainsboro
#1c2723black
Muted foreground
#4e5f5adimgray
#a0b1abdarkgray
Accent
#1f4c3edarkslategray
#1f4c3edarkslategray
Accent foreground
#bae3d6powderblue
#bae3d6powderblue
Destructive
#8b3604saddlebrown
#f86612orangered
Destructive foreground
#fdd9c4bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4c1f2ddarkslategray
#4c1f2ddarkslategray

Contrast

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

Light mode
Text on background20.78:1AAA
Text on card20.78:1AAA
Primary button7.85:1AAA
Secondary button6.95:1AA
Muted text5.16:1AA
Accent6.95:1AA
Destructive6.09:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.85:1AAA
Secondary button6.95:1AA
Muted text6.89:1AA
Accent6.95:1AA
Destructive6.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.082 0.018 355.214);
  --muted: oklch(0.908 0.013 175.194);
  --muted-foreground: oklch(0.47 0.023 174.108);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.082 0.018 355.214);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.082 0.018 355.214);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.31 0.07 2.083);
  --primary-foreground: oklch(0.829 0.05 357.28);
  --secondary: oklch(0.38 0.056 169.906);
  --secondary-foreground: oklch(0.883 0.046 174.001);
  --accent: oklch(0.38 0.056 169.906);
  --accent-foreground: oklch(0.883 0.046 174.001);
  --destructive: oklch(0.445 0.127 43.605);
  --destructive-foreground: oklch(0.91 0.05 51.883);
  --ring: oklch(0.31 0.07 2.083);
  --chart-1: oklch(0.31 0.07 2.083);
  --chart-2: oklch(0.38 0.056 169.906);
  --chart-3: oklch(0.38 0.056 169.906);
  --chart-4: oklch(0.416 0.062 169.758);
  --chart-5: oklch(0.309 0.075 2.61);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.26 0.017 173.531);
  --muted-foreground: oklch(0.745 0.021 174.779);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.31 0.07 2.083);
  --primary-foreground: oklch(0.829 0.05 357.28);
  --secondary: oklch(0.38 0.056 169.906);
  --secondary-foreground: oklch(0.883 0.046 174.001);
  --accent: oklch(0.38 0.056 169.906);
  --accent-foreground: oklch(0.883 0.046 174.001);
  --destructive: oklch(0.685 0.196 43.442);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.31 0.07 2.083);
  --chart-1: oklch(0.31 0.07 2.083);
  --chart-2: oklch(0.38 0.056 169.906);
  --chart-3: oklch(0.38 0.056 169.906);
  --chart-4: oklch(0.416 0.062 169.758);
  --chart-5: oklch(0.309 0.075 2.61);
}