Strict for shadcn/ui

Strict is a shadcn/ui theme built around a deep cyan primary color (#1d444e) with deep green accents (#444e1d). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#1d444e) on a cyan-tinted background (#070c0e).

Color palette

TokenLightDark
Background
#ffffffwhite
#070c0eblack
Foreground
#061114black
#f5f9faghostwhite
Card
#fcfcfcsnow
#081011black
Card foreground
#050d10black
#f8fbfcghostwhite
Popover
#ffffffwhite
#070c0eblack
Popover foreground
#061114black
#f5f9faghostwhite
Primary
#1d444edarkslategray
#1d444edarkslategray
Primary foreground
#b9dce4powderblue
#b9dce4powderblue
Secondary
#4e1d44darkslategray
#4e1d44darkslategray
Secondary foreground
#e4b9dcthistle
#e4b9dcthistle
Muted
#f4ebf2whitesmoke
#140b12black
Muted foreground
#655d63dimgray
#a29aa0darkgray
Accent
#444e1ddarkolivegreen
#444e1ddarkolivegreen
Accent foreground
#dce4b9palegoldenrod
#dce4b9palegoldenrod
Destructive
#af1d0dfirebrick
#d52410firebrick
Destructive foreground
#fef2f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d444edarkslategray
#1d444edarkslategray

Contrast

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

Light mode
Text on background19.12:1AAA
Text on card19.17:1AAA
Primary button7.24:1AAA
Secondary button7.74:1AAA
Muted text5.47:1AA
Accent6.75:1AA
Destructive6.35:1AA
Dark mode
Text on background18.52:1AAA
Text on card18.52:1AAA
Primary button7.24:1AAA
Secondary button7.74:1AAA
Muted text7.06:1AAA
Accent6.75:1AA
Destructive5.12:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.167 0.017 214.586);
  --muted: oklch(0.95 0.013 332.213);
  --muted-foreground: oklch(0.488 0.014 332.42);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.167 0.017 214.586);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.153 0.015 213.332);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.363 0.046 216.391);
  --primary-foreground: oklch(0.871 0.039 214.547);
  --secondary: oklch(0.32 0.09 335.879);
  --secondary-foreground: oklch(0.834 0.068 333.163);
  --accent: oklch(0.402 0.071 119.185);
  --accent-foreground: oklch(0.902 0.058 116.768);
  --destructive: oklch(0.487 0.182 30.516);
  --destructive-foreground: oklch(0.97 0.013 25.102);
  --ring: oklch(0.363 0.046 216.391);
  --chart-1: oklch(0.363 0.046 216.391);
  --chart-2: oklch(0.32 0.09 335.879);
  --chart-3: oklch(0.402 0.071 119.185);
  --chart-4: oklch(0.349 0.1 335.969);
  --chart-5: oklch(0.366 0.049 216.645);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.15 0.01 213.629);
  --foreground: oklch(0.979 0.005 214.329);
  --muted: oklch(0.165 0.021 333.755);
  --muted-foreground: oklch(0.695 0.013 332.273);
  --popover: oklch(0.15 0.01 213.629);
  --popover-foreground: oklch(0.979 0.005 214.329);
  --card: oklch(0.164 0.012 214.645);
  --card-foreground: oklch(0.986 0.003 214.325);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.363 0.046 216.391);
  --primary-foreground: oklch(0.871 0.039 214.547);
  --secondary: oklch(0.32 0.09 335.879);
  --secondary-foreground: oklch(0.834 0.068 333.163);
  --accent: oklch(0.402 0.071 119.185);
  --accent-foreground: oklch(0.902 0.058 116.768);
  --destructive: oklch(0.562 0.213 30.501);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.363 0.046 216.391);
  --chart-1: oklch(0.363 0.046 216.391);
  --chart-2: oklch(0.32 0.09 335.879);
  --chart-3: oklch(0.402 0.071 119.185);
  --chart-4: oklch(0.349 0.1 335.969);
  --chart-5: oklch(0.366 0.049 216.645);
}