Cooing Pisces Vivid Amethyst for shadcn/ui

Cooing Pisces Vivid Amethyst is a shadcn/ui theme built around a vivid violet primary color (#a948ef) with muted deep violet accents (#43355a). The light mode uses a violet-tinted background (#1f192a). Dark mode keeps the vivid violet primary (#a948ef) on a violet-tinted background (#1f192a).

Color palette

TokenLightDark
Background
#1f192ablack
#1f192ablack
Foreground
#d4cfddlightgrey
#d4cfddlightgrey
Card
#1a1523black
#1a1523black
Card foreground
#e2dee8gainsboro
#e2dee8gainsboro
Popover
#181320black
#181320black
Popover foreground
#efedf2whitesmoke
#efedf2whitesmoke
Primary
#a948efmediumorchid
#a948efmediumorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c2acd2silver
#c2acd2silver
Secondary foreground
#281b32darkslategray
#281b32darkslategray
Muted
#2a2631darkslategray
#2a2631darkslategray
Muted foreground
#a8a1b5darkgray
#a8a1b5darkgray
Accent
#43355adarkslategray
#43355adarkslategray
Accent foreground
#dfd8e8gainsboro
#dfd8e8gainsboro
Destructive
#ed5031tomato
#ed5031tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#2c2735darkslategray
#2c2735darkslategray
Input
#342d3edarkslategray
#342d3edarkslategray
Ring
#a948efmediumorchid
#a948efmediumorchid

Contrast

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

Light mode
Text on background11.22:1AAA
Text on card13.48:1AAA
Primary button4.31:1AA Large
Secondary button7.84:1AAA
Muted text5.92:1AA
Accent7.99:1AAA
Destructive3.62:1AA Large
Dark mode
Text on background11.22:1AAA
Text on card13.48:1AAA
Primary button4.31:1AA Large
Secondary button7.84:1AAA
Muted text5.92:1AA
Accent7.99:1AAA
Destructive3.62:1AA Large

CSS variables

Paste this into your globals.css to use Cooing Pisces Vivid Amethyst in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.228 0.034 301.369);
  --foreground: oklch(0.863 0.02 301.857);
  --muted: oklch(0.278 0.02 302.589);
  --muted-foreground: oklch(0.721 0.03 303.022);
  --popover: oklch(0.199 0.027 301.58);
  --popover-foreground: oklch(0.949 0.007 302.095);
  --card: oklch(0.209 0.029 301.502);
  --card-foreground: oklch(0.907 0.013 301.983);
  --border: oklch(0.283 0.028 302.187);
  --input: oklch(0.311 0.031 302.132);
  --primary: oklch(0.608 0.241 307.294);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.776 0.059 311.116);
  --secondary-foreground: oklch(0.249 0.046 310.178);
  --accent: oklch(0.361 0.065 300.86);
  --accent-foreground: oklch(0.893 0.022 303.267);
  --destructive: oklch(0.644 0.199 33.202);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.608 0.241 307.294);
  --chart-1: oklch(0.608 0.241 307.294);
  --chart-2: oklch(0.776 0.059 311.116);
  --chart-3: oklch(0.361 0.065 300.86);
  --chart-4: oklch(0.804 0.051 311.212);
  --chart-5: oklch(0.608 0.247 307.058);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.228 0.034 301.369);
  --foreground: oklch(0.863 0.02 301.857);
  --muted: oklch(0.278 0.02 302.589);
  --muted-foreground: oklch(0.721 0.03 303.022);
  --popover: oklch(0.199 0.027 301.58);
  --popover-foreground: oklch(0.949 0.007 302.095);
  --card: oklch(0.209 0.029 301.502);
  --card-foreground: oklch(0.907 0.013 301.983);
  --border: oklch(0.283 0.028 302.187);
  --input: oklch(0.311 0.031 302.132);
  --primary: oklch(0.608 0.241 307.294);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.776 0.059 311.116);
  --secondary-foreground: oklch(0.249 0.046 310.178);
  --accent: oklch(0.361 0.065 300.86);
  --accent-foreground: oklch(0.893 0.022 303.267);
  --destructive: oklch(0.644 0.199 33.202);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.608 0.241 307.294);
  --chart-1: oklch(0.608 0.241 307.294);
  --chart-2: oklch(0.776 0.059 311.116);
  --chart-3: oklch(0.361 0.065 300.86);
  --chart-4: oklch(0.804 0.051 311.212);
  --chart-5: oklch(0.608 0.247 307.058);
}