Snarling for shadcn/ui

Snarling is a shadcn/ui theme built around a muted blue primary color (#6b7fae) with muted yellow accents (#ae9a6b). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted blue primary (#6b7fae) on a blue-tinted background (#04060b).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#04060bblack
Foreground
#000000black
#f9f9fbghostwhite
Card
#f8f9fcghostwhite
#05080fblack
Card foreground
#000000black
#fcfcfdwhite
Popover
#fcfcfdwhite
#04060bblack
Popover foreground
#000000black
#f9f9fbghostwhite
Primary
#6b7faelightslategray
#6b7faelightslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ae9a6bdarkkhaki
#ae9a6bdarkkhaki
Secondary foreground
#000000black
#000000black
Muted
#e7e0d0gainsboro
#2f2818black
Muted foreground
#575142darkolivegreen
#bdb7a8darkgray
Accent
#ae9a6bdarkkhaki
#ae9a6bdarkkhaki
Accent foreground
#000000black
#000000black
Destructive
#b91004firebrick
#fb3f32tomato
Destructive foreground
#fff1f0seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6b7faelightslategray
#6b7faelightslategray

Contrast

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

Light mode
Text on background20.48:1AAA
Text on card19.97:1AAA
Primary button3.98:1AA Large
Secondary button7.59:1AAA
Muted text5.99:1AA
Accent7.59:1AAA
Destructive6.08:1AA
Dark mode
Text on background19.25:1AAA
Text on card19.51:1AAA
Primary button3.98:1AA Large
Secondary button7.59:1AAA
Muted text7.28:1AAA
Accent7.59:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 267.41);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.907 0.023 87.529);
  --muted-foreground: oklch(0.436 0.025 87.566);
  --popover: oklch(0.991 0.002 267.41);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.004 267.399);
  --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.599 0.075 266.284);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.691 0.067 87.363);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.691 0.067 87.363);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.498 0.198 29.87);
  --destructive-foreground: oklch(0.969 0.015 22.391);
  --ring: oklch(0.599 0.075 266.284);
  --chart-1: oklch(0.599 0.075 266.284);
  --chart-2: oklch(0.691 0.067 87.363);
  --chart-3: oklch(0.691 0.067 87.363);
  --chart-4: oklch(0.712 0.063 87.441);
  --chart-5: oklch(0.595 0.083 266.122);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.014 261.097);
  --foreground: oklch(0.984 0.002 267.408);
  --muted: oklch(0.281 0.029 87.307);
  --muted-foreground: oklch(0.78 0.022 87.538);
  --popover: oklch(0.123 0.014 261.097);
  --popover-foreground: oklch(0.984 0.002 267.408);
  --card: oklch(0.136 0.017 262.579);
  --card-foreground: oklch(0.992 0.001 267.414);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.599 0.075 266.284);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.691 0.067 87.363);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.691 0.067 87.363);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.651 0.225 28.979);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.599 0.075 266.284);
  --chart-1: oklch(0.599 0.075 266.284);
  --chart-2: oklch(0.691 0.067 87.363);
  --chart-3: oklch(0.691 0.067 87.363);
  --chart-4: oklch(0.712 0.063 87.441);
  --chart-5: oklch(0.595 0.083 266.122);
}