Assessment for shadcn/ui

Assessment is a shadcn/ui theme built around a near-white primary color (#fefefb) with near-white accents (#fbfbfe). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fefefb) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#080901black
#fbfbf9snow
Card
#fcfcfcsnow
#030303black
Card foreground
#040401black
#fdfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#080901black
#fbfbf9snow
Primary
#fefefbwhite
#fefefbwhite
Primary foreground
#47520fdarkolivegreen
#47520fdarkolivegreen
Secondary
#fbfbfeghostwhite
#fbfbfeghostwhite
Secondary foreground
#361fa8darkslateblue
#361fa8darkslateblue
Muted
#eceaf6lavender
#0b0915black
Muted foreground
#3e3b4edarkslategray
#b4b1c4silver
Accent
#fbfbfeghostwhite
#fbfbfeghostwhite
Accent foreground
#361fa8darkslateblue
#361fa8darkslateblue
Destructive
#c03e02firebrick
#fd6017orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fefefbwhite
#fefefbwhite

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card20.08:1AAA
Primary button8.37:1AAA
Secondary button10.58:1AAA
Muted text9.09:1AAA
Accent10.58:1AAA
Destructive5.34:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.31:1AAA
Primary button8.37:1AAA
Secondary button10.58:1AAA
Muted text9.39:1AAA
Accent10.58:1AAA
Destructive6.83:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.133 0.023 115.059);
  --muted: oklch(0.942 0.016 293.754);
  --muted-foreground: oklch(0.364 0.033 292.315);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.133 0.023 115.059);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.106 0.019 115.059);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.996 0.005 114.153);
  --primary-foreground: oklch(0.415 0.089 118.873);
  --secondary: oklch(0.989 0.005 293.978);
  --secondary-foreground: oklch(0.38 0.2 278.539);
  --accent: oklch(0.989 0.005 293.978);
  --accent-foreground: oklch(0.38 0.2 278.539);
  --destructive: oklch(0.546 0.175 38.707);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.996 0.005 114.153);
  --chart-1: oklch(0.996 0.005 114.153);
  --chart-2: oklch(0.989 0.005 293.978);
  --chart-3: oklch(0.989 0.005 293.978);
  --chart-4: oklch(1.023 0.009 114.234);
  --chart-5: oklch(0.996 0.005 114.157);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.988 0.004 114.135);
  --muted: oklch(0.151 0.025 290.804);
  --muted-foreground: oklch(0.768 0.027 293.393);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.988 0.004 114.135);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 114.1);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.996 0.005 114.153);
  --primary-foreground: oklch(0.415 0.089 118.873);
  --secondary: oklch(0.989 0.005 293.978);
  --secondary-foreground: oklch(0.38 0.2 278.539);
  --accent: oklch(0.989 0.005 293.978);
  --accent-foreground: oklch(0.38 0.2 278.539);
  --destructive: oklch(0.685 0.205 40.372);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.996 0.005 114.153);
  --chart-1: oklch(0.996 0.005 114.153);
  --chart-2: oklch(0.989 0.005 293.978);
  --chart-3: oklch(0.989 0.005 293.978);
  --chart-4: oklch(1.023 0.009 114.234);
  --chart-5: oklch(0.996 0.005 114.157);
}