Weird for shadcn/ui

Weird is a shadcn/ui theme built around a blue primary color (#1f74db) with muted light blue accents (#c3cbd5). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#1f74db) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#ffffffwhite
#030507black
Foreground
#010204black
#ffffffwhite
Card
#fcfcfcsnow
#05070bblack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#05070bblack
Popover foreground
#000000black
#ffffffwhite
Primary
#1f74dbroyalblue
#1f74dbroyalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c3cbd5lightgrey
#16191dblack
Secondary foreground
#2a323cdarkslategray
#a9b2bcdarkgray
Muted
#dce0e5gainsboro
#1a1e23black
Muted foreground
#626364dimgray
#9b9b9ddarkgray
Accent
#c3cbd5lightgrey
#16191dblack
Accent foreground
#2a323cdarkslategray
#a9b2bcdarkgray
Destructive
#750606maroon
#f52424crimson
Destructive foreground
#fbb1b1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1f74dbroyalblue
#1f74dbroyalblue

Contrast

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

Light mode
Text on background20.75:1AAA
Text on card20.54:1AAA
Primary button4.60:1AA
Secondary button7.92:1AAA
Muted text4.53:1AA
Accent7.92:1AAA
Destructive6.75:1AA
Dark mode
Text on background20.42:1AAA
Text on card20.14:1AAA
Primary button4.60:1AA
Secondary button8.19:1AAA
Muted text6.02:1AA
Accent8.19:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.087 0.012 243.049);
  --muted: oklch(0.905 0.008 253.28);
  --muted-foreground: oklch(0.5 0.002 253.247);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.566 0.176 256.395);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.839 0.016 253.341);
  --secondary-foreground: oklch(0.314 0.02 253.579);
  --accent: oklch(0.839 0.016 253.341);
  --accent-foreground: oklch(0.314 0.02 253.579);
  --destructive: oklch(0.356 0.141 28.501);
  --destructive-foreground: oklch(0.831 0.087 19.081);
  --ring: oklch(0.566 0.176 256.395);
  --chart-1: oklch(0.566 0.176 256.395);
  --chart-2: oklch(0.839 0.016 253.341);
  --chart-3: oklch(0.839 0.016 253.341);
  --chart-4: oklch(0.864 0.013 253.321);
  --chart-5: oklch(0.567 0.182 256.665);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.009 247.65);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.234 0.012 253.506);
  --muted-foreground: oklch(0.691 0.002 253.238);
  --popover: oklch(0.128 0.01 247.712);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.128 0.01 247.712);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.566 0.176 256.395);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.213 0.008 253.443);
  --secondary-foreground: oklch(0.759 0.017 253.363);
  --accent: oklch(0.213 0.008 253.443);
  --accent-foreground: oklch(0.759 0.017 253.363);
  --destructive: oklch(0.621 0.238 27.82);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.566 0.176 256.395);
  --chart-1: oklch(0.566 0.176 256.395);
  --chart-2: oklch(0.213 0.008 253.443);
  --chart-3: oklch(0.213 0.008 253.443);
  --chart-4: oklch(0.245 0.01 253.46);
  --chart-5: oklch(0.567 0.182 256.665);
}