Jewellery for shadcn/ui

Jewellery is a shadcn/ui theme built around a green primary color (#2c7d40) with purple accents (#7d2c68). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#2c7d40) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefcwhite
#000000black
Foreground
#041007black
#fcfdfcwhite
Card
#f7fdf8mintcream
#030303black
Card foreground
#030c05black
#ffffffwhite
Popover
#f7fdf8mintcream
#030303black
Popover foreground
#030c05black
#ffffffwhite
Primary
#2c7d40seagreen
#2c7d40seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7d2c68purple
#7d2c68purple
Secondary foreground
#f6e5f1lavenderblush
#f6e5f1lavenderblush
Muted
#f3e7f0whitesmoke
#180c15black
Muted foreground
#5b575adimgray
#a8a4a7darkgray
Accent
#7d2c68purple
#7d2c68purple
Accent foreground
#f6e5f1lavenderblush
#f6e5f1lavenderblush
Destructive
#8b350esaddlebrown
#eb7037tomato
Destructive foreground
#faded1antiquewhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2c7d40seagreen
#2c7d40seagreen

Contrast

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

Light mode
Text on background19.10:1AAA
Text on card19.23:1AAA
Primary button5.13:1AA
Secondary button7.17:1AAA
Muted text5.93:1AA
Accent7.17:1AAA
Destructive6.25:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.67:1AAA
Primary button5.13:1AA
Secondary button7.17:1AAA
Muted text7.74:1AAA
Accent7.17:1AAA
Destructive6.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 153.801);
  --foreground: oklch(0.159 0.028 152.175);
  --muted: oklch(0.941 0.017 334.183);
  --muted-foreground: oklch(0.463 0.006 334.103);
  --popover: oklch(0.988 0.009 153.723);
  --popover-foreground: oklch(0.142 0.024 152.981);
  --card: oklch(0.988 0.009 153.723);
  --card-foreground: oklch(0.142 0.024 152.981);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.524 0.122 148.649);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.432 0.134 338.806);
  --secondary-foreground: oklch(0.938 0.025 334.322);
  --accent: oklch(0.432 0.134 338.806);
  --accent-foreground: oklch(0.938 0.025 334.322);
  --destructive: oklch(0.446 0.127 41.493);
  --destructive-foreground: oklch(0.92 0.036 46.451);
  --ring: oklch(0.524 0.122 148.649);
  --chart-1: oklch(0.524 0.122 148.649);
  --chart-2: oklch(0.432 0.134 338.806);
  --chart-3: oklch(0.432 0.134 338.806);
  --chart-4: oklch(0.459 0.143 338.859);
  --chart-5: oklch(0.53 0.128 148.359);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 153.841);
  --muted: oklch(0.175 0.026 336.218);
  --muted-foreground: oklch(0.722 0.006 334.007);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --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.524 0.122 148.649);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.432 0.134 338.806);
  --secondary-foreground: oklch(0.938 0.025 334.322);
  --accent: oklch(0.432 0.134 338.806);
  --accent-foreground: oklch(0.938 0.025 334.322);
  --destructive: oklch(0.683 0.167 43.368);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.524 0.122 148.649);
  --chart-1: oklch(0.524 0.122 148.649);
  --chart-2: oklch(0.432 0.134 338.806);
  --chart-3: oklch(0.432 0.134 338.806);
  --chart-4: oklch(0.459 0.143 338.859);
  --chart-5: oklch(0.53 0.128 148.359);
}