Raisin for shadcn/ui

Raisin is a shadcn/ui theme built around a deep indigo primary color (#110e20) with muted light indigo accents (#e2e1ea). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the deep indigo primary (#110e20) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#000000black
Foreground
#010105black
#fcfcfdwhite
Card
#f9f8fbghostwhite
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfdwhite
#000000black
Popover foreground
#010105black
#fcfcfdwhite
Primary
#110e20black
#110e20black
Primary foreground
#9b90d0mediumpurple
#9b90d0mediumpurple
Secondary
#e2e1eagainsboro
#171717black
Secondary foreground
#433e5bdarkslategray
#afafb1darkgray
Muted
#e5e4eclavender
#14131bblack
Muted foreground
#414144darkslategray
#bcbbbesilver
Accent
#e2e1eagainsboro
#171717black
Accent foreground
#433e5bdarkslategray
#afafb1darkgray
Destructive
#b31605firebrick
#fa432etomato
Destructive foreground
#feedeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#110e20black
#110e20black

Contrast

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

Light mode
Text on background20.28:1AAA
Text on card19.88:1AAA
Primary button6.59:1AA
Secondary button7.77:1AAA
Muted text8.07:1AAA
Accent7.77:1AAA
Destructive6.10:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button6.59:1AA
Secondary button8.20:1AAA
Muted text9.64:1AAA
Accent8.20:1AAA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 294.026);
  --foreground: oklch(0.069 0.025 291.312);
  --muted: oklch(0.923 0.011 293.852);
  --muted-foreground: oklch(0.377 0.004 293.843);
  --popover: oklch(0.991 0.002 294.026);
  --popover-foreground: oklch(0.069 0.025 291.312);
  --card: oklch(0.981 0.004 293.986);
  --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.177 0.037 289.707);
  --primary-foreground: oklch(0.687 0.092 291.413);
  --secondary: oklch(0.913 0.013 293.796);
  --secondary-foreground: oklch(0.381 0.049 291.524);
  --accent: oklch(0.913 0.013 293.796);
  --accent-foreground: oklch(0.381 0.049 291.524);
  --destructive: oklch(0.489 0.19 30.481);
  --destructive-foreground: oklch(0.96 0.019 25.163);
  --ring: oklch(0.177 0.037 289.707);
  --chart-1: oklch(0.177 0.037 289.707);
  --chart-2: oklch(0.913 0.013 293.796);
  --chart-3: oklch(0.913 0.013 293.796);
  --chart-4: oklch(0.939 0.009 293.884);
  --chart-5: oklch(0.176 0.04 289.275);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.001 294.042);
  --muted: oklch(0.192 0.016 292.497);
  --muted-foreground: oklch(0.794 0.004 293.978);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.001 294.042);
  --card: oklch(0.092 0 180);
  --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.177 0.037 289.707);
  --primary-foreground: oklch(0.687 0.092 291.413);
  --secondary: oklch(0.204 0.001 293.983);
  --secondary-foreground: oklch(0.755 0.002 294.01);
  --accent: oklch(0.204 0.001 293.983);
  --accent-foreground: oklch(0.755 0.002 294.01);
  --destructive: oklch(0.651 0.222 30.298);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.177 0.037 289.707);
  --chart-1: oklch(0.177 0.037 289.707);
  --chart-2: oklch(0.204 0.001 293.983);
  --chart-3: oklch(0.204 0.001 293.983);
  --chart-4: oklch(0.237 0.001 293.974);
  --chart-5: oklch(0.176 0.04 289.275);
}