Jot for shadcn/ui

Jot is a shadcn/ui theme built around a violet primary color (#682183) with purple accents (#83216c). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#682183) on a violet-tinted background (#09050b).

Color palette

TokenLightDark
Background
#fdfbfewhite
#09050bblack
Foreground
#100514black
#f8f5f9whitesmoke
Card
#fdfbfewhite
#09050bblack
Card foreground
#100514black
#f8f5f9whitesmoke
Popover
#fdfbfewhite
#09050bblack
Popover foreground
#100514black
#f8f5f9whitesmoke
Primary
#682183rebeccapurple
#682183rebeccapurple
Primary foreground
#f0def7lavender
#f0def7lavender
Secondary
#372183darkslateblue
#372183darkslateblue
Secondary foreground
#e4def7lavender
#e4def7lavender
Muted
#d7d1ebgainsboro
#1a142eblack
Muted foreground
#4f4c57darkslategray
#aaa8b3darkgray
Accent
#83216cpurple
#83216cpurple
Accent foreground
#f7def1mistyrose
#f7def1mistyrose
Destructive
#843006saddlebrown
#f4590borangered
Destructive foreground
#fcd4c0peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#682183rebeccapurple
#682183rebeccapurple

Contrast

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

Light mode
Text on background19.36:1AAA
Text on card19.36:1AAA
Primary button7.73:1AAA
Secondary button9.44:1AAA
Muted text5.67:1AA
Accent6.98:1AA
Destructive6.38:1AA
Dark mode
Text on background18.73:1AAA
Text on card18.73:1AAA
Primary button7.73:1AAA
Secondary button9.44:1AAA
Muted text7.55:1AAA
Accent6.98:1AA
Destructive3.35:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 317.179);
  --foreground: oklch(0.145 0.037 317.09);
  --muted: oklch(0.873 0.036 296.336);
  --muted-foreground: oklch(0.423 0.019 296.266);
  --popover: oklch(0.99 0.005 317.179);
  --popover-foreground: oklch(0.145 0.037 317.09);
  --card: oklch(0.99 0.005 317.179);
  --card-foreground: oklch(0.145 0.037 317.09);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.405 0.161 315.307);
  --primary-foreground: oklch(0.923 0.038 317.096);
  --secondary: oklch(0.344 0.153 285.846);
  --secondary-foreground: oklch(0.914 0.034 296.415);
  --accent: oklch(0.431 0.156 338.997);
  --accent-foreground: oklch(0.927 0.036 333.861);
  --destructive: oklch(0.425 0.124 41.651);
  --destructive-foreground: oklch(0.898 0.053 48.11);
  --ring: oklch(0.405 0.161 315.307);
  --chart-1: oklch(0.405 0.161 315.307);
  --chart-2: oklch(0.344 0.153 285.846);
  --chart-3: oklch(0.431 0.156 338.997);
  --chart-4: oklch(0.365 0.165 285.63);
  --chart-5: oklch(0.406 0.167 315.127);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.018 318.459);
  --foreground: oklch(0.974 0.006 317.174);
  --muted: oklch(0.215 0.05 292.424);
  --muted-foreground: oklch(0.736 0.017 296.675);
  --popover: oklch(0.124 0.018 318.459);
  --popover-foreground: oklch(0.974 0.006 317.174);
  --card: oklch(0.124 0.018 318.459);
  --card-foreground: oklch(0.974 0.006 317.174);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.405 0.161 315.307);
  --primary-foreground: oklch(0.923 0.038 317.096);
  --secondary: oklch(0.344 0.153 285.846);
  --secondary-foreground: oklch(0.914 0.034 296.415);
  --accent: oklch(0.431 0.156 338.997);
  --accent-foreground: oklch(0.927 0.036 333.861);
  --destructive: oklch(0.662 0.203 40.301);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.405 0.161 315.307);
  --chart-1: oklch(0.405 0.161 315.307);
  --chart-2: oklch(0.344 0.153 285.846);
  --chart-3: oklch(0.431 0.156 338.997);
  --chart-4: oklch(0.365 0.165 285.63);
  --chart-5: oklch(0.406 0.167 315.127);
}