Ripe for shadcn/ui

Ripe is a shadcn/ui theme built around a light indigo primary color (#e9e8f3) with light green accents (#e8f3e9). The light mode uses a neutral background (#ffffff). Dark mode keeps the light indigo primary (#e9e8f3) on an indigo-tinted background (#08070e).

Color palette

TokenLightDark
Background
#ffffffwhite
#08070eblack
Foreground
#000000black
#fcfcfdwhite
Card
#ffffffwhite
#08070eblack
Card foreground
#000000black
#fcfcfdwhite
Popover
#ffffffwhite
#08070eblack
Popover foreground
#000000black
#fcfcfdwhite
Primary
#e9e8f3lavender
#e9e8f3lavender
Primary foreground
#433a6edarkslateblue
#433a6edarkslateblue
Secondary
#f3e9e8linen
#f3e9e8linen
Secondary foreground
#6e433adarkolivegreen
#6e433adarkolivegreen
Muted
#e3dbd9gainsboro
#261e1cblack
Muted foreground
#6c5d5adimgray
#a59693rosybrown
Accent
#e8f3e9honeydew
#e8f3e9honeydew
Accent foreground
#172b1ablack
#172b1ablack
Destructive
#af260efirebrick
#ed4021orangered
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e9e8f3lavender
#e9e8f3lavender

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.34:1AAA
Secondary button6.99:1AA
Muted text4.57:1AA
Accent13.15:1AAA
Destructive6.22:1AA
Dark mode
Text on background19.58:1AAA
Text on card19.58:1AAA
Primary button8.34:1AAA
Secondary button6.99:1AA
Muted text5.75:1AA
Accent13.15:1AAA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.896 0.009 31.064);
  --muted-foreground: oklch(0.494 0.02 31.174);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.934 0.015 293.767);
  --primary-foreground: oklch(0.384 0.087 289.303);
  --secondary: oklch(0.942 0.01 31.065);
  --secondary-foreground: oklch(0.431 0.063 31.989);
  --accent: oklch(0.952 0.017 150.576);
  --accent-foreground: oklch(0.268 0.041 148.412);
  --destructive: oklch(0.492 0.176 32.11);
  --destructive-foreground: oklch(0.972 0.012 29.513);
  --ring: oklch(0.934 0.015 293.767);
  --chart-1: oklch(0.934 0.015 293.767);
  --chart-2: oklch(0.942 0.01 31.065);
  --chart-3: oklch(0.952 0.017 150.576);
  --chart-4: oklch(0.967 0.006 31.054);
  --chart-5: oklch(0.933 0.016 293.737);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.016 292.822);
  --foreground: oklch(0.991 0.001 294.038);
  --muted: oklch(0.244 0.013 31.251);
  --muted-foreground: oklch(0.684 0.018 31.114);
  --popover: oklch(0.133 0.016 292.822);
  --popover-foreground: oklch(0.991 0.001 294.038);
  --card: oklch(0.133 0.016 292.822);
  --card-foreground: oklch(0.991 0.001 294.038);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.934 0.015 293.767);
  --primary-foreground: oklch(0.384 0.087 289.303);
  --secondary: oklch(0.942 0.01 31.065);
  --secondary-foreground: oklch(0.431 0.063 31.989);
  --accent: oklch(0.952 0.017 150.576);
  --accent-foreground: oklch(0.268 0.041 148.412);
  --destructive: oklch(0.626 0.214 32.306);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.934 0.015 293.767);
  --chart-1: oklch(0.934 0.015 293.767);
  --chart-2: oklch(0.942 0.01 31.065);
  --chart-3: oklch(0.952 0.017 150.576);
  --chart-4: oklch(0.967 0.006 31.054);
  --chart-5: oklch(0.933 0.016 293.737);
}