Strange for shadcn/ui

Strange is a shadcn/ui theme built around an indigo primary color (#4c44a7) with muted light indigo accents (#b7b5cf). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#4c44a7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#030212black
#f6f6f8whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#030212black
#f6f6f8whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#030212black
#f6f6f8whitesmoke
Primary
#4c44a7darkslateblue
#4c44a7darkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d2d2dblightgrey
#292734darkslategray
Secondary foreground
#383644darkslategray
#c0bfcfsilver
Muted
#ebebeflavender
#101014black
Muted foreground
#434252darkslategray
#aeadbddarkgray
Accent
#b7b5cfsilver
#35324ddarkslategray
Accent foreground
#222031darkslategray
#d2d1e1lightgrey
Destructive
#c70a0afirebrick
#df0c0cred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4c44a7darkslateblue
#4c44a7darkslateblue

Contrast

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

Light mode
Text on background20.56:1AAA
Text on card20.56:1AAA
Primary button7.80:1AAA
Secondary button7.84:1AAA
Muted text8.25:1AAA
Accent7.97:1AAA
Destructive6.05:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button7.80:1AAA
Secondary button8.05:1AAA
Muted text8.62:1AAA
Accent8.11:1AAA
Destructive5.01:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.108 0.042 283.304);
  --muted: oklch(0.941 0.006 290.122);
  --muted-foreground: oklch(0.386 0.027 288.863);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.108 0.042 283.304);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.108 0.042 283.304);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.452 0.153 282.13);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.866 0.012 289.979);
  --secondary-foreground: oklch(0.341 0.023 288.913);
  --accent: oklch(0.783 0.036 289.358);
  --accent-foreground: oklch(0.254 0.032 287.704);
  --destructive: oklch(0.523 0.21 28.789);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.452 0.153 282.13);
  --chart-1: oklch(0.452 0.153 282.13);
  --chart-2: oklch(0.866 0.012 289.979);
  --chart-3: oklch(0.783 0.036 289.358);
  --chart-4: oklch(0.892 0.01 290.037);
  --chart-5: oklch(0.446 0.163 281.266);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.003 290.188);
  --muted: oklch(0.174 0.01 289.185);
  --muted-foreground: oklch(0.754 0.023 289.662);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.003 290.188);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.975 0.003 290.188);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.452 0.153 282.13);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.281 0.023 288.611);
  --secondary-foreground: oklch(0.811 0.022 289.733);
  --accent: oklch(0.333 0.047 287.387);
  --accent-foreground: oklch(0.866 0.022 289.763);
  --destructive: oklch(0.57 0.23 28.845);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.452 0.153 282.13);
  --chart-1: oklch(0.452 0.153 282.13);
  --chart-2: oklch(0.281 0.023 288.611);
  --chart-3: oklch(0.333 0.047 287.387);
  --chart-4: oklch(0.309 0.027 288.546);
  --chart-5: oklch(0.446 0.163 281.266);
}