ksm-option2 for shadcn/ui

ksm-option2 is a shadcn/ui theme built around a blue primary color (#294e94) with vivid orange accents (#fdb022). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#294e94) on a blue-tinted background (#04070b).

Color palette

TokenLightDark
Background
#ffffffwhite
#04070bblack
Foreground
#030a17black
#f8f9fcghostwhite
Card
#fcfcfcsnow
#06090fblack
Card foreground
#020812black
#fbfcfdwhite
Popover
#fcfcfcsnow
#06090fblack
Popover foreground
#020812black
#fbfcfdwhite
Primary
#294e94darkslateblue
#294e94darkslateblue
Primary foreground
#f3f6fcaliceblue
#f3f6fcaliceblue
Secondary
#3b3b3bdarkslategray
#3b3b3bdarkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efe8dcantiquewhite
#231c10black
Muted foreground
#494237darkslategray
#c8c2b6silver
Accent
#fdb022orange
#fdb022orange
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ff541eorangered
#ff541eorangered
Destructive foreground
#fde9e3mistyrose
#000000black
Border
#eeeff2whitesmoke
#181b20black
Input
#eeeff2whitesmoke
#181b20black
Ring
#294e94darkslateblue
#294e94darkslateblue

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.64:1AAA
Primary button7.41:1AAA
Secondary button11.20:1AAA
Muted text8.17:1AAA
Accent1.84:1Fail
Destructive2.74:1Fail
Dark mode
Text on background19.19:1AAA
Text on card19.42:1AAA
Primary button7.41:1AAA
Secondary button11.22:1AAA
Muted text9.47:1AAA
Accent1.84:1Fail
Destructive6.53:1AA

CSS variables

Paste this into your globals.css to use ksm-option2 in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.032 256.374);
  --muted: oklch(0.934 0.019 83.064);
  --muted-foreground: oklch(0.383 0.021 82.972);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.132 0.027 254.098);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.132 0.027 254.098);
  --border: oklch(0.952 0.004 263.046);
  --input: oklch(0.952 0.004 263.046);
  --primary: oklch(0.436 0.123 261.504);
  --primary-foreground: oklch(0.973 0.008 263.038);
  --secondary: oklch(0.352 0 180);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.811 0.163 75.636);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.676 0.216 36.305);
  --destructive-foreground: oklch(0.948 0.024 37.643);
  --ring: oklch(0.436 0.123 261.504);
  --chart-1: oklch(0.436 0.123 261.504);
  --chart-2: oklch(0.352 0 180);
  --chart-3: oklch(0.811 0.163 75.636);
  --chart-4: oklch(0.382 0 180);
  --chart-5: oklch(0.435 0.129 261.456);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.012 257.204);
  --foreground: oklch(0.983 0.004 263.047);
  --muted: oklch(0.233 0.025 82.362);
  --muted-foreground: oklch(0.816 0.017 83.063);
  --popover: oklch(0.138 0.014 259.016);
  --popover-foreground: oklch(0.991 0.002 263.05);
  --card: oklch(0.138 0.014 259.016);
  --card-foreground: oklch(0.991 0.002 263.05);
  --border: oklch(0.221 0.011 262.895);
  --input: oklch(0.221 0.011 262.895);
  --primary: oklch(0.436 0.123 261.504);
  --primary-foreground: oklch(0.973 0.008 263.038);
  --secondary: oklch(0.352 0 180);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.811 0.163 75.636);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.676 0.216 36.305);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.436 0.123 261.504);
  --chart-1: oklch(0.436 0.123 261.504);
  --chart-2: oklch(0.352 0 180);
  --chart-3: oklch(0.811 0.163 75.636);
  --chart-4: oklch(0.381 0 180);
  --chart-5: oklch(0.435 0.129 261.456);
}