Ratanachatfarung for shadcn/ui

Ratanachatfarung is a shadcn/ui theme built around a vivid blue primary color (#006edb) with muted light blue accents (#e4e6e9). The light mode uses a blue-tinted background (#f5f6f7). Dark mode keeps the vivid blue primary (#1a8cff) on a blue-tinted background (#22262a).

Color palette

TokenLightDark
Background
#f5f6f7whitesmoke
#22262adarkslategray
Foreground
#1e1e1eblack
#f2f2f2whitesmoke
Card
#ffffffwhite
#22262adarkslategray
Card foreground
#1e1e1eblack
#f2f2f2whitesmoke
Popover
#ffffffwhite
#22262adarkslategray
Popover foreground
#1e1e1eblack
#f2f2f2whitesmoke
Primary
#006edbdodgerblue
#1a8cffdodgerblue
Primary foreground
#ffffffwhite
#00264dmidnightblue
Secondary
#e7e7e7gainsboro
#3a3d3fdarkslategray
Secondary foreground
#1e1e1eblack
#e6e6e6gainsboro
Muted
#e0e0e0gainsboro
#394046darkslategray
Muted foreground
#6d6d6ddimgray
#adadaddarkgray
Accent
#e4e6e9lavender
#43484bdarkslategray
Accent foreground
#1e1e1eblack
#e6e6e6gainsboro
Destructive
#eb000cred
#ff4751tomato
Destructive foreground
#ffffffwhite
#520000maroon
Border
#ddddddgainsboro
#2e3338darkslategray
Input
#ddddddgainsboro
#2e3338darkslategray
Ring
#006edbdodgerblue
#0080ffdodgerblue

Contrast

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

Light mode
Text on background15.40:1AAA
Text on card16.67:1AAA
Primary button4.93:1AA
Secondary button13.53:1AAA
Muted text3.91:1AA Large
Accent13.33:1AAA
Destructive4.62:1AA
Dark mode
Text on background13.55:1AAA
Text on card13.55:1AAA
Primary button4.50:1AA
Secondary button8.81:1AAA
Muted text4.69:1AA
Accent7.42:1AAA
Destructive4.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.973 0.002 247.84);
  --foreground: oklch(0.235 0 180);
  --muted: oklch(0.907 0 180);
  --muted-foreground: oklch(0.535 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.235 0 180);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.235 0 180);
  --border: oklch(0.898 0 164.055);
  --input: oklch(0.898 0 164.055);
  --primary: oklch(0.551 0.187 255.822);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.929 0 180);
  --secondary-foreground: oklch(0.235 0 180);
  --accent: oklch(0.924 0.005 258.325);
  --accent-foreground: oklch(0.235 0 180);
  --destructive: oklch(0.591 0.242 28.435);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.551 0.187 255.822);
  --chart-1: oklch(0.551 0.187 255.822);
  --chart-2: oklch(0.929 0 180);
  --chart-3: oklch(0.924 0.005 258.325);
  --chart-4: oklch(0.952 0 172.875);
  --chart-5: oklch(0.553 0.191 256.12);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.267 0.009 248.166);
  --foreground: oklch(0.962 0 180);
  --muted: oklch(0.367 0.014 248.206);
  --muted-foreground: oklch(0.748 0 180);
  --popover: oklch(0.267 0.009 248.166);
  --popover-foreground: oklch(0.962 0 180);
  --card: oklch(0.267 0.009 248.166);
  --card-foreground: oklch(0.962 0 180);
  --border: oklch(0.318 0.012 248.19);
  --input: oklch(0.318 0.012 248.19);
  --primary: oklch(0.643 0.195 254.131);
  --primary-foreground: oklch(0.269 0.083 253.049);
  --secondary: oklch(0.357 0.006 248.009);
  --secondary-foreground: oklch(0.923 0 153.435);
  --accent: oklch(0.398 0.008 236.738);
  --accent-foreground: oklch(0.923 0 153.435);
  --destructive: oklch(0.668 0.219 22.714);
  --destructive-foreground: oklch(0.275 0.113 29.234);
  --ring: oklch(0.614 0.211 256.215);
  --chart-1: oklch(0.643 0.195 254.131);
  --chart-2: oklch(0.357 0.006 248.009);
  --chart-3: oklch(0.398 0.008 236.738);
  --chart-4: oklch(0.385 0.007 248.013);
  --chart-5: oklch(0.645 0.2 254.443);
}