Hydrofoil for shadcn/ui

Hydrofoil is a shadcn/ui theme built around a deep orange primary color (#573714) with deep violet accents (#371457). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#573714) on a neutral background (#040302).

Color palette

TokenLightDark
Background
#ffffffwhite
#040302black
Foreground
#160d03black
#fcfaf8snow
Card
#fcfcfcsnow
#070503black
Card foreground
#120a03black
#fdfcfcsnow
Popover
#ffffffwhite
#040302black
Popover foreground
#160d03black
#fcfaf8snow
Primary
#573714saddlebrown
#573714saddlebrown
Primary foreground
#edd0b0wheat
#edd0b0wheat
Secondary
#145737darkslategray
#145737darkslategray
Secondary foreground
#b0edd0powderblue
#b0edd0powderblue
Muted
#cfe2d9gainsboro
#1d3027darkslategray
Muted foreground
#4a4f4ddarkslategray
#b0b5b3darkgray
Accent
#371457midnightblue
#371457midnightblue
Accent foreground
#d0b0edplum
#d0b0edplum
Destructive
#6b0c05maroon
#e5190bred
Destructive foreground
#fbada7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#573714saddlebrown
#573714saddlebrown

Contrast

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

Light mode
Text on background19.21:1AAA
Text on card19.19:1AAA
Primary button7.27:1AAA
Secondary button6.46:1AA
Muted text6.18:1AA
Accent7.95:1AAA
Destructive6.92:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.85:1AAA
Primary button7.27:1AAA
Secondary button6.46:1AA
Muted text6.73:1AA
Accent7.95:1AAA
Destructive4.69:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.168 0.026 71.59);
  --muted: oklch(0.897 0.024 165.286);
  --muted-foreground: oklch(0.422 0.007 165.57);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.168 0.026 71.59);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.154 0.023 74.824);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.367 0.067 64.482);
  --primary-foreground: oklch(0.873 0.053 68.906);
  --secondary: oklch(0.407 0.086 157.393);
  --secondary-foreground: oklch(0.897 0.074 163.574);
  --accent: oklch(0.285 0.115 303.343);
  --accent-foreground: oklch(0.805 0.091 307.934);
  --destructive: oklch(0.339 0.129 29.886);
  --destructive-foreground: oklch(0.821 0.093 23.815);
  --ring: oklch(0.367 0.067 64.482);
  --chart-1: oklch(0.367 0.067 64.482);
  --chart-2: oklch(0.407 0.086 157.393);
  --chart-3: oklch(0.285 0.115 303.343);
  --chart-4: oklch(0.447 0.096 157.18);
  --chart-5: oklch(0.369 0.07 64.021);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.094 0.007 75.222);
  --foreground: oklch(0.986 0.003 69.622);
  --muted: oklch(0.289 0.03 162.787);
  --muted-foreground: oklch(0.768 0.006 165.807);
  --popover: oklch(0.094 0.007 75.222);
  --popover-foreground: oklch(0.986 0.003 69.622);
  --card: oklch(0.118 0.009 75.222);
  --card-foreground: oklch(0.993 0.001 69.636);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.367 0.067 64.482);
  --primary-foreground: oklch(0.873 0.053 68.906);
  --secondary: oklch(0.407 0.086 157.393);
  --secondary-foreground: oklch(0.897 0.074 163.574);
  --accent: oklch(0.285 0.115 303.343);
  --accent-foreground: oklch(0.805 0.091 307.934);
  --destructive: oklch(0.586 0.231 29.757);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.367 0.067 64.482);
  --chart-1: oklch(0.367 0.067 64.482);
  --chart-2: oklch(0.407 0.086 157.393);
  --chart-3: oklch(0.285 0.115 303.343);
  --chart-4: oklch(0.447 0.096 157.18);
  --chart-5: oklch(0.369 0.07 64.021);
}