Sinful for shadcn/ui

Sinful is a shadcn/ui theme built around a vivid teal primary color (#0bf9c5) with vivid cyan accents (#0bb5f9). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid teal primary (#0bf9c5) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#fbfefdwhite
#010403black
Foreground
#051511black
#f4faf9mintcream
Card
#f7fdfbmintcream
#030706black
Card foreground
#04110eblack
#f8fcfbmintcream
Popover
#f7fdfbmintcream
#030706black
Popover foreground
#04110eblack
#f8fcfbmintcream
Primary
#0bf9c5mediumspringgreen
#0bf9c5mediumspringgreen
Primary foreground
#01372bdarkgreen
#01372bdarkgreen
Secondary
#0bf94fspringgreen
#0bf94fspringgreen
Secondary foreground
#013711darkgreen
#013711darkgreen
Muted
#e7eee9lavender
#111813black
Muted foreground
#526657dimgray
#99ad9fdarkgray
Accent
#0bb5f9deepskyblue
#0bb5f9deepskyblue
Accent foreground
#012837midnightblue
#012837midnightblue
Destructive
#bd2900firebrick
#ff3b05orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0bf9c5mediumspringgreen
#0bf9c5mediumspringgreen

Contrast

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

Light mode
Text on background18.43:1AAA
Text on card18.64:1AAA
Primary button9.69:1AAA
Secondary button9.41:1AAA
Muted text5.24:1AA
Accent6.63:1AA
Destructive6.04:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.56:1AAA
Primary button9.69:1AAA
Secondary button9.41:1AAA
Muted text7.58:1AAA
Accent6.63:1AA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 181.986);
  --foreground: oklch(0.178 0.024 178.303);
  --muted: oklch(0.943 0.01 154.986);
  --muted-foreground: oklch(0.489 0.033 153.862);
  --popover: oklch(0.988 0.006 181.904);
  --popover-foreground: oklch(0.162 0.021 179.416);
  --card: oklch(0.988 0.006 181.904);
  --card-foreground: oklch(0.162 0.021 179.416);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.874 0.171 170.544);
  --primary-foreground: oklch(0.3 0.056 173.318);
  --secondary: oklch(0.854 0.263 145.477);
  --secondary-foreground: oklch(0.293 0.084 147.684);
  --accent: oklch(0.731 0.152 234.511);
  --accent-foreground: oklch(0.258 0.05 229.673);
  --destructive: oklch(0.52 0.188 33.704);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.874 0.171 170.544);
  --chart-1: oklch(0.874 0.171 170.544);
  --chart-2: oklch(0.854 0.263 145.477);
  --chart-3: oklch(0.731 0.152 234.511);
  --chart-4: oklch(0.857 0.256 146.214);
  --chart-5: oklch(0.883 0.174 170.235);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.009 182.005);
  --foreground: oklch(0.981 0.006 181.886);
  --muted: oklch(0.2 0.015 153.705);
  --muted-foreground: oklch(0.729 0.031 154.399);
  --popover: oklch(0.123 0.011 182.005);
  --popover-foreground: oklch(0.987 0.004 181.948);
  --card: oklch(0.123 0.011 182.005);
  --card-foreground: oklch(0.987 0.004 181.948);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.874 0.171 170.544);
  --primary-foreground: oklch(0.3 0.056 173.318);
  --secondary: oklch(0.854 0.263 145.477);
  --secondary-foreground: oklch(0.293 0.084 147.684);
  --accent: oklch(0.731 0.152 234.511);
  --accent-foreground: oklch(0.258 0.05 229.673);
  --destructive: oklch(0.652 0.236 33.487);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.874 0.171 170.544);
  --chart-1: oklch(0.874 0.171 170.544);
  --chart-2: oklch(0.854 0.263 145.477);
  --chart-3: oklch(0.731 0.152 234.511);
  --chart-4: oklch(0.857 0.256 146.214);
  --chart-5: oklch(0.883 0.174 170.235);
}