Snarling for shadcn/ui

Snarling is a shadcn/ui theme built around a vivid cyan primary color (#057594) with vivid green accents (#759405). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid cyan primary (#057594) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#ffffffwhite
#030607black
Foreground
#041215black
#f7f8f8whitesmoke
Card
#ffffffwhite
#030607black
Card foreground
#041215black
#f7f8f8whitesmoke
Popover
#ffffffwhite
#030607black
Popover foreground
#041215black
#f7f8f8whitesmoke
Primary
#057594teal
#057594teal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#940575purple
#940575purple
Secondary foreground
#fdcef3mistyrose
#fdcef3mistyrose
Muted
#f1e4eelavender
#1b0e18black
Muted foreground
#6d5f6adimgray
#a0929ddarkgray
Accent
#759405olive
#759405olive
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#891306darkred
#f52f19orangered
Destructive foreground
#fdcac4pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#057594teal
#057594teal

Contrast

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

Light mode
Text on background19.04:1AAA
Text on card19.04:1AAA
Primary button5.26:1AA
Secondary button6.01:1AA
Muted text4.89:1AA
Accent3.48:1AA Large
Destructive6.67:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button5.26:1AA
Secondary button6.01:1AA
Muted text6.31:1AA
Accent3.48:1AA Large
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.169 0.022 216.318);
  --muted: oklch(0.933 0.018 332.919);
  --muted-foreground: oklch(0.502 0.025 333.367);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.169 0.022 216.318);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.169 0.022 216.318);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.524 0.098 224.89);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.452 0.193 340.594);
  --secondary-foreground: oklch(0.902 0.072 333.809);
  --accent: oklch(0.621 0.152 123.299);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.405 0.153 30.61);
  --destructive-foreground: oklch(0.881 0.058 25.669);
  --ring: oklch(0.524 0.098 224.89);
  --chart-1: oklch(0.524 0.098 224.89);
  --chart-2: oklch(0.452 0.193 340.594);
  --chart-3: oklch(0.621 0.152 123.299);
  --chart-4: oklch(0.484 0.207 340.694);
  --chart-5: oklch(0.528 0.1 225.284);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.009 212.844);
  --foreground: oklch(0.978 0.001 216.017);
  --muted: oklch(0.186 0.027 334.73);
  --muted-foreground: oklch(0.675 0.023 333.14);
  --popover: oklch(0.119 0.009 212.844);
  --popover-foreground: oklch(0.978 0.001 216.017);
  --card: oklch(0.119 0.009 212.844);
  --card-foreground: oklch(0.978 0.001 216.017);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.524 0.098 224.89);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.452 0.193 340.594);
  --secondary-foreground: oklch(0.902 0.072 333.809);
  --accent: oklch(0.621 0.152 123.299);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.627 0.234 30.519);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.524 0.098 224.89);
  --chart-1: oklch(0.524 0.098 224.89);
  --chart-2: oklch(0.452 0.193 340.594);
  --chart-3: oklch(0.621 0.152 123.299);
  --chart-4: oklch(0.484 0.207 340.694);
  --chart-5: oklch(0.528 0.1 225.284);
}