Superb for shadcn/ui

Superb is a shadcn/ui theme built around a light violet primary color (#c3b7dc) with light green accents (#b7dcc3). The light mode uses a neutral background (#f9f8fb). Dark mode keeps the light violet primary (#c3b7dc) on a violet-tinted background (#06030c).

Color palette

TokenLightDark
Background
#f9f8fbghostwhite
#06030cblack
Foreground
#05020eblack
#ffffffwhite
Card
#f7f5fawhitesmoke
#080410black
Card foreground
#040109black
#ffffffwhite
Popover
#f9f8fbghostwhite
#06030cblack
Popover foreground
#05020eblack
#ffffffwhite
Primary
#c3b7dcthistle
#c3b7dcthistle
Primary foreground
#2a1f41darkslategray
#2a1f41darkslategray
Secondary
#dcc3b7silver
#dcc3b7silver
Secondary foreground
#412a1fdarkslategray
#412a1fdarkslategray
Muted
#e4e2e2gainsboro
#1d1c1bblack
Muted foreground
#665c57dimgray
#a89e99darkgray
Accent
#b7dcc3silver
#b7dcc3silver
Accent foreground
#1f412adarkslategray
#1f412adarkslategray
Destructive
#bb3c11firebrick
#ea4e1aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c3b7dcthistle
#c3b7dcthistle

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.12:1AAA
Primary button8.09:1AAA
Secondary button7.93:1AAA
Muted text5.05:1AA
Accent7.60:1AAA
Destructive5.59:1AA
Dark mode
Text on background20.45:1AAA
Text on card20.27:1AAA
Primary button8.09:1AAA
Secondary button7.93:1AAA
Muted text6.51:1AA
Accent7.60:1AAA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 300.698);
  --foreground: oklch(0.104 0.037 300.817);
  --muted: oklch(0.915 0.002 46.827);
  --muted-foreground: oklch(0.482 0.015 46.521);
  --popover: oklch(0.982 0.004 300.698);
  --popover-foreground: oklch(0.104 0.037 300.817);
  --card: oklch(0.973 0.006 300.662);
  --card-foreground: oklch(0.091 0.032 301.417);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.8 0.054 299.654);
  --primary-foreground: oklch(0.272 0.062 296.661);
  --secondary: oklch(0.834 0.034 46.446);
  --secondary-foreground: oklch(0.311 0.039 45.694);
  --accent: oklch(0.861 0.053 155.286);
  --accent-foreground: oklch(0.344 0.057 152.604);
  --destructive: oklch(0.535 0.17 36.723);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.8 0.054 299.654);
  --chart-1: oklch(0.8 0.054 299.654);
  --chart-2: oklch(0.834 0.034 46.446);
  --chart-3: oklch(0.861 0.053 155.286);
  --chart-4: oklch(0.858 0.028 46.511);
  --chart-5: oklch(0.797 0.058 299.551);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.027 300.933);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.226 0.003 46.689);
  --muted-foreground: oklch(0.706 0.014 46.641);
  --popover: oklch(0.112 0.027 300.933);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.031 299.654);
  --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.8 0.054 299.654);
  --primary-foreground: oklch(0.272 0.062 296.661);
  --secondary: oklch(0.834 0.034 46.446);
  --secondary-foreground: oklch(0.311 0.039 45.694);
  --accent: oklch(0.861 0.053 155.286);
  --accent-foreground: oklch(0.344 0.057 152.604);
  --destructive: oklch(0.635 0.2 36.843);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.8 0.054 299.654);
  --chart-1: oklch(0.8 0.054 299.654);
  --chart-2: oklch(0.834 0.034 46.446);
  --chart-3: oklch(0.861 0.053 155.286);
  --chart-4: oklch(0.858 0.028 46.511);
  --chart-5: oklch(0.797 0.058 299.551);
}