Secondary for shadcn/ui

Secondary is a shadcn/ui theme built around a deep teal primary color (#1a5b5a) with deep yellow accents (#5b5a1a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#1a5b5a) on a neutral background (#010404).

Color palette

TokenLightDark
Background
#ffffffwhite
#010404black
Foreground
#061313black
#ffffffwhite
Card
#fcfcfcsnow
#030707black
Card foreground
#05100fblack
#ffffffwhite
Popover
#fcfcfcsnow
#030707black
Popover foreground
#05100fblack
#ffffffwhite
Primary
#1a5b5adarkslategray
#1a5b5adarkslategray
Primary foreground
#bcebebpaleturquoise
#bcebebpaleturquoise
Secondary
#5a1a5bindigo
#5a1a5bindigo
Secondary foreground
#ebbcebthistle
#ebbcebthistle
Muted
#f5eaf5whitesmoke
#150a15black
Muted foreground
#635f63dimgray
#a09ca0darkgray
Accent
#5b5a1adarkolivegreen
#5b5a1adarkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#802b0asaddlebrown
#f17341tomato
Destructive foreground
#fad1c1peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a5b5adarkslategray
#1a5b5adarkslategray

Contrast

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

Light mode
Text on background18.91:1AAA
Text on card18.89:1AAA
Primary button6.04:1AA
Secondary button7.44:1AAA
Muted text5.37:1AA
Accent7.20:1AAA
Destructive6.58:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.22:1AAA
Primary button6.04:1AA
Secondary button7.44:1AAA
Muted text7.15:1AAA
Accent7.20:1AAA
Destructive7.25:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.176 0.019 194.19);
  --muted: oklch(0.949 0.019 325.24);
  --muted-foreground: oklch(0.49 0.008 325.209);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.16 0.017 194.329);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.16 0.017 194.329);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.431 0.063 193.456);
  --primary-foreground: oklch(0.908 0.049 195.059);
  --secondary: oklch(0.349 0.125 327.159);
  --secondary-foreground: oklch(0.851 0.082 325.744);
  --accent: oklch(0.455 0.084 108.364);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.412 0.124 38.903);
  --destructive-foreground: oklch(0.893 0.051 42.72);
  --ring: oklch(0.431 0.063 193.456);
  --chart-1: oklch(0.431 0.063 193.456);
  --chart-2: oklch(0.349 0.125 327.159);
  --chart-3: oklch(0.455 0.084 108.364);
  --chart-4: oklch(0.379 0.138 327.182);
  --chart-5: oklch(0.436 0.066 193.389);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.008 194.811);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.165 0.029 326.225);
  --muted-foreground: oklch(0.698 0.007 325.171);
  --popover: oklch(0.123 0.011 194.811);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.123 0.011 194.811);
  --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.431 0.063 193.456);
  --primary-foreground: oklch(0.908 0.049 195.059);
  --secondary: oklch(0.349 0.125 327.159);
  --secondary-foreground: oklch(0.851 0.082 325.744);
  --accent: oklch(0.455 0.084 108.364);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.696 0.168 41.105);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.431 0.063 193.456);
  --chart-1: oklch(0.431 0.063 193.456);
  --chart-2: oklch(0.349 0.125 327.159);
  --chart-3: oklch(0.455 0.084 108.364);
  --chart-4: oklch(0.379 0.138 327.182);
  --chart-5: oklch(0.436 0.066 193.389);
}