Ordinary for shadcn/ui

Ordinary is a shadcn/ui theme built around a green primary color (#3caa52) with muted green accents (#b2c2b5). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#3caa52) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefcwhite
#000000black
Foreground
#051007black
#f8fcf9mintcream
Card
#f8fcf8mintcream
#030303black
Card foreground
#030c05black
#fcfdfcwhite
Popover
#fbfefcwhite
#000000black
Popover foreground
#051007black
#f8fcf9mintcream
Primary
#3caa52mediumseagreen
#3caa52mediumseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d1d6d2lightgrey
#202220black
Secondary foreground
#383e39darkslategray
#b7bdb8silver
Muted
#eef7efhoneydew
#08110ablack
Muted foreground
#4c6751darkolivegreen
#98b39edarkseagreen
Accent
#b2c2b5silver
#2b362ddarkslategray
Accent foreground
#1d251fblack
#c4cfc6silver
Destructive
#a83800saddlebrown
#ff5805orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3caa52mediumseagreen
#3caa52mediumseagreen

Contrast

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

Light mode
Text on background19.05:1AAA
Text on card19.17:1AAA
Primary button2.97:1Fail
Secondary button7.44:1AAA
Muted text5.69:1AA
Accent8.46:1AAA
Destructive6.48:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button2.97:1Fail
Secondary button8.34:1AAA
Muted text8.45:1AAA
Accent7.86:1AAA
Destructive6.66:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 151.952);
  --foreground: oklch(0.157 0.027 150.471);
  --muted: oklch(0.967 0.014 151.786);
  --muted-foreground: oklch(0.485 0.047 150.452);
  --popover: oklch(0.994 0.004 151.952);
  --popover-foreground: oklch(0.157 0.027 150.471);
  --card: oklch(0.987 0.007 151.897);
  --card-foreground: oklch(0.141 0.023 151.064);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.654 0.161 147.145);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.871 0.007 151.891);
  --secondary-foreground: oklch(0.355 0.011 151.523);
  --accent: oklch(0.799 0.026 151.512);
  --accent-foreground: oklch(0.255 0.016 150.995);
  --destructive: oklch(0.499 0.157 39.917);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.654 0.161 147.145);
  --chart-1: oklch(0.654 0.161 147.145);
  --chart-2: oklch(0.871 0.007 151.891);
  --chart-3: oklch(0.799 0.026 151.512);
  --chart-4: oklch(0.894 0.005 151.914);
  --chart-5: oklch(0.662 0.169 146.886);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.005 151.927);
  --muted: oklch(0.167 0.021 150.213);
  --muted-foreground: oklch(0.741 0.042 151.114);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.005 151.927);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.003 151.967);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.654 0.161 147.145);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.25 0.006 151.67);
  --secondary-foreground: oklch(0.792 0.009 151.842);
  --accent: oklch(0.319 0.021 150.983);
  --accent-foreground: oklch(0.844 0.018 151.679);
  --destructive: oklch(0.68 0.215 39.376);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.654 0.161 147.145);
  --chart-1: oklch(0.654 0.161 147.145);
  --chart-2: oklch(0.25 0.006 151.67);
  --chart-3: oklch(0.319 0.021 150.983);
  --chart-4: oklch(0.283 0.007 151.65);
  --chart-5: oklch(0.662 0.169 146.886);
}