Nebula - Console for shadcn/ui

Nebula - Console is a shadcn/ui theme built around a vivid light violet primary color (#f6f0ff) with muted indigo accents (#454568). The light mode uses an indigo-tinted background (#27273a). Dark mode keeps the vivid light violet primary (#f6f0ff) on an indigo-tinted background (#27273a).

Color palette

TokenLightDark
Background
#27273adarkslategray
#27273adarkslategray
Foreground
#fcf5ffghostwhite
#fcf5ffghostwhite
Card
#232334darkslategray
#232334darkslategray
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#212131darkslategray
#212131darkslategray
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#f6f0ffghostwhite
#f6f0ffghostwhite
Primary foreground
#4b00bdindigo
#4b00bdindigo
Secondary
#3c2d53darkslategray
#3c2d53darkslategray
Secondary foreground
#d6cde4gainsboro
#d6cde4gainsboro
Muted
#343442darkslategray
#343442darkslategray
Muted foreground
#b2b2c2silver
#b2b2c2silver
Accent
#454568darkslategray
#454568darkslategray
Accent foreground
#ededf3whitesmoke
#ededf3whitesmoke
Destructive
#e90101red
#e90101red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#373743darkslategray
#373743darkslategray
Input
#3e3e4cdarkslategray
#3e3e4cdarkslategray
Ring
#f6f0ffghostwhite
#f6f0ffghostwhite

Contrast

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

Light mode
Text on background13.70:1AAA
Text on card15.47:1AAA
Primary button9.23:1AAA
Secondary button8.13:1AAA
Muted text5.88:1AA
Accent7.77:1AAA
Destructive4.68:1AA
Dark mode
Text on background13.70:1AAA
Text on card15.47:1AAA
Primary button9.23:1AAA
Secondary button8.13:1AAA
Muted text5.88:1AA
Accent7.77:1AAA
Destructive4.68:1AA

CSS variables

Paste this into your globals.css to use Nebula - Console in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.281 0.035 283.884);
  --foreground: oklch(0.978 0.015 314.751);
  --muted: oklch(0.329 0.025 284.963);
  --muted-foreground: oklch(0.768 0.023 285.837);
  --popover: oklch(0.254 0.031 284.009);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.263 0.032 283.964);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.342 0.021 285.221);
  --input: oklch(0.369 0.023 285.193);
  --primary: oklch(0.963 0.021 304.029);
  --primary-foreground: oklch(0.404 0.234 286.278);
  --secondary: oklch(0.331 0.068 301.23);
  --secondary-foreground: oklch(0.864 0.033 303.801);
  --accent: oklch(0.407 0.058 283.535);
  --accent-foreground: oklch(0.947 0.008 286.243);
  --destructive: oklch(0.588 0.241 29.198);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.963 0.021 304.029);
  --chart-1: oklch(0.963 0.021 304.029);
  --chart-2: oklch(0.331 0.068 301.23);
  --chart-3: oklch(0.407 0.058 283.535);
  --chart-4: oklch(0.357 0.075 301.155);
  --chart-5: oklch(0.963 0.022 304.019);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.281 0.035 283.884);
  --foreground: oklch(0.978 0.015 314.751);
  --muted: oklch(0.329 0.025 284.963);
  --muted-foreground: oklch(0.768 0.023 285.837);
  --popover: oklch(0.254 0.031 284.009);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.263 0.032 283.964);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.342 0.021 285.221);
  --input: oklch(0.369 0.023 285.193);
  --primary: oklch(0.963 0.021 304.029);
  --primary-foreground: oklch(0.404 0.234 286.278);
  --secondary: oklch(0.331 0.068 301.23);
  --secondary-foreground: oklch(0.864 0.033 303.801);
  --accent: oklch(0.407 0.058 283.535);
  --accent-foreground: oklch(0.947 0.008 286.243);
  --destructive: oklch(0.588 0.241 29.198);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.963 0.021 304.029);
  --chart-1: oklch(0.963 0.021 304.029);
  --chart-2: oklch(0.331 0.068 301.23);
  --chart-3: oklch(0.407 0.058 283.535);
  --chart-4: oklch(0.357 0.075 301.155);
  --chart-5: oklch(0.963 0.022 304.019);
}