Colorless for shadcn/ui

Colorless is a shadcn/ui theme built around a vivid green primary color (#5ca50d) with vivid green accents (#10a50d). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#5ca50d) on a green-tinted background (#080a05).

Color palette

TokenLightDark
Background
#ffffffwhite
#080a05black
Foreground
#000000black
#f7f9f6whitesmoke
Card
#ffffffwhite
#080a05black
Card foreground
#000000black
#f7f9f6whitesmoke
Popover
#ffffffwhite
#080a05black
Popover foreground
#000000black
#f7f9f6whitesmoke
Primary
#5ca50dolivedrab
#5ca50dolivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a5a30ddarkgoldenrod
#a5a30ddarkgoldenrod
Secondary foreground
#000000black
#000000black
Muted
#e7e7d5gainsboro
#2a2a18black
Muted foreground
#6d6d5adimgray
#a5a592darkgray
Accent
#10a50dforestgreen
#10a50dforestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d51c0bfirebrick
#e91f0cred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5ca50dolivedrab
#5ca50dolivedrab

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button3.06:1AA Large
Secondary button7.81:1AAA
Muted text4.20:1AA Large
Accent3.27:1AA Large
Destructive5.24:1AA
Dark mode
Text on background18.79:1AAA
Text on card18.79:1AAA
Primary button3.06:1AA Large
Secondary button7.81:1AAA
Muted text5.80:1AA
Accent3.27:1AA Large
Destructive4.51:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.923 0.024 106.076);
  --muted-foreground: oklch(0.53 0.029 106.565);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.649 0.183 134.079);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.694 0.147 108.564);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.627 0.209 142.493);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.558 0.216 30.079);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.649 0.183 134.079);
  --chart-1: oklch(0.649 0.183 134.079);
  --chart-2: oklch(0.694 0.147 108.564);
  --chart-3: oklch(0.627 0.209 142.493);
  --chart-4: oklch(0.737 0.157 108.563);
  --chart-5: oklch(0.656 0.186 134.304);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.012 127.181);
  --foreground: oklch(0.98 0.004 127.841);
  --muted: oklch(0.28 0.031 107.409);
  --muted-foreground: oklch(0.717 0.028 106.281);
  --popover: oklch(0.14 0.012 127.181);
  --popover-foreground: oklch(0.98 0.004 127.841);
  --card: oklch(0.14 0.012 127.181);
  --card-foreground: oklch(0.98 0.004 127.841);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.649 0.183 134.079);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.694 0.147 108.564);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.627 0.209 142.493);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.595 0.232 30.071);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.649 0.183 134.079);
  --chart-1: oklch(0.649 0.183 134.079);
  --chart-2: oklch(0.694 0.147 108.564);
  --chart-3: oklch(0.627 0.209 142.493);
  --chart-4: oklch(0.737 0.157 108.563);
  --chart-5: oklch(0.656 0.186 134.304);
}