Astrolabe for shadcn/ui

Astrolabe is a shadcn/ui theme built around a light teal primary color (#cbebe7) with light red accents (#ebcbd0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#cbebe7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#031614black
#f5faf9mintcream
Card
#ffffffwhite
#000000black
Card foreground
#031614black
#f5faf9mintcream
Popover
#ffffffwhite
#000000black
Popover foreground
#031614black
#f5faf9mintcream
Primary
#cbebe7gainsboro
#cbebe7gainsboro
Primary foreground
#081614black
#081614black
Secondary
#ebcbd0pink
#ebcbd0pink
Secondary foreground
#60242csaddlebrown
#60242csaddlebrown
Muted
#e9e2e3gainsboro
#1d1617black
Muted foreground
#48373adarkslategray
#c8b7b9silver
Accent
#ebcbd0pink
#ebcbd0pink
Accent foreground
#60242csaddlebrown
#60242csaddlebrown
Destructive
#6d2508maroon
#f06c38tomato
Destructive foreground
#f9c3aelightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cbebe7gainsboro
#cbebe7gainsboro

Contrast

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

Light mode
Text on background18.60:1AAA
Text on card18.60:1AAA
Primary button14.64:1AAA
Secondary button7.84:1AAA
Muted text8.72:1AAA
Accent7.84:1AAA
Destructive7.01:1AAA
Dark mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button14.64:1AAA
Secondary button7.84:1AAA
Muted text9.28:1AAA
Accent7.84:1AAA
Destructive6.90:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.183 0.027 184.142);
  --muted: oklch(0.918 0.008 7.973);
  --muted-foreground: oklch(0.358 0.024 9.369);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.183 0.027 184.142);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.183 0.027 184.142);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.917 0.034 186.814);
  --primary-foreground: oklch(0.188 0.02 184.852);
  --secondary: oklch(0.871 0.037 8.769);
  --secondary-foreground: oklch(0.352 0.087 14.605);
  --accent: oklch(0.871 0.037 8.769);
  --accent-foreground: oklch(0.352 0.087 14.605);
  --destructive: oklch(0.37 0.109 39.225);
  --destructive-foreground: oklch(0.861 0.068 42.612);
  --ring: oklch(0.917 0.034 186.814);
  --chart-1: oklch(0.917 0.034 186.814);
  --chart-2: oklch(0.871 0.037 8.769);
  --chart-3: oklch(0.871 0.037 8.769);
  --chart-4: oklch(0.899 0.028 8.516);
  --chart-5: oklch(0.919 0.036 186.754);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.981 0.006 187.609);
  --muted: oklch(0.209 0.013 9.211);
  --muted-foreground: oklch(0.794 0.019 8.336);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.981 0.006 187.609);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.981 0.006 187.609);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.917 0.034 186.814);
  --primary-foreground: oklch(0.188 0.02 184.852);
  --secondary: oklch(0.871 0.037 8.769);
  --secondary-foreground: oklch(0.352 0.087 14.605);
  --accent: oklch(0.871 0.037 8.769);
  --accent-foreground: oklch(0.352 0.087 14.605);
  --destructive: oklch(0.684 0.176 40.703);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.917 0.034 186.814);
  --chart-1: oklch(0.917 0.034 186.814);
  --chart-2: oklch(0.871 0.037 8.769);
  --chart-3: oklch(0.871 0.037 8.769);
  --chart-4: oklch(0.899 0.028 8.516);
  --chart-5: oklch(0.919 0.036 186.754);
}