Only for shadcn/ui

Only is a shadcn/ui theme built around a vivid red primary color (#eb4833) with vivid orange accents (#eba433). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#eb4833) on a red-tinted background (#100604).

Color palette

TokenLightDark
Background
#ffffffwhite
#100604black
Foreground
#110503black
#fdfcfcsnow
Card
#fcfcfcsnow
#140705black
Card foreground
#0d0403black
#ffffffwhite
Popover
#fcfcfcsnow
#140705black
Popover foreground
#0d0403black
#ffffffwhite
Primary
#eb4833tomato
#eb4833tomato
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#eb3379deeppink
#eb3379deeppink
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5d6dcgainsboro
#291a1fblack
Muted foreground
#6e5e64dimgray
#a19197rosybrown
Accent
#eba433goldenrod
#eba433goldenrod
Accent foreground
#000000black
#000000black
Destructive
#b52812firebrick
#ec5841tomato
Destructive foreground
#fffbfasnow
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eb4833tomato
#eb4833tomato

Contrast

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

Light mode
Text on background20.06:1AAA
Text on card19.83:1AAA
Primary button3.81:1AA Large
Secondary button3.98:1AA Large
Muted text4.35:1AA Large
Accent9.90:1AAA
Destructive6.24:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.75:1AAA
Primary button3.81:1AA Large
Secondary button3.98:1AA Large
Muted text5.57:1AA
Accent9.90:1AAA
Destructive6.03:1AA

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.136 0.025 32.466);
  --muted: oklch(0.891 0.018 352.176);
  --muted-foreground: oklch(0.499 0.023 352.868);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.122 0.021 33.128);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.122 0.021 33.128);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.632 0.203 30.801);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.627 0.221 3.741);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.77 0.147 74.207);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.505 0.18 31.592);
  --destructive-foreground: oklch(0.99 0.004 27.953);
  --ring: oklch(0.632 0.203 30.801);
  --chart-1: oklch(0.632 0.203 30.801);
  --chart-2: oklch(0.627 0.221 3.741);
  --chart-3: oklch(0.77 0.147 74.207);
  --chart-4: oklch(0.642 0.212 2.149);
  --chart-5: oklch(0.635 0.209 30.885);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.021 31.331);
  --foreground: oklch(0.992 0.001 26.449);
  --muted: oklch(0.238 0.026 354.561);
  --muted-foreground: oklch(0.672 0.021 352.476);
  --popover: oklch(0.149 0.025 30.6);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.149 0.025 30.6);
  --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.632 0.203 30.801);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.627 0.221 3.741);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.77 0.147 74.207);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.653 0.188 31.301);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.632 0.203 30.801);
  --chart-1: oklch(0.632 0.203 30.801);
  --chart-2: oklch(0.627 0.221 3.741);
  --chart-3: oklch(0.77 0.147 74.207);
  --chart-4: oklch(0.642 0.212 2.149);
  --chart-5: oklch(0.635 0.209 30.885);
}