Ramen for shadcn/ui

Ramen is a shadcn/ui theme built around a light orange primary color (#f1e5df) with light blue accents (#dfebf1). The light mode uses a neutral background (#ffffff). Dark mode keeps the light orange primary (#f1e5df) on an orange-tinted background (#0f0906).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0906black
Foreground
#090401black
#fbfaf9snow
Card
#fcfcfcsnow
#120b07black
Card foreground
#050201black
#fdfcfcsnow
Popover
#ffffffwhite
#0f0906black
Popover foreground
#090401black
#fbfaf9snow
Primary
#f1e5dfantiquewhite
#f1e5dfantiquewhite
Primary foreground
#6f462fsaddlebrown
#6f462fsaddlebrown
Secondary
#dfebf1lavender
#dfebf1lavender
Secondary foreground
#2f596fdarkslategray
#2f596fdarkslategray
Muted
#d4e1e8gainsboro
#17242bblack
Muted foreground
#3a454bdarkslategray
#b4bfc5silver
Accent
#dfebf1lavender
#dfebf1lavender
Accent foreground
#2f596fdarkslategray
#2f596fdarkslategray
Destructive
#6b1106maroon
#f4412aorangered
Destructive foreground
#fab1a8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f1e5dfantiquewhite
#f1e5dfantiquewhite

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card20.23:1AAA
Primary button6.57:1AA
Secondary button6.21:1AA
Muted text7.36:1AAA
Accent6.21:1AA
Destructive6.98:1AA
Dark mode
Text on background18.99:1AAA
Text on card19.02:1AAA
Primary button6.57:1AA
Secondary button6.21:1AA
Muted text8.44:1AAA
Accent6.21:1AA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.115 0.019 63.273);
  --muted: oklch(0.902 0.017 230.924);
  --muted-foreground: oklch(0.382 0.018 231.388);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.115 0.019 63.273);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.091 0.015 63.273);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.93 0.016 50.445);
  --primary-foreground: oklch(0.435 0.066 48.688);
  --secondary: oklch(0.932 0.015 230.892);
  --secondary-foreground: oklch(0.442 0.059 233.797);
  --accent: oklch(0.932 0.015 230.892);
  --accent-foreground: oklch(0.442 0.059 233.797);
  --destructive: oklch(0.342 0.124 31.229);
  --destructive-foreground: oklch(0.828 0.087 27.492);
  --ring: oklch(0.93 0.016 50.445);
  --chart-1: oklch(0.93 0.016 50.445);
  --chart-2: oklch(0.932 0.015 230.892);
  --chart-3: oklch(0.932 0.015 230.892);
  --chart-4: oklch(0.955 0.01 230.808);
  --chart-5: oklch(0.93 0.017 50.43);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.013 54.408);
  --foreground: oklch(0.985 0.002 50.636);
  --muted: oklch(0.252 0.022 232.303);
  --muted-foreground: oklch(0.799 0.015 230.926);
  --popover: oklch(0.146 0.013 54.408);
  --popover-foreground: oklch(0.985 0.002 50.636);
  --card: oklch(0.158 0.015 51.255);
  --card-foreground: oklch(0.992 0.001 50.648);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.93 0.016 50.445);
  --primary-foreground: oklch(0.435 0.066 48.688);
  --secondary: oklch(0.932 0.015 230.892);
  --secondary-foreground: oklch(0.442 0.059 233.797);
  --accent: oklch(0.932 0.015 230.892);
  --accent-foreground: oklch(0.442 0.059 233.797);
  --destructive: oklch(0.64 0.218 30.986);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.93 0.016 50.445);
  --chart-1: oklch(0.93 0.016 50.445);
  --chart-2: oklch(0.932 0.015 230.892);
  --chart-3: oklch(0.932 0.015 230.892);
  --chart-4: oklch(0.955 0.01 230.808);
  --chart-5: oklch(0.93 0.017 50.43);
}