Rocket for shadcn/ui

Rocket is a shadcn/ui theme built around a blue primary color (#1a3184) with yellow accents (#846d1a). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the blue primary (#1a3184) on a blue-tinted background (#04050c).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#04050cblack
Foreground
#010309black
#ffffffwhite
Card
#f5f6fawhitesmoke
#050710black
Card foreground
#010204black
#ffffffwhite
Popover
#f8f9fcghostwhite
#04050cblack
Popover foreground
#010309black
#ffffffwhite
Primary
#1a3184midnightblue
#1a3184midnightblue
Primary foreground
#d9dff7lavender
#d9dff7lavender
Secondary
#846d1aolive
#846d1aolive
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e1e0dbgainsboro
#24231eblack
Muted foreground
#716b56dimgray
#a9a38erosybrown
Accent
#846d1aolive
#846d1aolive
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b82e00firebrick
#fa3e00orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a3184midnightblue
#1a3184midnightblue

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.17:1AAA
Primary button8.72:1AAA
Secondary button5.01:1AA
Muted text4.02:1AA Large
Accent5.01:1AA
Destructive6.14:1AA
Dark mode
Text on background20.32:1AAA
Text on card20.10:1AAA
Primary button8.72:1AAA
Secondary button5.01:1AA
Muted text6.22:1AA
Accent5.01:1AA
Destructive3.64:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 273.819);
  --foreground: oklch(0.098 0.021 263.663);
  --muted: oklch(0.906 0.007 93.95);
  --muted-foreground: oklch(0.528 0.033 94.401);
  --popover: oklch(0.982 0.004 273.819);
  --popover-foreground: oklch(0.098 0.021 263.663);
  --card: oklch(0.973 0.006 273.795);
  --card-foreground: oklch(0.078 0.017 263.663);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.353 0.142 266.807);
  --primary-foreground: oklch(0.907 0.034 273.412);
  --secondary: oklch(0.542 0.101 92.526);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.542 0.101 92.526);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.515 0.18 35.139);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.353 0.142 266.807);
  --chart-1: oklch(0.353 0.142 266.807);
  --chart-2: oklch(0.542 0.101 92.526);
  --chart-3: oklch(0.542 0.101 92.526);
  --chart-4: oklch(0.579 0.109 92.449);
  --chart-5: oklch(0.352 0.148 266.471);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.017 267.352);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.256 0.01 94.23);
  --muted-foreground: oklch(0.716 0.031 94.276);
  --popover: oklch(0.119 0.017 267.352);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.131 0.02 268.242);
  --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.353 0.142 266.807);
  --primary-foreground: oklch(0.907 0.034 273.412);
  --secondary: oklch(0.542 0.101 92.526);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.542 0.101 92.526);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.646 0.229 34.517);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.353 0.142 266.807);
  --chart-1: oklch(0.353 0.142 266.807);
  --chart-2: oklch(0.542 0.101 92.526);
  --chart-3: oklch(0.542 0.101 92.526);
  --chart-4: oklch(0.579 0.109 92.449);
  --chart-5: oklch(0.352 0.148 266.471);
}