Nautical for shadcn/ui

Nautical is a shadcn/ui theme built around a teal primary color (#78bfbc) with red accents (#bf787b). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#78bfbc) on a neutral background (#010404).

Color palette

TokenLightDark
Background
#ffffffwhite
#010404black
Foreground
#020808black
#ffffffwhite
Card
#fcfcfcsnow
#020808black
Card foreground
#010404black
#ffffffwhite
Popover
#fcfcfcsnow
#020808black
Popover foreground
#010404black
#ffffffwhite
Primary
#78bfbcmediumaquamarine
#78bfbcmediumaquamarine
Primary foreground
#020303black
#020303black
Secondary
#bf787brosybrown
#bf787brosybrown
Secondary foreground
#030202black
#030202black
Muted
#ebe5e5linen
#1a1414black
Muted foreground
#535050darkslategray
#afacacdarkgray
Accent
#bf787brosybrown
#bf787brosybrown
Accent foreground
#030202black
#030202black
Destructive
#943705saddlebrown
#ec5809orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#78bfbcmediumaquamarine
#78bfbcmediumaquamarine

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card20.13:1AAA
Primary button9.83:1AAA
Secondary button6.10:1AA
Muted text6.40:1AA
Accent6.10:1AA
Destructive7.48:1AAA
Dark mode
Text on background20.57:1AAA
Text on card20.17:1AAA
Primary button9.83:1AAA
Secondary button6.10:1AA
Muted text8.09:1AAA
Accent6.10:1AA
Destructive3.51:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.015 192.376);
  --muted: oklch(0.926 0.007 13.768);
  --muted-foreground: oklch(0.434 0.004 13.804);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.1 0.012 192.376);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.1 0.012 192.376);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.758 0.072 191.684);
  --primary-foreground: oklch(0.097 0.007 192.793);
  --secondary: oklch(0.649 0.09 16.61);
  --secondary-foreground: oklch(0.086 0.009 14.872);
  --accent: oklch(0.649 0.09 16.61);
  --accent-foreground: oklch(0.086 0.009 14.872);
  --destructive: oklch(0.462 0.135 42.27);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.758 0.072 191.684);
  --chart-1: oklch(0.758 0.072 191.684);
  --chart-2: oklch(0.649 0.09 16.61);
  --chart-3: oklch(0.649 0.09 16.61);
  --chart-4: oklch(0.675 0.082 16.192);
  --chart-5: oklch(0.764 0.077 191.558);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 192.437);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.198 0.011 14.773);
  --muted-foreground: oklch(0.746 0.004 13.707);
  --popover: oklch(0.125 0.014 192.437);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.014 192.437);
  --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.758 0.072 191.684);
  --primary-foreground: oklch(0.097 0.007 192.793);
  --secondary: oklch(0.649 0.09 16.61);
  --secondary-foreground: oklch(0.086 0.009 14.872);
  --accent: oklch(0.649 0.09 16.61);
  --accent-foreground: oklch(0.086 0.009 14.872);
  --destructive: oklch(0.65 0.197 41.145);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.758 0.072 191.684);
  --chart-1: oklch(0.758 0.072 191.684);
  --chart-2: oklch(0.649 0.09 16.61);
  --chart-3: oklch(0.649 0.09 16.61);
  --chart-4: oklch(0.675 0.082 16.192);
  --chart-5: oklch(0.764 0.077 191.558);
}