Jasmine for shadcn/ui

Jasmine is a shadcn/ui theme built around a deep orange primary color (#4b3111) with neutral gray accents (#dcdbda). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep orange primary (#4b3111) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fefdfbsnow
#030302black
Foreground
#000000black
#fbfaf9snow
Card
#fefdfbsnow
#030302black
Card foreground
#000000black
#fbfaf9snow
Popover
#fefdfbsnow
#030302black
Popover foreground
#000000black
#fbfaf9snow
Primary
#4b3111darkolivegreen
#4b3111darkolivegreen
Primary foreground
#eacaa4wheat
#eacaa4wheat
Secondary
#dcdbdagainsboro
#29241eblack
Secondary foreground
#444240darkslategray
#c7beb2silver
Muted
#f4f0eclinen
#13100bblack
Muted foreground
#56524edarkslategray
#b1aea9darkgray
Accent
#dcdbdagainsboro
#29241eblack
Accent foreground
#444240darkslategray
#c7beb2silver
Destructive
#772a09saddlebrown
#f17641coral
Destructive foreground
#faccb8peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4b3111darkolivegreen
#4b3111darkolivegreen

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button7.74:1AAA
Secondary button7.26:1AAA
Muted text6.82:1AA
Accent7.26:1AAA
Destructive6.81:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button7.74:1AAA
Secondary button8.34:1AAA
Muted text8.59:1AAA
Accent8.34:1AAA
Destructive7.39:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 73.197);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.957 0.007 73.167);
  --muted-foreground: oklch(0.441 0.009 73.064);
  --popover: oklch(0.994 0.003 73.197);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.003 73.197);
  --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.337 0.059 68.577);
  --primary-foreground: oklch(0.858 0.063 72.417);
  --secondary: oklch(0.893 0.002 73.203);
  --secondary-foreground: oklch(0.382 0.004 73.132);
  --accent: oklch(0.893 0.002 73.203);
  --accent-foreground: oklch(0.382 0.004 73.132);
  --destructive: oklch(0.394 0.115 40.146);
  --destructive-foreground: oklch(0.879 0.059 44.428);
  --ring: oklch(0.337 0.059 68.577);
  --chart-1: oklch(0.337 0.059 68.577);
  --chart-2: oklch(0.893 0.002 73.203);
  --chart-3: oklch(0.893 0.002 73.203);
  --chart-4: oklch(0.916 0.001 73.207);
  --chart-5: oklch(0.339 0.061 68.149);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.094 0.006 77.536);
  --foreground: oklch(0.986 0.002 73.202);
  --muted: oklch(0.174 0.01 72.64);
  --muted-foreground: oklch(0.752 0.008 73.143);
  --popover: oklch(0.094 0.006 77.536);
  --popover-foreground: oklch(0.986 0.002 73.202);
  --card: oklch(0.094 0.006 77.536);
  --card-foreground: oklch(0.986 0.002 73.202);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.337 0.059 68.577);
  --primary-foreground: oklch(0.858 0.063 72.417);
  --secondary: oklch(0.265 0.014 72.727);
  --secondary-foreground: oklch(0.805 0.019 73.025);
  --accent: oklch(0.265 0.014 72.727);
  --accent-foreground: oklch(0.805 0.019 73.025);
  --destructive: oklch(0.7 0.165 42.44);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.337 0.059 68.577);
  --chart-1: oklch(0.337 0.059 68.577);
  --chart-2: oklch(0.265 0.014 72.727);
  --chart-3: oklch(0.265 0.014 72.727);
  --chart-4: oklch(0.298 0.016 72.694);
  --chart-5: oklch(0.339 0.061 68.149);
}