Rhinoceros for shadcn/ui

Rhinoceros is a shadcn/ui theme built around a vivid deep green primary color (#084f20) with vivid deep pink accents (#4f0837). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the vivid deep green primary (#084f20) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdf9mintcream
#000000black
Foreground
#05140ablack
#ffffffwhite
Card
#f7fdf9mintcream
#000000black
Card foreground
#05140ablack
#ffffffwhite
Popover
#f7fdf9mintcream
#000000black
Popover foreground
#05140ablack
#ffffffwhite
Primary
#084f20darkgreen
#084f20darkgreen
Primary foreground
#37eb73mediumseagreen
#37eb73mediumseagreen
Secondary
#4f0837maroon
#4f0837maroon
Secondary foreground
#f494d4plum
#f494d4plum
Muted
#ddd4dagainsboro
#2b2228darkslategray
Muted foreground
#51434cdarkslategray
#bcaeb8silver
Accent
#4f0837maroon
#4f0837maroon
Accent foreground
#f494d4plum
#f494d4plum
Destructive
#d75509chocolate
#f56714chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#084f20darkgreen
#084f20darkgreen

Contrast

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

Light mode
Text on background18.35:1AAA
Text on card18.35:1AAA
Primary button6.19:1AA
Secondary button7.06:1AAA
Muted text6.43:1AA
Accent7.06:1AAA
Destructive4.04:1AA Large
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.19:1AA
Secondary button7.06:1AAA
Muted text7.28:1AAA
Accent7.06:1AAA
Destructive6.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 157.075);
  --foreground: oklch(0.174 0.029 154.256);
  --muted: oklch(0.88 0.013 337.56);
  --muted-foreground: oklch(0.4 0.026 338.504);
  --popover: oklch(0.989 0.009 157.075);
  --popover-foreground: oklch(0.174 0.029 154.256);
  --card: oklch(0.989 0.009 157.075);
  --card-foreground: oklch(0.174 0.029 154.256);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.375 0.102 148.658);
  --primary-foreground: oklch(0.828 0.215 149.287);
  --secondary: oklch(0.291 0.112 345.859);
  --secondary-foreground: oklch(0.786 0.139 340.567);
  --accent: oklch(0.291 0.112 345.859);
  --accent-foreground: oklch(0.786 0.139 340.567);
  --destructive: oklch(0.613 0.179 42.716);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.375 0.102 148.658);
  --chart-1: oklch(0.375 0.102 148.658);
  --chart-2: oklch(0.291 0.112 345.859);
  --chart-3: oklch(0.291 0.112 345.859);
  --chart-4: oklch(0.324 0.127 346.193);
  --chart-5: oklch(0.378 0.104 148.429);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.264 0.018 338.559);
  --muted-foreground: oklch(0.765 0.022 337.827);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.375 0.102 148.658);
  --primary-foreground: oklch(0.828 0.215 149.287);
  --secondary: oklch(0.291 0.112 345.859);
  --secondary-foreground: oklch(0.786 0.139 340.567);
  --accent: oklch(0.291 0.112 345.859);
  --accent-foreground: oklch(0.786 0.139 340.567);
  --destructive: oklch(0.682 0.193 43.804);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.375 0.102 148.658);
  --chart-1: oklch(0.375 0.102 148.658);
  --chart-2: oklch(0.291 0.112 345.859);
  --chart-3: oklch(0.291 0.112 345.859);
  --chart-4: oklch(0.324 0.127 346.193);
  --chart-5: oklch(0.378 0.104 148.429);
}