Transcript for shadcn/ui

Transcript is a shadcn/ui theme built around a deep violet primary color (#180939) with deep green accents (#2b3909). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the deep violet primary (#180939) on a violet-tinted background (#080410).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#080410black
Foreground
#020104black
#fcfcfdwhite
Card
#f9f7fdghostwhite
#080410black
Card foreground
#020104black
#fcfcfdwhite
Popover
#f9f7fdghostwhite
#080410black
Popover foreground
#020104black
#fcfcfdwhite
Primary
#180939midnightblue
#180939midnightblue
Primary foreground
#a689ecmediumpurple
#a689ecmediumpurple
Secondary
#2b3909darkgreen
#2b3909darkgreen
Secondary foreground
#aadd31yellowgreen
#aadd31yellowgreen
Muted
#f1f4ecwhitesmoke
#11130bblack
Muted foreground
#50524cdarkslategray
#b1b3addarkgray
Accent
#2b3909darkgreen
#2b3909darkgreen
Accent foreground
#aadd31yellowgreen
#aadd31yellowgreen
Destructive
#ca1f16firebrick
#eb5047tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#180939midnightblue
#180939midnightblue

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button6.51:1AA
Secondary button7.74:1AAA
Muted text7.11:1AAA
Accent7.74:1AAA
Destructive5.64:1AA
Dark mode
Text on background19.76:1AAA
Text on card19.76:1AAA
Primary button6.51:1AA
Secondary button7.74:1AAA
Muted text8.82:1AAA
Accent7.74:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.008 299.905);
  --foreground: oklch(0.076 0.02 300.305);
  --muted: oklch(0.962 0.011 120.227);
  --muted-foreground: oklch(0.436 0.01 120.443);
  --popover: oklch(0.979 0.008 299.905);
  --popover-foreground: oklch(0.076 0.02 300.305);
  --card: oklch(0.979 0.008 299.905);
  --card-foreground: oklch(0.076 0.02 300.305);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.2 0.086 290.072);
  --primary-foreground: oklch(0.697 0.144 296.284);
  --secondary: oklch(0.321 0.072 125.013);
  --secondary-foreground: oklch(0.833 0.196 125.651);
  --accent: oklch(0.321 0.072 125.013);
  --accent-foreground: oklch(0.833 0.196 125.651);
  --destructive: oklch(0.539 0.204 29.173);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.2 0.086 290.072);
  --chart-1: oklch(0.2 0.086 290.072);
  --chart-2: oklch(0.321 0.072 125.013);
  --chart-3: oklch(0.321 0.072 125.013);
  --chart-4: oklch(0.367 0.084 125.278);
  --chart-5: oklch(0.199 0.089 289.476);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.03 298.836);
  --foreground: oklch(0.991 0.001 300.015);
  --muted: oklch(0.182 0.016 121.558);
  --muted-foreground: oklch(0.764 0.009 120.239);
  --popover: oklch(0.125 0.03 298.836);
  --popover-foreground: oklch(0.991 0.001 300.015);
  --card: oklch(0.125 0.03 298.836);
  --card-foreground: oklch(0.991 0.001 300.015);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.2 0.086 290.072);
  --primary-foreground: oklch(0.697 0.144 296.284);
  --secondary: oklch(0.321 0.072 125.013);
  --secondary-foreground: oklch(0.833 0.196 125.651);
  --accent: oklch(0.321 0.072 125.013);
  --accent-foreground: oklch(0.833 0.196 125.651);
  --destructive: oklch(0.642 0.193 26.966);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.2 0.086 290.072);
  --chart-1: oklch(0.2 0.086 290.072);
  --chart-2: oklch(0.321 0.072 125.013);
  --chart-3: oklch(0.321 0.072 125.013);
  --chart-4: oklch(0.367 0.084 125.278);
  --chart-5: oklch(0.199 0.089 289.476);
}