Only for shadcn/ui

Only is a shadcn/ui theme built around a pink primary color (#dd5a95) with blue accents (#5a95dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#dd5a95) on a pink-tinted background (#0e060a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e060ablack
Foreground
#0d0207black
#fbf9fasnow
Card
#fcfcfcsnow
#12080cblack
Card foreground
#090205black
#fdfcfcsnow
Popover
#fcfcfcsnow
#12080cblack
Popover foreground
#090205black
#fdfcfcsnow
Primary
#dd5a95palevioletred
#dd5a95palevioletred
Primary foreground
#000000black
#000000black
Secondary
#95dd5ayellowgreen
#95dd5ayellowgreen
Secondary foreground
#020401black
#020401black
Muted
#e2eadcgainsboro
#1b2315black
Muted foreground
#657458dimgray
#98a78bdarkseagreen
Accent
#5a95ddcornflowerblue
#5a95ddcornflowerblue
Accent foreground
#010204black
#010204black
Destructive
#a22901firebrick
#fe4c10orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dd5a95palevioletred
#dd5a95palevioletred

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.09:1AAA
Primary button5.97:1AA
Secondary button12.53:1AAA
Muted text4.05:1AA Large
Accent6.69:1AA
Destructive7.33:1AAA
Dark mode
Text on background19.07:1AAA
Text on card19.27:1AAA
Primary button5.97:1AA
Secondary button12.53:1AAA
Muted text6.35:1AA
Accent6.69:1AA
Destructive3.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.119 0.029 347.943);
  --muted: oklch(0.927 0.02 130.638);
  --muted-foreground: oklch(0.539 0.047 131.306);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.104 0.025 347.424);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.104 0.025 347.424);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.652 0.174 354.992);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.823 0.179 133.228);
  --secondary-foreground: oklch(0.102 0.019 128.928);
  --accent: oklch(0.661 0.125 254.351);
  --accent-foreground: oklch(0.087 0.012 243.524);
  --destructive: oklch(0.472 0.163 35.505);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.652 0.174 354.992);
  --chart-1: oklch(0.652 0.174 354.992);
  --chart-2: oklch(0.823 0.179 133.228);
  --chart-3: oklch(0.661 0.125 254.351);
  --chart-4: oklch(0.836 0.168 132.883);
  --chart-5: oklch(0.652 0.181 355.346);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.018 349.109);
  --foreground: oklch(0.984 0.002 347.864);
  --muted: oklch(0.243 0.027 131.564);
  --muted-foreground: oklch(0.709 0.044 131.043);
  --popover: oklch(0.15 0.021 350.768);
  --popover-foreground: oklch(0.992 0.001 347.838);
  --card: oklch(0.15 0.021 350.768);
  --card-foreground: oklch(0.992 0.001 347.838);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.652 0.174 354.992);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.823 0.179 133.228);
  --secondary-foreground: oklch(0.102 0.019 128.928);
  --accent: oklch(0.661 0.125 254.351);
  --accent-foreground: oklch(0.087 0.012 243.524);
  --destructive: oklch(0.665 0.222 35.86);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.652 0.174 354.992);
  --chart-1: oklch(0.652 0.174 354.992);
  --chart-2: oklch(0.823 0.179 133.228);
  --chart-3: oklch(0.661 0.125 254.351);
  --chart-4: oklch(0.836 0.168 132.883);
  --chart-5: oklch(0.652 0.181 355.346);
}