Sparerib for shadcn/ui

Sparerib is a shadcn/ui theme built around a vivid teal primary color (#1df7a7) with vivid orange accents (#f7a71d). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#1df7a7) on a teal-tinted background (#060f0b).

Color palette

TokenLightDark
Background
#ffffffwhite
#060f0bblack
Foreground
#06140fblack
#fcfdfdwhite
Card
#fcfcfcsnow
#07120eblack
Card foreground
#04100cblack
#ffffffwhite
Popover
#ffffffwhite
#060f0bblack
Popover foreground
#06140fblack
#fcfdfdwhite
Primary
#1df7a7mediumspringgreen
#1df7a7mediumspringgreen
Primary foreground
#02452ddarkgreen
#02452ddarkgreen
Secondary
#a71df7blueviolet
#a71df7blueviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dcd7dfgainsboro
#252028darkslategray
Muted foreground
#5b5260dimgray
#a89faddarkgray
Accent
#f7a71dgoldenrod
#f7a71dgoldenrod
Accent foreground
#452d02maroon
#452d02maroon
Destructive
#ab4a12sienna
#ea7a39coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1df7a7mediumspringgreen
#1df7a7mediumspringgreen

Contrast

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

Light mode
Text on background18.83:1AAA
Text on card18.94:1AAA
Primary button7.86:1AAA
Secondary button5.05:1AA
Muted text5.27:1AA
Accent6.43:1AA
Destructive5.65:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.02:1AAA
Primary button7.86:1AAA
Secondary button5.05:1AA
Muted text6.27:1AA
Accent6.43:1AA
Destructive7.32:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.175 0.024 168.672);
  --muted: oklch(0.887 0.012 313.523);
  --muted-foreground: oklch(0.453 0.026 313.26);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.175 0.024 168.672);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.159 0.02 170.155);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.863 0.19 160.422);
  --primary-foreground: oklch(0.345 0.075 161.438);
  --secondary: oklch(0.578 0.283 307.206);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.787 0.162 73.282);
  --accent-foreground: oklch(0.317 0.065 75.208);
  --destructive: oklch(0.528 0.142 45.121);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.863 0.19 160.422);
  --chart-1: oklch(0.863 0.19 160.422);
  --chart-2: oklch(0.578 0.283 307.206);
  --chart-3: oklch(0.787 0.162 73.282);
  --chart-4: oklch(0.594 0.276 308.303);
  --chart-5: oklch(0.871 0.194 160.083);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.016 170.667);
  --foreground: oklch(0.993 0.002 172.522);
  --muted: oklch(0.252 0.016 313.209);
  --muted-foreground: oklch(0.713 0.023 313.409);
  --popover: oklch(0.156 0.016 170.667);
  --popover-foreground: oklch(0.993 0.002 172.522);
  --card: oklch(0.171 0.019 169.346);
  --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.863 0.19 160.422);
  --primary-foreground: oklch(0.345 0.075 161.438);
  --secondary: oklch(0.578 0.283 307.206);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.787 0.162 73.282);
  --accent-foreground: oklch(0.317 0.065 75.208);
  --destructive: oklch(0.696 0.159 47.8);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.863 0.19 160.422);
  --chart-1: oklch(0.863 0.19 160.422);
  --chart-2: oklch(0.578 0.283 307.206);
  --chart-3: oklch(0.787 0.162 73.282);
  --chart-4: oklch(0.594 0.276 308.303);
  --chart-5: oklch(0.871 0.194 160.083);
}