Copying for shadcn/ui

Copying is a shadcn/ui theme built around a light violet primary color (#d0abe2) with light teal accents (#abe2d0). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the light violet primary (#d0abe2) on a neutral background (#060208).

Color palette

TokenLightDark
Background
#fdfbfewhite
#060208black
Foreground
#09030cblack
#fdfcfdwhite
Card
#fdfbfewhite
#060208black
Card foreground
#09030cblack
#fdfcfdwhite
Popover
#fdfbfewhite
#060208black
Popover foreground
#09030cblack
#fdfcfdwhite
Primary
#d0abe2plum
#d0abe2plum
Primary foreground
#351744midnightblue
#351744midnightblue
Secondary
#e2d0abwheat
#e2d0abwheat
Secondary foreground
#443517darkolivegreen
#443517darkolivegreen
Muted
#e9e3d8gainsboro
#272116black
Muted foreground
#756b57dimgray
#a89e8arosybrown
Accent
#abe2d0powderblue
#abe2d0powderblue
Accent foreground
#174435darkslategray
#174435darkslategray
Destructive
#c2200afirebrick
#ed270corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d0abe2plum
#d0abe2plum

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button7.84:1AAA
Secondary button7.84:1AAA
Muted text4.11:1AA Large
Accent7.61:1AAA
Destructive6.00:1AA
Dark mode
Text on background20.08:1AAA
Text on card20.08:1AAA
Primary button7.84:1AAA
Secondary button7.84:1AAA
Muted text6.00:1AA
Accent7.61:1AAA
Destructive4.27:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 314.807);
  --foreground: oklch(0.119 0.027 316.482);
  --muted: oklch(0.918 0.016 84.587);
  --muted-foreground: oklch(0.532 0.033 84.513);
  --popover: oklch(0.991 0.004 314.807);
  --popover-foreground: oklch(0.119 0.027 316.482);
  --card: oklch(0.991 0.004 314.807);
  --card-foreground: oklch(0.119 0.027 316.482);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.793 0.086 314.297);
  --primary-foreground: oklch(0.273 0.086 312.892);
  --secondary: oklch(0.864 0.053 84.519);
  --secondary-foreground: oklch(0.34 0.05 82.98);
  --accent: oklch(0.871 0.062 172.314);
  --accent-foreground: oklch(0.352 0.056 168.091);
  --destructive: oklch(0.523 0.198 30.878);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.793 0.086 314.297);
  --chart-1: oklch(0.793 0.086 314.297);
  --chart-2: oklch(0.864 0.053 84.519);
  --chart-3: oklch(0.871 0.062 172.314);
  --chart-4: oklch(0.882 0.046 84.557);
  --chart-5: oklch(0.791 0.091 314.262);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.022 316.67);
  --foreground: oklch(0.992 0.001 314.822);
  --muted: oklch(0.252 0.021 84.351);
  --muted-foreground: oklch(0.703 0.031 84.576);
  --popover: oklch(0.105 0.022 316.67);
  --popover-foreground: oklch(0.992 0.001 314.822);
  --card: oklch(0.105 0.022 316.67);
  --card-foreground: oklch(0.992 0.001 314.822);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.793 0.086 314.297);
  --primary-foreground: oklch(0.273 0.086 312.892);
  --secondary: oklch(0.864 0.053 84.519);
  --secondary-foreground: oklch(0.34 0.05 82.98);
  --accent: oklch(0.871 0.062 172.314);
  --accent-foreground: oklch(0.352 0.056 168.091);
  --destructive: oklch(0.608 0.232 30.815);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.793 0.086 314.297);
  --chart-1: oklch(0.793 0.086 314.297);
  --chart-2: oklch(0.864 0.053 84.519);
  --chart-3: oklch(0.871 0.062 172.314);
  --chart-4: oklch(0.882 0.046 84.557);
  --chart-5: oklch(0.791 0.091 314.262);
}