Velocity for shadcn/ui

Velocity is a shadcn/ui theme built around a vivid yellow primary color (#c98e0d) with vivid green accents (#a7c90d). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#c98e0d) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#ffffffwhite
#070603black
Foreground
#120d02black
#fbfaf9snow
Card
#fcfcfcsnow
#0a0905black
Card foreground
#0e0a02black
#fdfdfcwhite
Popover
#ffffffwhite
#070603black
Popover foreground
#120d02black
#fbfaf9snow
Primary
#c98e0ddarkgoldenrod
#c98e0ddarkgoldenrod
Primary foreground
#0a0701black
#0a0701black
Secondary
#c92f0dfirebrick
#c92f0dfirebrick
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ece6e4linen
#1b1513black
Muted foreground
#4e4341darkslategray
#beb4b1silver
Accent
#a7c90dyellowgreen
#a7c90dyellowgreen
Accent foreground
#080a01black
#080a01black
Destructive
#7a0e00maroon
#ff270aorangered
Destructive foreground
#ffb7adlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c98e0ddarkgoldenrod
#c98e0ddarkgoldenrod

Contrast

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

Light mode
Text on background19.36:1AAA
Text on card19.33:1AAA
Primary button7.03:1AAA
Secondary button5.36:1AA
Muted text7.70:1AAA
Accent10.46:1AAA
Destructive6.65:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.60:1AAA
Primary button7.03:1AAA
Secondary button5.36:1AA
Muted text8.92:1AAA
Accent10.46:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.162 0.027 89.662);
  --muted: oklch(0.928 0.007 32.661);
  --muted-foreground: oklch(0.394 0.015 32.717);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.162 0.027 89.662);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.146 0.024 92.385);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.687 0.141 78.115);
  --primary-foreground: oklch(0.128 0.023 94.572);
  --secondary: oklch(0.549 0.195 33.106);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.784 0.187 121.366);
  --accent-foreground: oklch(0.136 0.028 115.785);
  --destructive: oklch(0.372 0.143 31.564);
  --destructive-foreground: oklch(0.844 0.086 27.442);
  --ring: oklch(0.687 0.141 78.115);
  --chart-1: oklch(0.687 0.141 78.115);
  --chart-2: oklch(0.549 0.195 33.106);
  --chart-3: oklch(0.784 0.187 121.366);
  --chart-4: oklch(0.577 0.206 33.056);
  --chart-5: oklch(0.693 0.143 77.543);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.008 89.582);
  --foreground: oklch(0.986 0.003 86.017);
  --muted: oklch(0.201 0.01 32.762);
  --muted-foreground: oklch(0.776 0.012 32.668);
  --popover: oklch(0.121 0.008 89.582);
  --popover-foreground: oklch(0.986 0.003 86.017);
  --card: oklch(0.138 0.01 89.582);
  --card-foreground: oklch(0.993 0.001 86.012);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.687 0.141 78.115);
  --primary-foreground: oklch(0.128 0.023 94.572);
  --secondary: oklch(0.549 0.195 33.106);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.784 0.187 121.366);
  --accent-foreground: oklch(0.136 0.028 115.785);
  --destructive: oklch(0.639 0.247 30.709);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.687 0.141 78.115);
  --chart-1: oklch(0.687 0.141 78.115);
  --chart-2: oklch(0.549 0.195 33.106);
  --chart-3: oklch(0.784 0.187 121.366);
  --chart-4: oklch(0.577 0.206 33.056);
  --chart-5: oklch(0.693 0.143 77.543);
}