Ideal for shadcn/ui

Ideal is a shadcn/ui theme built around a muted light pink primary color (#ece9ea) with muted light teal accents (#e9eceb). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the muted light pink primary (#ece9ea) on a pink-tinted background (#0b0407).

Color palette

TokenLightDark
Background
#fdf7f9snow
#0b0407black
Foreground
#090104black
#fdfcfcsnow
Card
#fdf7f9snow
#0b0407black
Card foreground
#090104black
#fdfcfcsnow
Popover
#fdf7f9snow
#0b0407black
Popover foreground
#090104black
#fdfcfcsnow
Primary
#ece9ealinen
#ece9ealinen
Primary foreground
#584b50darkslategray
#584b50darkslategray
Secondary
#e9eceblavender
#e9eceblavender
Secondary foreground
#4b5853darkslategray
#4b5853darkslategray
Muted
#e9f1eewhitesmoke
#0e1613black
Muted foreground
#41584fdarkslategray
#a7beb5darkgray
Accent
#e9eceblavender
#e9eceblavender
Accent foreground
#4b5853darkslategray
#4b5853darkslategray
Destructive
#640802maroon
#fc3f31tomato
Destructive foreground
#fda19blightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ece9ealinen
#ece9ealinen

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button6.86:1AA
Secondary button6.27:1AA
Muted text6.69:1AA
Accent6.27:1AA
Destructive6.78:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button6.86:1AA
Secondary button6.27:1AA
Muted text9.35:1AAA
Accent6.27:1AA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 350.822);
  --foreground: oklch(0.103 0.026 350.118);
  --muted: oklch(0.952 0.009 170.341);
  --muted-foreground: oklch(0.438 0.032 168.349);
  --popover: oklch(0.981 0.007 350.822);
  --popover-foreground: oklch(0.103 0.026 350.118);
  --card: oklch(0.981 0.007 350.822);
  --card-foreground: oklch(0.103 0.026 350.118);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.937 0.004 350.742);
  --primary-foreground: oklch(0.428 0.019 351.86);
  --secondary: oklch(0.941 0.004 170.505);
  --secondary-foreground: oklch(0.448 0.018 169.396);
  --accent: oklch(0.941 0.004 170.505);
  --accent-foreground: oklch(0.448 0.018 169.396);
  --destructive: oklch(0.323 0.125 30.524);
  --destructive-foreground: oklch(0.8 0.111 24.275);
  --ring: oklch(0.937 0.004 350.742);
  --chart-1: oklch(0.937 0.004 350.742);
  --chart-2: oklch(0.941 0.004 170.505);
  --chart-3: oklch(0.941 0.004 170.505);
  --chart-4: oklch(0.963 0.002 170.551);
  --chart-5: oklch(0.936 0.005 350.786);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.019 350.463);
  --foreground: oklch(0.992 0.001 350.661);
  --muted: oklch(0.19 0.013 168.412);
  --muted-foreground: oklch(0.781 0.028 169.551);
  --popover: oklch(0.123 0.019 350.463);
  --popover-foreground: oklch(0.992 0.001 350.661);
  --card: oklch(0.123 0.019 350.463);
  --card-foreground: oklch(0.992 0.001 350.661);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.937 0.004 350.742);
  --primary-foreground: oklch(0.428 0.019 351.86);
  --secondary: oklch(0.941 0.004 170.505);
  --secondary-foreground: oklch(0.448 0.018 169.396);
  --accent: oklch(0.941 0.004 170.505);
  --accent-foreground: oklch(0.448 0.018 169.396);
  --destructive: oklch(0.652 0.227 29.03);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.937 0.004 350.742);
  --chart-1: oklch(0.937 0.004 350.742);
  --chart-2: oklch(0.941 0.004 170.505);
  --chart-3: oklch(0.941 0.004 170.505);
  --chart-4: oklch(0.963 0.002 170.551);
  --chart-5: oklch(0.936 0.005 350.786);
}