Swagger Dragon for shadcn/ui

Swagger Dragon is a shadcn/ui theme built around a vivid teal primary color (#0cb6b6) with muted light teal accents (#e0e6e6). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the vivid teal primary (#0cb6b6) on a teal-tinted background (#050b0b).

Color palette

TokenLightDark
Background
#f6fdfdmintcream
#050b0bblack
Foreground
#020909black
#fcfdfdwhite
Card
#f2fcfcazure
#060e0eblack
Card foreground
#010404black
#ffffffwhite
Popover
#f2fcfcazure
#060e0eblack
Popover foreground
#010404black
#ffffffwhite
Primary
#0cb6b6lightseagreen
#0cb6b6lightseagreen
Primary foreground
#000000black
#000000black
Secondary
#e0e6e6gainsboro
#222626darkslategray
Secondary foreground
#415353darkslategray
#b9c1c1silver
Muted
#dbebeblavender
#142424black
Muted foreground
#515858dimgray
#a7aeaedarkgray
Accent
#e0e6e6gainsboro
#222626darkslategray
Accent foreground
#415353darkslategray
#b9c1c1silver
Destructive
#f62217red
#e24e03orangered
Destructive foreground
#fed7c3peachpuff
#ffffffwhite
Border
#edeeeewhitesmoke
#1b1d1dblack
Input
#edeeeewhitesmoke
#1b1d1dblack
Ring
#0cb6b6lightseagreen
#0cb6b6lightseagreen

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.77:1AAA
Primary button8.39:1AAA
Secondary button6.43:1AA
Muted text5.92:1AA
Accent6.43:1AA
Destructive3.04:1AA Large
Dark mode
Text on background19.48:1AAA
Text on card19.45:1AAA
Primary button8.39:1AAA
Secondary button8.36:1AAA
Muted text7.10:1AAA
Accent8.36:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 197.04);
  --foreground: oklch(0.128 0.017 195.27);
  --muted: oklch(0.928 0.017 196.86);
  --muted-foreground: oklch(0.453 0.009 196.855);
  --popover: oklch(0.985 0.011 196.981);
  --popover-foreground: oklch(0.101 0.013 195.27);
  --card: oklch(0.985 0.011 196.981);
  --card-foreground: oklch(0.101 0.013 195.27);
  --border: oklch(0.947 0.001 197.145);
  --input: oklch(0.947 0.001 197.145);
  --primary: oklch(0.704 0.119 194.791);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.921 0.007 197.031);
  --secondary-foreground: oklch(0.427 0.022 196.354);
  --accent: oklch(0.921 0.007 197.031);
  --accent-foreground: oklch(0.427 0.022 196.354);
  --destructive: oklch(0.621 0.241 29.331);
  --destructive-foreground: oklch(0.906 0.052 48.126);
  --ring: oklch(0.704 0.119 194.791);
  --chart-1: oklch(0.704 0.119 194.791);
  --chart-2: oklch(0.921 0.007 197.031);
  --chart-3: oklch(0.921 0.007 197.031);
  --chart-4: oklch(0.943 0.005 197.068);
  --chart-5: oklch(0.712 0.121 194.785);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.012 195.892);
  --foreground: oklch(0.993 0.001 197.134);
  --muted: oklch(0.247 0.022 195.825);
  --muted-foreground: oklch(0.746 0.008 196.993);
  --popover: oklch(0.157 0.014 195.855);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.157 0.014 195.855);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.228 0.002 197.037);
  --input: oklch(0.228 0.002 197.037);
  --primary: oklch(0.704 0.119 194.791);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.264 0.006 196.783);
  --secondary-foreground: oklch(0.804 0.009 196.981);
  --accent: oklch(0.264 0.006 196.783);
  --accent-foreground: oklch(0.804 0.009 196.981);
  --destructive: oklch(0.621 0.196 39.484);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.704 0.119 194.791);
  --chart-1: oklch(0.704 0.119 194.791);
  --chart-2: oklch(0.264 0.006 196.783);
  --chart-3: oklch(0.264 0.006 196.783);
  --chart-4: oklch(0.296 0.007 196.764);
  --chart-5: oklch(0.712 0.121 194.785);
}