Asterisk for shadcn/ui

Asterisk is a shadcn/ui theme built around a vivid indigo primary color (#2c0df8) with vivid green accents (#d8f80d). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#2c0df8) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#ffffffwhite
#040307black
Foreground
#040212black
#fcfcfdwhite
Card
#fcfcfcsnow
#05050bblack
Card foreground
#03020eblack
#ffffffwhite
Popover
#ffffffwhite
#040307black
Popover foreground
#040212black
#fcfcfdwhite
Primary
#2c0df8blue
#2c0df8blue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d8f80dyellow
#d8f80dyellow
Secondary foreground
#2f3602darkgreen
#2f3602darkgreen
Muted
#f6f7edwhitesmoke
#101208black
Muted foreground
#545549darkolivegreen
#b5b6aadarkgray
Accent
#d8f80dyellow
#d8f80dyellow
Accent foreground
#2f3602darkgreen
#2f3602darkgreen
Destructive
#b94a0esienna
#f17f41coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2c0df8blue
#2c0df8blue

Contrast

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

Light mode
Text on background20.53:1AAA
Text on card20.16:1AAA
Primary button8.36:1AAA
Secondary button10.48:1AAA
Muted text7.01:1AAA
Accent10.48:1AAA
Destructive5.19:1AA
Dark mode
Text on background20.05:1AAA
Text on card20.35:1AAA
Primary button8.36:1AAA
Secondary button10.48:1AAA
Muted text9.22:1AAA
Accent10.48:1AAA
Destructive7.82:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.111 0.042 287.365);
  --muted: oklch(0.973 0.013 112.791);
  --muted-foreground: oklch(0.445 0.02 113.386);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.111 0.042 287.365);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.1 0.036 288.417);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.458 0.296 269.455);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.923 0.215 118.634);
  --secondary-foreground: oklch(0.317 0.072 117.522);
  --accent: oklch(0.923 0.215 118.634);
  --accent-foreground: oklch(0.317 0.072 117.522);
  --destructive: oklch(0.55 0.157 42.824);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.458 0.296 269.455);
  --chart-1: oklch(0.458 0.296 269.455);
  --chart-2: oklch(0.923 0.215 118.634);
  --chart-3: oklch(0.923 0.215 118.634);
  --chart-4: oklch(0.926 0.212 118.18);
  --chart-5: oklch(0.46 0.301 268.764);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.015 291.253);
  --foreground: oklch(0.99 0.002 292.496);
  --muted: oklch(0.175 0.019 114.489);
  --muted-foreground: oklch(0.772 0.018 112.972);
  --popover: oklch(0.103 0.015 291.253);
  --popover-foreground: oklch(0.99 0.002 292.496);
  --card: oklch(0.118 0.017 291.237);
  --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.458 0.296 269.455);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.923 0.215 118.634);
  --secondary-foreground: oklch(0.317 0.072 117.522);
  --accent: oklch(0.923 0.215 118.634);
  --accent-foreground: oklch(0.317 0.072 117.522);
  --destructive: oklch(0.714 0.159 46.75);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.458 0.296 269.455);
  --chart-1: oklch(0.458 0.296 269.455);
  --chart-2: oklch(0.923 0.215 118.634);
  --chart-3: oklch(0.923 0.215 118.634);
  --chart-4: oklch(0.926 0.212 118.18);
  --chart-5: oklch(0.46 0.301 268.764);
}