Subsidiary for shadcn/ui

Subsidiary is a shadcn/ui theme built around a vivid deep yellow primary color (#745d02) with vivid deep blue accents (#021974). The light mode uses a neutral background (#fefdfb). Dark mode keeps the vivid deep yellow primary (#745d02) on a yellow-tinted background (#0e0c07).

Color palette

TokenLightDark
Background
#fefdfbsnow
#0e0c07black
Foreground
#0c0a04black
#fdfdfbsnow
Card
#fcfbf7snow
#110f08black
Card foreground
#080702black
#ffffffwhite
Popover
#fefdfbsnow
#0e0c07black
Popover foreground
#0c0a04black
#fdfdfbsnow
Primary
#745d02olive
#745d02olive
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#021974midnightblue
#021974midnightblue
Secondary foreground
#aabafelightsteelblue
#aabafelightsteelblue
Muted
#dee0e8gainsboro
#171921black
Muted foreground
#4e515adarkslategray
#a5a7b1darkgray
Accent
#021974midnightblue
#021974midnightblue
Accent foreground
#aabafelightsteelblue
#aabafelightsteelblue
Destructive
#a62508firebrick
#f43a10orangered
Destructive foreground
#fee7e2mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#745d02olive
#745d02olive

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.53:1AAA
Primary button6.37:1AA
Secondary button8.04:1AAA
Muted text6.01:1AA
Accent8.04:1AAA
Destructive6.16:1AA
Dark mode
Text on background19.18:1AAA
Text on card19.12:1AAA
Primary button6.37:1AA
Secondary button8.04:1AAA
Muted text7.31:1AAA
Accent8.04:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 95.066);
  --foreground: oklch(0.144 0.017 98.677);
  --muted: oklch(0.907 0.011 274.882);
  --muted-foreground: oklch(0.435 0.016 274.562);
  --popover: oklch(0.994 0.003 95.066);
  --popover-foreground: oklch(0.144 0.017 98.677);
  --card: oklch(0.989 0.005 95.098);
  --card-foreground: oklch(0.126 0.015 99.118);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.486 0.099 91.974);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.281 0.155 264.271);
  --secondary-foreground: oklch(0.802 0.097 273.212);
  --accent: oklch(0.281 0.155 264.271);
  --accent-foreground: oklch(0.802 0.097 273.212);
  --destructive: oklch(0.474 0.169 33.083);
  --destructive-foreground: oklch(0.945 0.026 32.688);
  --ring: oklch(0.486 0.099 91.974);
  --chart-1: oklch(0.486 0.099 91.974);
  --chart-2: oklch(0.281 0.155 264.271);
  --chart-3: oklch(0.281 0.155 264.271);
  --chart-4: oklch(0.305 0.17 264.293);
  --chart-5: oklch(0.491 0.1 91.743);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.012 96.488);
  --foreground: oklch(0.994 0.002 95.059);
  --muted: oklch(0.215 0.016 273.979);
  --muted-foreground: oklch(0.73 0.014 274.797);
  --popover: oklch(0.155 0.012 96.488);
  --popover-foreground: oklch(0.994 0.002 95.059);
  --card: oklch(0.17 0.014 95.877);
  --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.486 0.099 91.974);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.281 0.155 264.271);
  --secondary-foreground: oklch(0.802 0.097 273.212);
  --accent: oklch(0.281 0.155 264.271);
  --accent-foreground: oklch(0.802 0.097 273.212);
  --destructive: oklch(0.632 0.226 33.013);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.486 0.099 91.974);
  --chart-1: oklch(0.486 0.099 91.974);
  --chart-2: oklch(0.281 0.155 264.271);
  --chart-3: oklch(0.281 0.155 264.271);
  --chart-4: oklch(0.305 0.17 264.293);
  --chart-5: oklch(0.491 0.1 91.743);
}