Hubris for shadcn/ui

Hubris is a shadcn/ui theme built around a deep green primary color (#0f522e) with deep orange accents (#522e0f). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the deep green primary (#0f522e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdfamintcream
#000000black
Foreground
#020805black
#f8fbfamintcream
Card
#f3fcf7mintcream
#030303black
Card foreground
#010402black
#fcfdfcwhite
Popover
#f3fcf7mintcream
#030303black
Popover foreground
#010402black
#fcfdfcwhite
Primary
#0f522edarkslategray
#0f522edarkslategray
Primary foreground
#a5eec7powderblue
#a5eec7powderblue
Secondary
#2e0f52midnightblue
#2e0f52midnightblue
Secondary foreground
#c7a5eeplum
#c7a5eeplum
Muted
#edeaf0lavender
#120f15black
Muted foreground
#635770dimgray
#9b8fa8darkgray
Accent
#522e0fsaddlebrown
#522e0fsaddlebrown
Accent foreground
#eec7a5wheat
#eec7a5wheat
Destructive
#a40704darkred
#e50a06red
Destructive foreground
#fedddcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0f522edarkslategray
#0f522edarkslategray

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.69:1AAA
Primary button6.91:1AA
Secondary button7.68:1AAA
Muted text5.65:1AA
Accent7.58:1AAA
Destructive6.35:1AA
Dark mode
Text on background20.17:1AAA
Text on card20.28:1AAA
Primary button6.91:1AA
Secondary button7.68:1AAA
Muted text6.23:1AA
Accent7.58:1AAA
Destructive4.80:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.008 163.236);
  --foreground: oklch(0.125 0.019 163.524);
  --muted: oklch(0.942 0.008 307.013);
  --muted-foreground: oklch(0.476 0.043 305.994);
  --popover: oklch(0.983 0.012 163.129);
  --popover-foreground: oklch(0.099 0.015 163.524);
  --card: oklch(0.983 0.012 163.129);
  --card-foreground: oklch(0.099 0.015 163.524);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.388 0.088 154.538);
  --primary-foreground: oklch(0.891 0.092 160.499);
  --secondary: oklch(0.262 0.113 299.652);
  --secondary-foreground: oklch(0.777 0.109 305.363);
  --accent: oklch(0.341 0.068 58.245);
  --accent-foreground: oklch(0.855 0.064 62.99);
  --destructive: oklch(0.454 0.183 29.176);
  --destructive-foreground: oklch(0.924 0.037 19.002);
  --ring: oklch(0.388 0.088 154.538);
  --chart-1: oklch(0.388 0.088 154.538);
  --chart-2: oklch(0.262 0.113 299.652);
  --chart-3: oklch(0.341 0.068 58.245);
  --chart-4: oklch(0.287 0.127 299.301);
  --chart-5: oklch(0.392 0.091 154.19);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.004 163.345);
  --muted: oklch(0.175 0.012 306.302);
  --muted-foreground: oklch(0.668 0.04 306.38);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.993 0.002 163.395);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.002 163.395);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.388 0.088 154.538);
  --primary-foreground: oklch(0.891 0.092 160.499);
  --secondary: oklch(0.262 0.113 299.652);
  --secondary-foreground: oklch(0.777 0.109 305.363);
  --accent: oklch(0.341 0.068 58.245);
  --accent-foreground: oklch(0.855 0.064 62.99);
  --destructive: oklch(0.581 0.235 29.194);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.388 0.088 154.538);
  --chart-1: oklch(0.388 0.088 154.538);
  --chart-2: oklch(0.262 0.113 299.652);
  --chart-3: oklch(0.341 0.068 58.245);
  --chart-4: oklch(0.287 0.127 299.301);
  --chart-5: oklch(0.392 0.091 154.19);
}