Proyecto Anthares for shadcn/ui

Proyecto Anthares is a shadcn/ui theme built around a violet primary color (#c797d8) with muted violet accents (#bdadc2). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#c797d8) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#ffffffwhite
#030104black
Foreground
#110415black
#f8f7f8whitesmoke
Card
#fcfcfcsnow
#070208black
Card foreground
#0d0411black
#faf9fasnow
Popover
#fcfcfcsnow
#070208black
Popover foreground
#0d0411black
#faf9fasnow
Primary
#c797d8plum
#c797d8plum
Primary foreground
#25112cblack
#25112cblack
Secondary
#d2cfd3lightgrey
#322636darkslategray
Secondary foreground
#39353bdarkslategray
#cbbdd0thistle
Muted
#e3d3e8gainsboro
#26172cblack
Muted foreground
#6a5671dimgray
#a28ea9darkgray
Accent
#bdadc2silver
#46324edarkslategray
Accent foreground
#211a23black
#ddd0e1gainsboro
Destructive
#bf3203firebrick
#fc5822tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c797d8plum
#c797d8plum

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.70:1AAA
Primary button7.41:1AAA
Secondary button7.78:1AAA
Muted text4.64:1AA
Accent8.00:1AAA
Destructive5.72:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.58:1AAA
Primary button7.41:1AAA
Secondary button8.00:1AAA
Muted text5.63:1AA
Accent7.77:1AAA
Destructive6.55:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.042 317.157);
  --muted: oklch(0.887 0.033 317.104);
  --muted-foreground: oklch(0.482 0.05 316.946);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.131 0.037 317.863);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.131 0.037 317.863);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.744 0.104 316.854);
  --primary-foreground: oklch(0.22 0.058 316.398);
  --secondary: oklch(0.858 0.007 317.17);
  --secondary-foreground: oklch(0.336 0.011 317.114);
  --accent: oklch(0.767 0.035 317.086);
  --accent-foreground: oklch(0.23 0.02 316.989);
  --destructive: oklch(0.532 0.184 35.267);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.744 0.104 316.854);
  --chart-1: oklch(0.744 0.104 316.854);
  --chart-2: oklch(0.858 0.007 317.17);
  --chart-3: oklch(0.767 0.035 317.086);
  --chart-4: oklch(0.882 0.006 317.174);
  --chart-5: oklch(0.742 0.11 316.827);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.02 319.231);
  --foreground: oklch(0.976 0.002 317.184);
  --muted: oklch(0.233 0.045 316.686);
  --muted-foreground: oklch(0.673 0.047 317.031);
  --popover: oklch(0.105 0.025 319.231);
  --popover-foreground: oklch(0.984 0.002 317.186);
  --card: oklch(0.105 0.025 319.231);
  --card-foreground: oklch(0.984 0.002 317.186);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.744 0.104 316.854);
  --primary-foreground: oklch(0.22 0.058 316.398);
  --secondary: oklch(0.289 0.032 316.93);
  --secondary-foreground: oklch(0.817 0.03 317.105);
  --accent: oklch(0.351 0.054 316.81);
  --accent-foreground: oklch(0.874 0.026 317.12);
  --destructive: oklch(0.675 0.208 37.146);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.744 0.104 316.854);
  --chart-1: oklch(0.744 0.104 316.854);
  --chart-2: oklch(0.289 0.032 316.93);
  --chart-3: oklch(0.351 0.054 316.81);
  --chart-4: oklch(0.318 0.037 316.92);
  --chart-5: oklch(0.742 0.11 316.827);
}