Small for shadcn/ui

Small is a shadcn/ui theme built around a vivid green primary color (#1ac011) with vivid red accents (#c0111a). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid green primary (#1ac011) on a neutral background (#030802).

Color palette

TokenLightDark
Background
#fbfefbwhite
#030802black
Foreground
#030d03black
#fcfdfcwhite
Card
#f7fdf7mintcream
#040c03black
Card foreground
#020802black
#ffffffwhite
Popover
#fbfefbwhite
#030802black
Popover foreground
#030d03black
#fcfdfcwhite
Primary
#1ac011limegreen
#1ac011limegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#111ac0mediumblue
#111ac0mediumblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d8d9e9gainsboro
#161727black
Muted foreground
#5a5b6cdimgray
#9393a5darkgray
Accent
#c0111afirebrick
#c0111afirebrick
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8c110ddarkred
#ec3c36crimson
Destructive foreground
#fbd2d0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1ac011limegreen
#1ac011limegreen

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.58:1AAA
Primary button2.43:1Fail
Secondary button10.87:1AAA
Muted text4.76:1AA
Accent6.27:1AA
Destructive6.91:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.84:1AAA
Primary button2.43:1Fail
Secondary button10.87:1AAA
Muted text5.86:1AA
Accent6.27:1AA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 144.102);
  --foreground: oklch(0.142 0.031 142.201);
  --muted: oklch(0.889 0.022 283.529);
  --muted-foreground: oklch(0.478 0.027 282.933);
  --popover: oklch(0.994 0.005 144.102);
  --popover-foreground: oklch(0.142 0.031 142.201);
  --card: oklch(0.988 0.01 144.073);
  --card-foreground: oklch(0.123 0.027 142.187);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.703 0.233 142.311);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.385 0.24 266.198);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.514 0.202 26.963);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.411 0.156 28.738);
  --destructive-foreground: oklch(0.897 0.046 20.379);
  --ring: oklch(0.703 0.233 142.311);
  --chart-1: oklch(0.703 0.233 142.311);
  --chart-2: oklch(0.385 0.24 266.198);
  --chart-3: oklch(0.514 0.202 26.963);
  --chart-4: oklch(0.405 0.254 266.084);
  --chart-5: oklch(0.711 0.237 142.323);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.023 142.469);
  --foreground: oklch(0.993 0.001 144.122);
  --muted: oklch(0.212 0.032 280.973);
  --muted-foreground: oklch(0.67 0.025 283.304);
  --popover: oklch(0.122 0.023 142.469);
  --popover-foreground: oklch(0.993 0.001 144.122);
  --card: oklch(0.14 0.027 142.477);
  --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.703 0.233 142.311);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.385 0.24 266.198);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.514 0.202 26.963);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.624 0.213 27.427);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.703 0.233 142.311);
  --chart-1: oklch(0.703 0.233 142.311);
  --chart-2: oklch(0.385 0.24 266.198);
  --chart-3: oklch(0.514 0.202 26.963);
  --chart-4: oklch(0.405 0.254 266.084);
  --chart-5: oklch(0.711 0.237 142.323);
}