Forthright for shadcn/ui

Forthright is a shadcn/ui theme built around a vivid deep orange primary color (#451403) with vivid deep yellow accents (#453503). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid deep orange primary (#451403) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefcfbsnow
#000000black
Foreground
#080403black
#fbf9f9snow
Card
#fefcfbsnow
#000000black
Card foreground
#080403black
#fbf9f9snow
Popover
#fefcfbsnow
#000000black
Popover foreground
#080403black
#fbf9f9snow
Primary
#451403maroon
#451403maroon
Primary foreground
#faa080lightsalmon
#faa080lightsalmon
Secondary
#450312maroon
#450312maroon
Secondary foreground
#fa809clightcoral
#fa809clightcoral
Muted
#f6eaedlinen
#15090cblack
Muted foreground
#535051darkslategray
#afacaddarkgray
Accent
#453503darkolivegreen
#453503darkolivegreen
Accent foreground
#f6c31egold
#f6c31egold
Destructive
#aa1403firebrick
#f01c05red
Destructive foreground
#fee4e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#451403maroon
#451403maroon

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button7.68:1AAA
Secondary button6.79:1AA
Muted text6.78:1AA
Accent7.22:1AAA
Destructive6.19:1AA
Dark mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button7.68:1AAA
Secondary button6.79:1AA
Muted text8.64:1AAA
Accent7.22:1AAA
Destructive4.30:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 41.287);
  --foreground: oklch(0.113 0.012 47.92);
  --muted: oklch(0.947 0.013 1.344);
  --muted-foreground: oklch(0.435 0.004 1.245);
  --popover: oklch(0.992 0.002 41.287);
  --popover-foreground: oklch(0.113 0.012 47.92);
  --card: oklch(0.992 0.002 41.287);
  --card-foreground: oklch(0.113 0.012 47.92);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.269 0.079 39.783);
  --primary-foreground: oklch(0.789 0.116 40.712);
  --secondary: oklch(0.251 0.095 15.102);
  --secondary-foreground: oklch(0.744 0.151 6.653);
  --accent: oklch(0.337 0.067 90.154);
  --accent-foreground: oklch(0.839 0.166 89.102);
  --destructive: oklch(0.471 0.183 30.537);
  --destructive-foreground: oklch(0.939 0.029 25.275);
  --ring: oklch(0.269 0.079 39.783);
  --chart-1: oklch(0.269 0.079 39.783);
  --chart-2: oklch(0.251 0.095 15.102);
  --chart-3: oklch(0.337 0.067 90.154);
  --chart-4: oklch(0.285 0.109 16.328);
  --chart-5: oklch(0.27 0.082 39.882);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 41.29);
  --muted: oklch(0.161 0.021 4.5);
  --muted-foreground: oklch(0.747 0.004 1.105);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 41.29);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.002 41.29);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.269 0.079 39.783);
  --primary-foreground: oklch(0.789 0.116 40.712);
  --secondary: oklch(0.251 0.095 15.102);
  --secondary-foreground: oklch(0.744 0.151 6.653);
  --accent: oklch(0.337 0.067 90.154);
  --accent-foreground: oklch(0.839 0.166 89.102);
  --destructive: oklch(0.607 0.239 30.302);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.269 0.079 39.783);
  --chart-1: oklch(0.269 0.079 39.783);
  --chart-2: oklch(0.251 0.095 15.102);
  --chart-3: oklch(0.337 0.067 90.154);
  --chart-4: oklch(0.285 0.109 16.328);
  --chart-5: oklch(0.27 0.082 39.882);
}