Cop-out for shadcn/ui

Cop-out is a shadcn/ui theme built around a vivid blue primary color (#0769e9) with vivid indigo accents (#1607e9). The light mode uses a neutral background (#f8fafc). Dark mode keeps the vivid blue primary (#0769e9) on a blue-tinted background (#070a0d).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#070a0dblack
Foreground
#010205black
#f6f7f8whitesmoke
Card
#f8fafcghostwhite
#070a0dblack
Card foreground
#010205black
#f6f7f8whitesmoke
Popover
#f8fafcghostwhite
#070a0dblack
Popover foreground
#010205black
#f6f7f8whitesmoke
Primary
#0769e9dodgerblue
#0769e9dodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#07d9e9darkturquoise
#07d9e9darkturquoise
Secondary foreground
#012023black
#012023black
Muted
#d2e8eagainsboro
#152c2ddarkslategray
Muted foreground
#4b6062dimgray
#9db2b4darkgray
Accent
#1607e9blue
#1607e9blue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ae3e09saddlebrown
#f47134tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0769e9dodgerblue
#0769e9dodgerblue

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button5.00:1AA
Secondary button9.86:1AAA
Muted text5.24:1AA
Accent9.38:1AAA
Destructive6.01:1AA
Dark mode
Text on background18.51:1AAA
Text on card18.51:1AAA
Primary button5.00:1AA
Secondary button9.86:1AAA
Muted text6.62:1AA
Accent9.38:1AAA
Destructive7.24:1AAA

CSS variables

Paste this into your globals.css to use Cop-out in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 254.974);
  --foreground: oklch(0.085 0.014 243.21);
  --muted: oklch(0.916 0.024 201.948);
  --muted-foreground: oklch(0.474 0.026 201.73);
  --popover: oklch(0.983 0.004 254.974);
  --popover-foreground: oklch(0.085 0.014 243.21);
  --card: oklch(0.983 0.004 254.974);
  --card-foreground: oklch(0.085 0.014 243.21);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.551 0.209 259.006);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.809 0.137 203.713);
  --secondary-foreground: oklch(0.224 0.037 201.647);
  --accent: oklch(0.428 0.287 266.194);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.516 0.157 39.953);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.551 0.209 259.006);
  --chart-1: oklch(0.551 0.209 259.006);
  --chart-2: oklch(0.809 0.137 203.713);
  --chart-3: oklch(0.428 0.287 266.194);
  --chart-4: oklch(0.847 0.144 203.742);
  --chart-5: oklch(0.552 0.215 259.255);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.009 252.624);
  --foreground: oklch(0.976 0.002 254.965);
  --muted: oklch(0.274 0.029 201.56);
  --muted-foreground: oklch(0.748 0.023 201.906);
  --popover: oklch(0.142 0.009 252.624);
  --popover-foreground: oklch(0.976 0.002 254.965);
  --card: oklch(0.142 0.009 252.624);
  --card-foreground: oklch(0.976 0.002 254.965);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.551 0.209 259.006);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.809 0.137 203.713);
  --secondary-foreground: oklch(0.224 0.037 201.647);
  --accent: oklch(0.428 0.287 266.194);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.696 0.178 42.964);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.551 0.209 259.006);
  --chart-1: oklch(0.551 0.209 259.006);
  --chart-2: oklch(0.809 0.137 203.713);
  --chart-3: oklch(0.428 0.287 266.194);
  --chart-4: oklch(0.847 0.144 203.742);
  --chart-5: oklch(0.552 0.215 259.255);
}