ramp-1 for shadcn/ui

ramp-1 is a shadcn/ui theme built around a vivid green primary color (#dff223) with deep violet accents (#1d122b). The light mode uses a neutral background (#fafcf8). Dark mode switches to a deep green primary (#202b12) on a green-tinted background (#080b04).

Color palette

TokenLightDark
Background
#fafcf8snow
#080b04black
Foreground
#080e02black
#f8f8f6whitesmoke
Card
#f8fbf4whitesmoke
#0b0e06black
Card foreground
#060901black
#fafbf9snow
Popover
#f8fbf4whitesmoke
#0b0e06black
Popover foreground
#060901black
#fafbf9snow
Primary
#dff223yellow
#202b12black
Primary foreground
#14342cdarkslategray
#8bb851yellowgreen
Secondary
#1d122bblack
#1d122bblack
Secondary foreground
#b49ad6plum
#b49ad6plum
Muted
#d7cee3gainsboro
#251c31darkslategray
Muted foreground
#4c4851darkslategray
#b2aeb7darkgray
Accent
#1d122bblack
#1d122bblack
Accent foreground
#b49ad6plum
#b49ad6plum
Destructive
#8c0c03darkred
#fa1f0fred
Destructive foreground
#fec7c3pink
#ffffffwhite
Border
#e3e4e2gainsboro
#1c1d1bblack
Input
#e3e4e2gainsboro
#1c1d1bblack
Ring
#202b12black
#202b12black

Contrast

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

Light mode
Text on background18.95:1AAA
Text on card19.14:1AAA
Primary button10.82:1AAA
Secondary button7.27:1AAA
Muted text5.89:1AA
Accent7.27:1AAA
Destructive6.53:1AA
Dark mode
Text on background18.63:1AAA
Text on card18.69:1AAA
Primary button6.37:1AA
Secondary button7.27:1AAA
Muted text7.48:1AAA
Accent7.27:1AAA
Destructive3.98:1AA Large

CSS variables

Paste this into your globals.css to use ramp-1 in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 125.822);
  --foreground: oklch(0.151 0.031 125.211);
  --muted: oklch(0.866 0.03 305.283);
  --muted-foreground: oklch(0.409 0.016 305.221);
  --popover: oklch(0.983 0.009 125.864);
  --popover-foreground: oklch(0.131 0.026 124.617);
  --card: oklch(0.983 0.009 125.864);
  --card-foreground: oklch(0.131 0.026 124.617);
  --border: oklch(0.917 0.002 125.763);
  --input: oklch(0.917 0.002 125.763);
  --primary: oklch(0.916 0.202 115.475);
  --primary-foreground: oklch(0.298 0.041 174.773);
  --secondary: oklch(0.21 0.051 302.234);
  --secondary-foreground: oklch(0.729 0.09 304.083);
  --accent: oklch(0.21 0.051 302.234);
  --accent-foreground: oklch(0.729 0.09 304.083);
  --destructive: oklch(0.407 0.16 30.052);
  --destructive-foreground: oklch(0.877 0.063 23.157);
  --ring: oklch(0.273 0.046 128.382);
  --chart-1: oklch(0.916 0.202 115.475);
  --chart-2: oklch(0.21 0.051 302.234);
  --chart-3: oklch(0.21 0.051 302.234);
  --chart-4: oklch(0.237 0.061 301.934);
  --chart-5: oklch(0.926 0.206 115.569);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.017 125.134);
  --foreground: oklch(0.979 0.003 125.783);
  --muted: oklch(0.247 0.04 303.507);
  --muted-foreground: oklch(0.757 0.014 305.499);
  --popover: oklch(0.159 0.019 126.373);
  --popover-foreground: oklch(0.986 0.002 125.768);
  --card: oklch(0.159 0.019 126.373);
  --card-foreground: oklch(0.986 0.002 125.768);
  --border: oklch(0.228 0.002 125.871);
  --input: oklch(0.228 0.002 125.871);
  --primary: oklch(0.273 0.046 128.382);
  --primary-foreground: oklch(0.728 0.141 128.939);
  --secondary: oklch(0.21 0.051 302.234);
  --secondary-foreground: oklch(0.729 0.09 304.083);
  --accent: oklch(0.21 0.051 302.234);
  --accent-foreground: oklch(0.729 0.09 304.083);
  --destructive: oklch(0.627 0.246 29.756);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.273 0.046 128.382);
  --chart-1: oklch(0.273 0.046 128.382);
  --chart-2: oklch(0.21 0.051 302.234);
  --chart-3: oklch(0.21 0.051 302.234);
  --chart-4: oklch(0.237 0.061 301.934);
  --chart-5: oklch(0.276 0.049 128.565);
}