Oar for shadcn/ui

Oar is a shadcn/ui theme built around an orange primary color (#c29280) with cyan accents (#80afc2). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#c29280) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#ffffffwhite
#030202black
Foreground
#100805black
#fdfcfcsnow
Card
#fcfcfcsnow
#070403black
Card foreground
#0c0604black
#ffffffwhite
Popover
#fcfcfcsnow
#070403black
Popover foreground
#0c0604black
#ffffffwhite
Primary
#c29280rosybrown
#c29280rosybrown
Primary foreground
#0a0605black
#0a0605black
Secondary
#80afc2mediumaquamarine
#80afc2mediumaquamarine
Secondary foreground
#05090ablack
#05090ablack
Muted
#ebf2f5whitesmoke
#0a1114black
Muted foreground
#595959dimgray
#a6a6a6darkgray
Accent
#80afc2mediumaquamarine
#80afc2mediumaquamarine
Accent foreground
#05090ablack
#05090ablack
Destructive
#9d3801saddlebrown
#fe7125tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c29280rosybrown
#c29280rosybrown

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.69:1AAA
Primary button7.42:1AAA
Secondary button8.39:1AAA
Muted text6.17:1AA
Accent8.39:1AAA
Destructive7.00:1AAA
Dark mode
Text on background20.21:1AAA
Text on card20.40:1AAA
Primary button7.42:1AAA
Secondary button8.39:1AAA
Muted text7.79:1AAA
Accent8.39:1AAA
Destructive7.58:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.017 48.195);
  --muted: oklch(0.956 0.009 223.222);
  --muted-foreground: oklch(0.465 0 180);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.13 0.015 50.273);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.13 0.015 50.273);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.701 0.064 42.557);
  --primary-foreground: oklch(0.13 0.009 47.597);
  --secondary: oklch(0.727 0.057 224.369);
  --secondary-foreground: oklch(0.134 0.009 219.604);
  --accent: oklch(0.727 0.057 224.369);
  --accent-foreground: oklch(0.134 0.009 219.604);
  --destructive: oklch(0.479 0.146 41.368);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.701 0.064 42.557);
  --chart-1: oklch(0.701 0.064 42.557);
  --chart-2: oklch(0.727 0.057 224.369);
  --chart-3: oklch(0.727 0.057 224.369);
  --chart-4: oklch(0.749 0.053 224.174);
  --chart-5: oklch(0.701 0.069 42.521);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.091 0.006 47.454);
  --foreground: oklch(0.992 0.001 43.123);
  --muted: oklch(0.174 0.013 224.225);
  --muted-foreground: oklch(0.724 0 180);
  --popover: oklch(0.114 0.008 47.454);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.114 0.008 47.454);
  --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.701 0.064 42.557);
  --primary-foreground: oklch(0.13 0.009 47.597);
  --secondary: oklch(0.727 0.057 224.369);
  --secondary-foreground: oklch(0.134 0.009 219.604);
  --accent: oklch(0.727 0.057 224.369);
  --accent-foreground: oklch(0.134 0.009 219.604);
  --destructive: oklch(0.71 0.19 44.236);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.701 0.064 42.557);
  --chart-1: oklch(0.701 0.064 42.557);
  --chart-2: oklch(0.727 0.057 224.369);
  --chart-3: oklch(0.727 0.057 224.369);
  --chart-4: oklch(0.749 0.053 224.174);
  --chart-5: oklch(0.701 0.069 42.521);
}