Only for shadcn/ui

Only is a shadcn/ui theme built around a muted light green primary color (#d9e4d2) with muted light green accents (#d2e4d5). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#d9e4d2) on a green-tinted background (#090f05).

Color palette

TokenLightDark
Background
#ffffffwhite
#090f05black
Foreground
#0b1306black
#fcfdfcwhite
Card
#ffffffwhite
#090f05black
Card foreground
#0b1306black
#fcfdfcwhite
Popover
#ffffffwhite
#090f05black
Popover foreground
#0b1306black
#fcfdfcwhite
Primary
#d9e4d2gainsboro
#d9e4d2gainsboro
Primary foreground
#3e5332darkslategray
#3e5332darkslategray
Secondary
#e2e4d2gainsboro
#e2e4d2gainsboro
Secondary foreground
#4e5332darkolivegreen
#4e5332darkolivegreen
Muted
#e4e8c9gainsboro
#313617darkslategray
Muted foreground
#696b5bdimgray
#a1a494darkgray
Accent
#d2e4d5gainsboro
#d2e4d5gainsboro
Accent foreground
#325336darkslategray
#325336darkslategray
Destructive
#691002maroon
#fa2605orangered
Destructive foreground
#fdaca0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d9e4d2gainsboro
#d9e4d2gainsboro

Contrast

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

Light mode
Text on background18.91:1AAA
Text on card18.91:1AAA
Primary button6.43:1AA
Secondary button6.24:1AA
Muted text4.33:1AA Large
Accent6.52:1AA
Destructive6.91:1AA
Dark mode
Text on background19.03:1AAA
Text on card19.03:1AAA
Primary button6.43:1AA
Secondary button6.24:1AA
Muted text4.95:1AA
Accent6.52:1AA
Destructive3.93: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.175 0.03 134.142);
  --muted: oklch(0.92 0.041 113.367);
  --muted-foreground: oklch(0.523 0.024 113.411);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.175 0.03 134.142);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.175 0.03 134.142);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.906 0.027 133.793);
  --primary-foreground: oklch(0.415 0.059 134.64);
  --secondary: oklch(0.913 0.024 113.033);
  --secondary-foreground: oklch(0.429 0.051 114.781);
  --accent: oklch(0.902 0.028 149.29);
  --accent-foreground: oklch(0.408 0.062 147.578);
  --destructive: oklch(0.338 0.124 32.12);
  --destructive-foreground: oklch(0.82 0.097 28.991);
  --ring: oklch(0.906 0.027 133.793);
  --chart-1: oklch(0.906 0.027 133.793);
  --chart-2: oklch(0.913 0.024 113.033);
  --chart-3: oklch(0.902 0.028 149.29);
  --chart-4: oklch(0.932 0.019 112.92);
  --chart-5: oklch(0.908 0.03 133.815);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.023 133.184);
  --foreground: oklch(0.993 0.002 133.619);
  --muted: oklch(0.319 0.049 115.493);
  --muted-foreground: oklch(0.711 0.023 113.139);
  --popover: oklch(0.158 0.023 133.184);
  --popover-foreground: oklch(0.993 0.002 133.619);
  --card: oklch(0.158 0.023 133.184);
  --card-foreground: oklch(0.993 0.002 133.619);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.906 0.027 133.793);
  --primary-foreground: oklch(0.415 0.059 134.64);
  --secondary: oklch(0.913 0.024 113.033);
  --secondary-foreground: oklch(0.429 0.051 114.781);
  --accent: oklch(0.902 0.028 149.29);
  --accent-foreground: oklch(0.408 0.062 147.578);
  --destructive: oklch(0.63 0.243 30.973);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.906 0.027 133.793);
  --chart-1: oklch(0.906 0.027 133.793);
  --chart-2: oklch(0.913 0.024 113.033);
  --chart-3: oklch(0.902 0.028 149.29);
  --chart-4: oklch(0.932 0.019 112.92);
  --chart-5: oklch(0.908 0.03 133.815);
}