Reasoning for shadcn/ui

Reasoning is a shadcn/ui theme built around a light indigo primary color (#f5f3fb) with light violet accents (#f9f3fb). The light mode uses a neutral background (#ffffff). Dark mode keeps the light indigo primary (#f5f3fb) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fcfcfdwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#f5f3fbwhitesmoke
#f5f3fbwhitesmoke
Primary foreground
#442d8fdarkslateblue
#442d8fdarkslateblue
Secondary
#f3f5fbaliceblue
#f3f5fbaliceblue
Secondary foreground
#2d478fdarkslateblue
#2d478fdarkslateblue
Muted
#eceef4whitesmoke
#0b0d13black
Muted foreground
#626364dimgray
#9b9b9ddarkgray
Accent
#f9f3fbghostwhite
#f9f3fbghostwhite
Accent foreground
#752d8frebeccapurple
#752d8frebeccapurple
Destructive
#ab1f03firebrick
#fb3109orangered
Destructive foreground
#ffe6e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f5f3fbwhitesmoke
#f5f3fbwhitesmoke

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button9.49:1AAA
Secondary button8.02:1AAA
Muted text5.17:1AA
Accent7.63:1AAA
Destructive6.04:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button9.49:1AAA
Secondary button8.02:1AAA
Muted text6.98:1AA
Accent7.63:1AAA
Destructive3.77:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.948 0.008 270.047);
  --muted-foreground: oklch(0.5 0.002 270.082);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.969 0.011 296.88);
  --primary-foreground: oklch(0.387 0.153 287.728);
  --secondary: oklch(0.972 0.008 270.052);
  --secondary-foreground: oklch(0.42 0.123 266.184);
  --accent: oklch(0.972 0.012 317.161);
  --accent-foreground: oklch(0.446 0.163 315.687);
  --destructive: oklch(0.479 0.178 32.262);
  --destructive-foreground: oklch(0.943 0.028 31.126);
  --ring: oklch(0.969 0.011 296.88);
  --chart-1: oklch(0.969 0.011 296.88);
  --chart-2: oklch(0.972 0.008 270.052);
  --chart-3: oklch(0.972 0.012 317.161);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.968 0.011 296.869);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 297.067);
  --muted: oklch(0.161 0.013 269.255);
  --muted-foreground: oklch(0.69 0.002 270.095);
  --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.969 0.011 296.88);
  --primary-foreground: oklch(0.387 0.153 287.728);
  --secondary: oklch(0.972 0.008 270.052);
  --secondary-foreground: oklch(0.42 0.123 266.184);
  --accent: oklch(0.972 0.012 317.161);
  --accent-foreground: oklch(0.446 0.163 315.687);
  --destructive: oklch(0.639 0.238 32.007);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.969 0.011 296.88);
  --chart-1: oklch(0.969 0.011 296.88);
  --chart-2: oklch(0.972 0.008 270.052);
  --chart-3: oklch(0.972 0.012 317.161);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.968 0.011 296.869);
}