Significance for shadcn/ui

Significance is a shadcn/ui theme built around a blue primary color (#41559f) with violet accents (#5c419f). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#41559f) on a blue-tinted background (#05060a).

Color palette

TokenLightDark
Background
#ffffffwhite
#05060ablack
Foreground
#05070fblack
#fcfcfdwhite
Card
#fcfcfcsnow
#07080eblack
Card foreground
#04050bblack
#ffffffwhite
Popover
#fcfcfcsnow
#07080eblack
Popover foreground
#04050bblack
#ffffffwhite
Primary
#41559fdarkslateblue
#41559fdarkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#41859fsteelblue
#41859fsteelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dde9eelavender
#111d22black
Muted foreground
#38474cdarkslategray
#b3c1c7silver
Accent
#5c419frebeccapurple
#5c419frebeccapurple
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#690807maroon
#d8110ered
Destructive foreground
#f9aaa9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#41559fdarkslateblue
#41559fdarkslateblue

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card19.91:1AAA
Primary button6.90:1AA
Secondary button4.14:1AA Large
Muted text7.81:1AAA
Accent7.73:1AAA
Destructive6.89:1AA
Dark mode
Text on background19.74:1AAA
Text on card20.00:1AAA
Primary button6.90:1AA
Secondary button4.14:1AA Large
Muted text9.28:1AAA
Accent7.73:1AAA
Destructive5.25:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.132 0.019 268.684);
  --muted: oklch(0.927 0.015 223.3);
  --muted-foreground: oklch(0.386 0.021 223.842);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.12 0.016 267.809);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.12 0.016 267.809);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.473 0.121 269.668);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.582 0.08 226.471);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.455 0.146 292.699);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.334 0.129 28.508);
  --destructive-foreground: oklch(0.814 0.094 20.393);
  --ring: oklch(0.473 0.121 269.668);
  --chart-1: oklch(0.473 0.121 269.668);
  --chart-2: oklch(0.582 0.08 226.471);
  --chart-3: oklch(0.455 0.146 292.699);
  --chart-4: oklch(0.611 0.084 226.508);
  --chart-5: oklch(0.469 0.13 269.271);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.011 269.762);
  --foreground: oklch(0.992 0.001 273.858);
  --muted: oklch(0.223 0.02 224.653);
  --muted-foreground: oklch(0.802 0.018 223.371);
  --popover: oklch(0.136 0.013 270.521);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.013 270.521);
  --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.473 0.121 269.668);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.582 0.08 226.471);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.455 0.146 292.699);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.558 0.223 28.936);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.473 0.121 269.668);
  --chart-1: oklch(0.473 0.121 269.668);
  --chart-2: oklch(0.582 0.08 226.471);
  --chart-3: oklch(0.455 0.146 292.699);
  --chart-4: oklch(0.611 0.084 226.508);
  --chart-5: oklch(0.469 0.13 269.271);
}