Route for shadcn/ui

Route is a shadcn/ui theme built around a deep green primary color (#344b1b) with deep green accents (#1c4b1b). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#344b1b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0d1604black
#fafbf9snow
Card
#ffffffwhite
#000000black
Card foreground
#0d1604black
#fafbf9snow
Popover
#ffffffwhite
#000000black
Popover foreground
#0d1604black
#fafbf9snow
Primary
#344b1bdarkolivegreen
#344b1bdarkolivegreen
Primary foreground
#cde4b4palegoldenrod
#cde4b4palegoldenrod
Secondary
#4b4a1bdarkolivegreen
#4b4a1bdarkolivegreen
Secondary foreground
#e4e3b4palegoldenrod
#e4e3b4palegoldenrod
Muted
#f5f4f0whitesmoke
#0f0f0ablack
Muted foreground
#676651dimgray
#aeae98darkgray
Accent
#1c4b1bdarkgreen
#1c4b1bdarkgreen
Accent foreground
#b5e4b4silver
#b5e4b4silver
Destructive
#b0400cfirebrick
#f06424chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#344b1bdarkolivegreen
#344b1bdarkolivegreen

Contrast

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

Light mode
Text on background18.52:1AAA
Text on card18.52:1AAA
Primary button7.08:1AAA
Secondary button6.93:1AA
Muted text5.31:1AA
Accent7.11:1AAA
Destructive5.83:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button7.08:1AAA
Secondary button6.93:1AA
Muted text8.51:1AAA
Accent7.11:1AAA
Destructive6.55:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.184 0.037 129.428);
  --muted: oklch(0.967 0.006 105.727);
  --muted-foreground: oklch(0.506 0.033 106.714);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.184 0.037 129.428);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.184 0.037 129.428);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.382 0.078 130.882);
  --primary-foreground: oklch(0.889 0.068 128.73);
  --secondary: oklch(0.4 0.067 108.18);
  --secondary-foreground: oklch(0.905 0.062 106.765);
  --accent: oklch(0.368 0.092 143.136);
  --accent-foreground: oklch(0.873 0.082 144.418);
  --destructive: oklch(0.523 0.157 40.376);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.382 0.078 130.882);
  --chart-1: oklch(0.382 0.078 130.882);
  --chart-2: oklch(0.4 0.067 108.18);
  --chart-3: oklch(0.368 0.092 143.136);
  --chart-4: oklch(0.439 0.075 108.211);
  --chart-5: oklch(0.386 0.082 131.083);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.002 127.816);
  --muted: oklch(0.167 0.009 106.547);
  --muted-foreground: oklch(0.745 0.03 106.317);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.002 127.816);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.002 127.816);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.382 0.078 130.882);
  --primary-foreground: oklch(0.889 0.068 128.73);
  --secondary: oklch(0.4 0.067 108.18);
  --secondary-foreground: oklch(0.905 0.062 106.765);
  --accent: oklch(0.368 0.092 143.136);
  --accent-foreground: oklch(0.873 0.082 144.418);
  --destructive: oklch(0.672 0.187 41.824);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.382 0.078 130.882);
  --chart-1: oklch(0.382 0.078 130.882);
  --chart-2: oklch(0.4 0.067 108.18);
  --chart-3: oklch(0.368 0.092 143.136);
  --chart-4: oklch(0.439 0.075 108.211);
  --chart-5: oklch(0.386 0.082 131.083);
}