Transmission for shadcn/ui

Transmission is a shadcn/ui theme built around a green primary color (#8acca0) with teal accents (#8accc1). The light mode uses a neutral background (#f8fbf9). Dark mode keeps the green primary (#8acca0) on a neutral background (#020804).

Color palette

TokenLightDark
Background
#f8fbf9mintcream
#020804black
Foreground
#031208black
#f6f9f7whitesmoke
Card
#f5faf7whitesmoke
#030c06black
Card foreground
#020d06black
#f9fbfamintcream
Popover
#f5faf7whitesmoke
#030c06black
Popover foreground
#020d06black
#f9fbfamintcream
Primary
#8acca0darkseagreen
#8acca0darkseagreen
Primary foreground
#0b1910black
#0b1910black
Secondary
#95cc8adarkseagreen
#95cc8adarkseagreen
Secondary foreground
#0d190bblack
#0d190bblack
Muted
#ecefebwhitesmoke
#101410black
Muted foreground
#4d514ddarkslategray
#aeb2aedarkgray
Accent
#8accc1skyblue
#8accc1skyblue
Accent foreground
#0b1916black
#0b1916black
Destructive
#cb2706firebrick
#f22f07orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8acca0darkseagreen
#8acca0darkseagreen

Contrast

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

Light mode
Text on background18.49:1AAA
Text on card18.68:1AAA
Primary button9.64:1AAA
Secondary button9.69:1AAA
Muted text6.98:1AA
Accent9.83:1AAA
Destructive5.48:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button9.64:1AAA
Secondary button9.69:1AAA
Muted text8.64:1AAA
Accent9.83:1AAA
Destructive4.04:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 157.176);
  --foreground: oklch(0.162 0.032 155.163);
  --muted: oklch(0.949 0.007 140.519);
  --muted-foreground: oklch(0.431 0.009 140.499);
  --popover: oklch(0.98 0.007 157.13);
  --popover-foreground: oklch(0.144 0.027 156.402);
  --card: oklch(0.98 0.007 157.13);
  --card-foreground: oklch(0.144 0.027 156.402);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.788 0.092 154.603);
  --primary-foreground: oklch(0.196 0.027 153.994);
  --secondary: oklch(0.79 0.107 140.354);
  --secondary-foreground: oklch(0.197 0.032 140.34);
  --accent: oklch(0.797 0.069 182.965);
  --accent-foreground: oklch(0.199 0.02 182.435);
  --destructive: oklch(0.545 0.202 32.143);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.788 0.092 154.603);
  --chart-1: oklch(0.788 0.092 154.603);
  --chart-2: oklch(0.79 0.107 140.354);
  --chart-3: oklch(0.797 0.069 182.965);
  --chart-4: oklch(0.808 0.097 140.366);
  --chart-5: oklch(0.792 0.098 154.399);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.019 156.896);
  --foreground: oklch(0.979 0.005 157.169);
  --muted: oklch(0.186 0.011 140.441);
  --muted-foreground: oklch(0.76 0.008 140.515);
  --popover: oklch(0.142 0.023 156.656);
  --popover-foreground: oklch(0.986 0.003 157.202);
  --card: oklch(0.142 0.023 156.656);
  --card-foreground: oklch(0.986 0.003 157.202);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.788 0.092 154.603);
  --primary-foreground: oklch(0.196 0.027 153.994);
  --secondary: oklch(0.79 0.107 140.354);
  --secondary-foreground: oklch(0.197 0.032 140.34);
  --accent: oklch(0.797 0.069 182.965);
  --accent-foreground: oklch(0.199 0.02 182.435);
  --destructive: oklch(0.621 0.232 31.983);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.788 0.092 154.603);
  --chart-1: oklch(0.788 0.092 154.603);
  --chart-2: oklch(0.79 0.107 140.354);
  --chart-3: oklch(0.797 0.069 182.965);
  --chart-4: oklch(0.808 0.097 140.366);
  --chart-5: oklch(0.792 0.098 154.399);
}