final ranksmith for shadcn/ui

final ranksmith is a shadcn/ui theme built around a teal primary color (#38b77a) with vivid light yellow accents (#ffdc93). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#38b77a) on a blue-tinted background (#17191c).

Color palette

TokenLightDark
Background
#ffffffwhite
#17191cblack
Foreground
#17191cblack
#f2f2f2whitesmoke
Card
#ffffffwhite
#1c1e22black
Card foreground
#17191cblack
#f2f2f2whitesmoke
Popover
#ffffffwhite
#17191cblack
Popover foreground
#17191cblack
#f2f2f2whitesmoke
Primary
#38b77amediumseagreen
#38b77amediumseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e3e5e8gainsboro
#3b3e45darkslategray
Secondary foreground
#232529darkslategray
#e6e6e6gainsboro
Muted
#f7f8f7whitesmoke
#1c211fblack
Muted foreground
#61646bdimgray
#afb1b6darkgray
Accent
#ffdc93khaki
#c08a16darkgoldenrod
Accent foreground
#17191cblack
#ffffffwhite
Destructive
#d92644crimson
#dd3c57indianred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e6e6e6gainsboro
#3b3e45darkslategray
Input
#f2f2f3whitesmoke
#232529darkslategray
Ring
#38b77amediumseagreen
#38b77amediumseagreen

Contrast

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

Light mode
Text on background17.61:1AAA
Text on card17.61:1AAA
Primary button2.54:1Fail
Secondary button12.13:1AAA
Muted text5.56:1AA
Accent13.35:1AAA
Destructive4.87:1AA
Dark mode
Text on background15.77:1AAA
Text on card14.97:1AAA
Primary button2.54:1Fail
Secondary button8.58:1AAA
Muted text7.60:1AAA
Accent3.03:1AA Large
Destructive4.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.212 0.006 264.445);
  --muted: oklch(0.978 0.002 165.103);
  --muted-foreground: oklch(0.504 0.012 264.465);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.212 0.006 264.445);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.212 0.006 264.445);
  --border: oklch(0.923 0 153.435);
  --input: oklch(0.961 0.001 264.547);
  --primary: oklch(0.696 0.143 157.794);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.921 0.005 264.534);
  --secondary-foreground: oklch(0.265 0.008 264.427);
  --accent: oklch(0.908 0.099 85.044);
  --accent-foreground: oklch(0.212 0.006 264.445);
  --destructive: oklch(0.575 0.21 19.072);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.696 0.143 157.794);
  --chart-1: oklch(0.696 0.143 157.794);
  --chart-2: oklch(0.575 0.21 19.072);
  --chart-3: oklch(0.68 0.11 233.435);
  --chart-4: oklch(0.855 0.152 97.652);
  --chart-5: oklch(0.633 0.132 313.732);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.212 0.007 264.41);
  --foreground: oklch(0.962 0 180);
  --muted: oklch(0.242 0.009 164.184);
  --muted-foreground: oklch(0.761 0.008 264.517);
  --popover: oklch(0.212 0.007 264.41);
  --popover-foreground: oklch(0.962 0 180);
  --card: oklch(0.233 0.008 264.398);
  --card-foreground: oklch(0.962 0 180);
  --border: oklch(0.363 0.013 264.407);
  --input: oklch(0.265 0.008 264.427);
  --primary: oklch(0.696 0.143 157.794);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.363 0.013 264.407);
  --secondary-foreground: oklch(0.923 0 153.435);
  --accent: oklch(0.671 0.134 79.723);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.602 0.196 16.215);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.696 0.143 157.794);
  --chart-1: oklch(0.696 0.143 157.794);
  --chart-2: oklch(0.602 0.196 16.215);
  --chart-3: oklch(0.713 0.099 232.242);
  --chart-4: oklch(0.871 0.14 98.058);
  --chart-5: oklch(0.679 0.115 313.971);
}