Astrologer for shadcn/ui

Astrologer is a shadcn/ui theme built around a blue primary color (#384785) with yellow accents (#857638). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the blue primary (#384785) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#000000black
Foreground
#020408black
#f8f9fcghostwhite
Card
#f4f6fawhitesmoke
#030303black
Card foreground
#010204black
#fcfcfdwhite
Popover
#f4f6fawhitesmoke
#030303black
Popover foreground
#010204black
#fcfcfdwhite
Primary
#384785darkslateblue
#384785darkslateblue
Primary foreground
#f4f5fawhitesmoke
#f4f5fawhitesmoke
Secondary
#857638olivedrab
#857638olivedrab
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8e7e3gainsboro
#1c1b17black
Muted foreground
#57554cdarkolivegreen
#b3b1a8darkgray
Accent
#857638olivedrab
#857638olivedrab
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8e3501saddlebrown
#f45a01orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#384785darkslateblue
#384785darkslateblue

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.14:1AAA
Primary button8.00:1AAA
Secondary button4.54:1AA
Muted text6.02:1AA
Accent4.54:1AA
Destructive7.91:1AAA
Dark mode
Text on background19.94:1AAA
Text on card20.16:1AAA
Primary button8.00:1AAA
Secondary button4.54:1AA
Muted text8.04:1AAA
Accent4.54:1AA
Destructive3.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 274.981);
  --foreground: oklch(0.103 0.015 268.703);
  --muted: oklch(0.927 0.004 95.091);
  --muted-foreground: oklch(0.449 0.015 95.391);
  --popover: oklch(0.972 0.006 274.953);
  --popover-foreground: oklch(0.082 0.012 268.703);
  --card: oklch(0.972 0.006 274.953);
  --card-foreground: oklch(0.082 0.012 268.703);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.418 0.105 270.748);
  --primary-foreground: oklch(0.972 0.007 274.949);
  --secondary: oklch(0.565 0.084 95.515);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.565 0.084 95.515);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.449 0.133 42.955);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.418 0.105 270.748);
  --chart-1: oklch(0.418 0.105 270.748);
  --chart-2: oklch(0.565 0.084 95.515);
  --chart-3: oklch(0.565 0.084 95.515);
  --chart-4: oklch(0.598 0.089 95.501);
  --chart-5: oklch(0.414 0.112 270.327);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.004 274.988);
  --muted: oklch(0.221 0.006 95.349);
  --muted-foreground: oklch(0.759 0.013 95.23);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.991 0.002 275.011);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.002 275.011);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.418 0.105 270.748);
  --primary-foreground: oklch(0.972 0.007 274.949);
  --secondary: oklch(0.565 0.084 95.515);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.565 0.084 95.515);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.663 0.203 41.264);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.418 0.105 270.748);
  --chart-1: oklch(0.418 0.105 270.748);
  --chart-2: oklch(0.565 0.084 95.515);
  --chart-3: oklch(0.565 0.084 95.515);
  --chart-4: oklch(0.598 0.089 95.501);
  --chart-5: oklch(0.414 0.112 270.327);
}