Simple for shadcn/ui

Simple is a shadcn/ui theme built around a near-white primary color (#fafbfe) with muted light blue accents (#c4c8d9). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the near-white primary (#fafbfe) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfcfewhite
#000000black
Foreground
#010204black
#fcfcfdwhite
Card
#f7f8fdghostwhite
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f7f8fdghostwhite
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#fafbfeghostwhite
#fafbfeghostwhite
Primary foreground
#1434b3mediumblue
#1434b3mediumblue
Secondary
#dcdee5gainsboro
#222530darkslategray
Secondary foreground
#3d4151darkslategray
#b7bcccsilver
Muted
#d0d4e1lightgrey
#1e212fdarkslategray
Muted foreground
#3b3f4edarkslategray
#b1b4c4silver
Accent
#c4c8d9lightgrey
#323952darkslategray
Accent foreground
#2a2e41darkslategray
#d3d6e4gainsboro
Destructive
#b01007firebrick
#f62d23orangered
Destructive foreground
#feeceblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fafbfeghostwhite
#fafbfeghostwhite

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card19.81:1AAA
Primary button9.36:1AAA
Secondary button7.52:1AAA
Muted text7.05:1AAA
Accent8.06:1AAA
Destructive6.28:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button9.36:1AAA
Secondary button8.08:1AAA
Muted text7.75:1AAA
Accent7.88:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 274.996);
  --foreground: oklch(0.082 0.012 268.376);
  --muted: oklch(0.87 0.019 274.761);
  --muted-foreground: oklch(0.371 0.027 274.018);
  --popover: oklch(0.98 0.006 274.956);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.006 274.956);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.989 0.004 274.98);
  --primary-foreground: oklch(0.403 0.202 265.568);
  --secondary: oklch(0.901 0.009 274.904);
  --secondary-foreground: oklch(0.38 0.028 274.011);
  --accent: oklch(0.835 0.024 274.663);
  --accent-foreground: oklch(0.307 0.035 273.359);
  --destructive: oklch(0.481 0.19 29.492);
  --destructive-foreground: oklch(0.958 0.019 21.153);
  --ring: oklch(0.989 0.004 274.98);
  --chart-1: oklch(0.989 0.004 274.98);
  --chart-2: oklch(0.901 0.009 274.904);
  --chart-3: oklch(0.835 0.024 274.663);
  --chart-4: oklch(0.926 0.007 274.941);
  --chart-5: oklch(0.989 0.005 274.978);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 275.025);
  --muted: oklch(0.252 0.026 273.52);
  --muted-foreground: oklch(0.773 0.022 274.664);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.989 0.004 274.98);
  --primary-foreground: oklch(0.403 0.202 265.568);
  --secondary: oklch(0.265 0.021 273.909);
  --secondary-foreground: oklch(0.796 0.024 274.648);
  --accent: oklch(0.349 0.045 273.063);
  --accent-foreground: oklch(0.878 0.019 274.758);
  --destructive: oklch(0.628 0.234 29.017);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.989 0.004 274.98);
  --chart-1: oklch(0.989 0.004 274.98);
  --chart-2: oklch(0.265 0.021 273.909);
  --chart-3: oklch(0.349 0.045 273.063);
  --chart-4: oklch(0.294 0.024 273.851);
  --chart-5: oklch(0.989 0.005 274.978);
}