Vue Theme High Contrast for shadcn/ui

Vue Theme High Contrast is a shadcn/ui theme built around a vivid teal primary color (#14c8ad) with vivid deep cyan accents (#006680). The light mode uses a cyan-tinted background (#002933). Dark mode keeps the vivid teal primary (#14c8ad) on a cyan-tinted background (#002933).

Color palette

TokenLightDark
Background
#002933black
#002933black
Foreground
#e6e6e6gainsboro
#e6e6e6gainsboro
Card
#002129black
#002129black
Card foreground
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Popover
#001d24black
#001d24black
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#14c8adlightseagreen
#14c8adlightseagreen
Primary foreground
#010e0cblack
#010e0cblack
Secondary
#2d534ddarkslategray
#2d534ddarkslategray
Secondary foreground
#cde4e1gainsboro
#cde4e1gainsboro
Muted
#22292bdarkslategray
#22292bdarkslategray
Muted foreground
#9bacb0darkgray
#9bacb0darkgray
Accent
#006680teal
#006680teal
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#f92b24crimson
#f92b24crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#043b49darkslategray
#043b49darkslategray
Input
#054757darkslategray
#054757darkslategray
Ring
#14c8adlightseagreen
#14c8adlightseagreen

Contrast

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

Light mode
Text on background12.35:1AAA
Text on card15.06:1AAA
Primary button9.21:1AAA
Secondary button6.43:1AA
Muted text6.28:1AA
Accent6.54:1AA
Destructive3.87:1AA Large
Dark mode
Text on background12.35:1AAA
Text on card15.06:1AAA
Primary button9.21:1AAA
Secondary button6.43:1AA
Muted text6.28:1AA
Accent6.54:1AA
Destructive3.87:1AA Large

CSS variables

Paste this into your globals.css to use Vue Theme High Contrast in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.259 0.047 219.034);
  --foreground: oklch(0.923 0 153.435);
  --muted: oklch(0.275 0.011 214.508);
  --muted-foreground: oklch(0.733 0.02 214.424);
  --popover: oklch(0.211 0.038 216.882);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.227 0.041 217.734);
  --card-foreground: oklch(0.962 0 180);
  --border: oklch(0.326 0.057 220.169);
  --input: oklch(0.368 0.065 220.757);
  --primary: oklch(0.745 0.135 178.129);
  --primary-foreground: oklch(0.149 0.023 184.788);
  --secondary: oklch(0.411 0.045 183.377);
  --secondary-foreground: oklch(0.902 0.025 185.886);
  --accent: oklch(0.473 0.088 222.781);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.633 0.238 28.573);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.745 0.135 178.129);
  --chart-1: oklch(0.745 0.135 178.129);
  --chart-2: oklch(0.411 0.045 183.377);
  --chart-3: oklch(0.473 0.088 222.781);
  --chart-4: oklch(0.445 0.049 183.319);
  --chart-5: oklch(0.754 0.137 177.863);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.259 0.047 219.034);
  --foreground: oklch(0.923 0 153.435);
  --muted: oklch(0.275 0.011 214.508);
  --muted-foreground: oklch(0.733 0.02 214.424);
  --popover: oklch(0.211 0.038 216.882);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.227 0.041 217.734);
  --card-foreground: oklch(0.962 0 180);
  --border: oklch(0.326 0.057 220.169);
  --input: oklch(0.368 0.065 220.757);
  --primary: oklch(0.745 0.135 178.129);
  --primary-foreground: oklch(0.149 0.023 184.788);
  --secondary: oklch(0.411 0.045 183.377);
  --secondary-foreground: oklch(0.902 0.025 185.886);
  --accent: oklch(0.473 0.088 222.781);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.633 0.238 28.573);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.745 0.135 178.129);
  --chart-1: oklch(0.745 0.135 178.129);
  --chart-2: oklch(0.411 0.045 183.377);
  --chart-3: oklch(0.473 0.088 222.781);
  --chart-4: oklch(0.445 0.049 183.319);
  --chart-5: oklch(0.754 0.137 177.863);
}