Strict for shadcn/ui

Strict is a shadcn/ui theme built around a light indigo primary color (#ece9fb) with light violet accents (#f5e9fb). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the light indigo primary (#ece9fb) on a neutral background (#030208).

Color palette

TokenLightDark
Background
#f8f7fdghostwhite
#030208black
Foreground
#04020dblack
#f9f9fbghostwhite
Card
#f8f7fdghostwhite
#030208black
Card foreground
#04020dblack
#f9f9fbghostwhite
Popover
#f8f7fdghostwhite
#030208black
Popover foreground
#04020dblack
#f9f9fbghostwhite
Primary
#ece9fblavender
#ece9fblavender
Primary foreground
#2d1a99midnightblue
#2d1a99midnightblue
Secondary
#e9f0fblavender
#e9f0fblavender
Secondary foreground
#1a4699darkslateblue
#1a4699darkslateblue
Muted
#e9ecf1lavender
#0e1116black
Muted foreground
#424852darkslategray
#adb3bddarkgray
Accent
#f5e9fbwhitesmoke
#f5e9fbwhitesmoke
Accent foreground
#6c1a99rebeccapurple
#6c1a99rebeccapurple
Destructive
#a4360esaddlebrown
#ec5c27chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ece9fblavender
#ece9fblavender

Contrast

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

Light mode
Text on background19.36:1AAA
Text on card19.36:1AAA
Primary button10.25:1AAA
Secondary button7.67:1AAA
Muted text7.78:1AAA
Accent7.99:1AAA
Destructive6.72:1AA
Dark mode
Text on background19.62:1AAA
Text on card19.62:1AAA
Primary button10.25:1AAA
Secondary button7.67:1AAA
Muted text8.98:1AAA
Accent7.99:1AAA
Destructive6.12:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.007 293.173);
  --foreground: oklch(0.102 0.034 289.989);
  --muted: oklch(0.943 0.007 263.04);
  --muted-foreground: oklch(0.399 0.019 262.898);
  --popover: oklch(0.979 0.007 293.173);
  --popover-foreground: oklch(0.102 0.034 289.989);
  --card: oklch(0.979 0.007 293.173);
  --card-foreground: oklch(0.102 0.034 289.989);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.942 0.024 292.817);
  --primary-foreground: oklch(0.35 0.188 277.227);
  --secondary: oklch(0.952 0.017 263.014);
  --secondary-foreground: oklch(0.416 0.144 261.395);
  --accent: oklch(0.949 0.027 314.063);
  --accent-foreground: oklch(0.421 0.19 309.66);
  --destructive: oklch(0.49 0.152 37.723);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.942 0.024 292.817);
  --chart-1: oklch(0.942 0.024 292.817);
  --chart-2: oklch(0.952 0.017 263.014);
  --chart-3: oklch(0.949 0.027 314.063);
  --chart-4: oklch(0.981 0.007 263.041);
  --chart-5: oklch(0.941 0.025 292.795);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.02 291.607);
  --foreground: oklch(0.983 0.002 293.272);
  --muted: oklch(0.176 0.011 262.829);
  --muted-foreground: oklch(0.764 0.016 263.004);
  --popover: oklch(0.098 0.02 291.607);
  --popover-foreground: oklch(0.983 0.002 293.272);
  --card: oklch(0.098 0.02 291.607);
  --card-foreground: oklch(0.983 0.002 293.272);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.942 0.024 292.817);
  --primary-foreground: oklch(0.35 0.188 277.227);
  --secondary: oklch(0.952 0.017 263.014);
  --secondary-foreground: oklch(0.416 0.144 261.395);
  --accent: oklch(0.949 0.027 314.063);
  --accent-foreground: oklch(0.421 0.19 309.66);
  --destructive: oklch(0.655 0.19 38.678);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.942 0.024 292.817);
  --chart-1: oklch(0.942 0.024 292.817);
  --chart-2: oklch(0.952 0.017 263.014);
  --chart-3: oklch(0.949 0.027 314.063);
  --chart-4: oklch(0.981 0.007 263.041);
  --chart-5: oklch(0.941 0.025 292.795);
}