ecole for shadcn/ui

ecole is a shadcn/ui theme built around a vivid indigo primary color (#1605d1) with muted light indigo accents (#c1c0ce). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid indigo primary (#1605d1) on an indigo-tinted background (#060510).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#060510black
Foreground
#040212black
#fcfcfdwhite
Card
#f8f8fcghostwhite
#060510black
Card foreground
#040212black
#fcfcfdwhite
Popover
#f8f8fcghostwhite
#060510black
Popover foreground
#040212black
#fcfcfdwhite
Primary
#1605d1mediumblue
#1605d1mediumblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d1d1d6lightgrey
#1d1c21black
Secondary foreground
#38373edarkslategray
#b3b3bdsilver
Muted
#efeef7whitesmoke
#090811black
Muted foreground
#4a495bdarkslategray
#a6a4b6darkgray
Accent
#c1c0cesilver
#2e2d3edarkslategray
Accent foreground
#292834darkslategray
#c8c7d6lightgrey
Destructive
#b84305firebrick
#fa7c38coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e8e8edlavender
#17161dblack
Input
#e8e8edlavender
#17161dblack
Ring
#1605d1mediumblue
#1605d1mediumblue

Contrast

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

Light mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button10.62:1AAA
Secondary button7.74:1AAA
Muted text7.59:1AAA
Accent8.05:1AAA
Destructive5.44:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button10.62:1AAA
Secondary button8.11:1AAA
Muted text8.15:1AAA
Accent8.05:1AAA
Destructive7.99:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.005 290.151);
  --foreground: oklch(0.109 0.042 283.493);
  --muted: oklch(0.952 0.012 290.01);
  --muted-foreground: oklch(0.412 0.03 288.84);
  --popover: oklch(0.98 0.005 290.151);
  --popover-foreground: oklch(0.109 0.042 283.493);
  --card: oklch(0.98 0.005 290.151);
  --card-foreground: oklch(0.109 0.042 283.493);
  --border: oklch(0.932 0.008 290.092);
  --input: oklch(0.932 0.008 290.092);
  --primary: oklch(0.396 0.264 266.766);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.863 0.007 290.091);
  --secondary-foreground: oklch(0.341 0.012 289.562);
  --accent: oklch(0.812 0.02 289.771);
  --accent-foreground: oklch(0.283 0.022 288.743);
  --destructive: oklch(0.54 0.163 41.384);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.396 0.264 266.766);
  --chart-1: oklch(0.396 0.264 266.766);
  --chart-2: oklch(0.863 0.007 290.091);
  --chart-3: oklch(0.812 0.02 289.771);
  --chart-4: oklch(0.887 0.006 290.123);
  --chart-5: oklch(0.398 0.269 266.251);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.028 286.668);
  --foreground: oklch(0.991 0.001 290.22);
  --muted: oklch(0.142 0.02 287.759);
  --muted-foreground: oklch(0.727 0.026 289.57);
  --popover: oklch(0.122 0.028 286.668);
  --popover-foreground: oklch(0.991 0.001 290.22);
  --card: oklch(0.122 0.028 286.668);
  --card-foreground: oklch(0.991 0.001 290.22);
  --border: oklch(0.204 0.014 288.899);
  --input: oklch(0.204 0.014 288.899);
  --primary: oklch(0.396 0.264 266.766);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.231 0.008 289.569);
  --secondary-foreground: oklch(0.769 0.014 289.9);
  --accent: oklch(0.306 0.031 288.263);
  --accent-foreground: oklch(0.835 0.021 289.758);
  --destructive: oklch(0.721 0.173 45.956);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.396 0.264 266.766);
  --chart-1: oklch(0.396 0.264 266.766);
  --chart-2: oklch(0.231 0.008 289.569);
  --chart-3: oklch(0.306 0.031 288.263);
  --chart-4: oklch(0.261 0.01 289.52);
  --chart-5: oklch(0.398 0.269 266.251);
}