Circular for shadcn/ui

Circular is a shadcn/ui theme built around a violet primary color (#6c359c) with teal accents (#359c6c). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#6c359c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#f8f5fawhitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#f8f5fawhitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#f8f5fawhitesmoke
Primary
#6c359crebeccapurple
#6c359crebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#9c6c35sienna
#9c6c35sienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f5f0eblinen
#14100ablack
Muted foreground
#68645edimgray
#a19c97darkgray
Accent
#359c6cmediumseagreen
#359c6cmediumseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a10502darkred
#fc3936tomato
Destructive foreground
#fed7d7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6c359crebeccapurple
#6c359crebeccapurple

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.98:1AAA
Secondary button4.56:1AA
Muted text5.18:1AA
Accent3.43:1AA Large
Destructive6.28:1AA
Dark mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button7.98:1AAA
Secondary button4.56:1AA
Muted text6.97:1AA
Accent3.43:1AA Large
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.957 0.009 71.37);
  --muted-foreground: oklch(0.505 0.01 71.267);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.453 0.162 305.339);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.57 0.094 67.555);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.62 0.119 159.331);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.447 0.181 29.29);
  --destructive-foreground: oklch(0.913 0.044 19.131);
  --ring: oklch(0.453 0.162 305.339);
  --chart-1: oklch(0.453 0.162 305.339);
  --chart-2: oklch(0.57 0.094 67.555);
  --chart-3: oklch(0.62 0.119 159.331);
  --chart-4: oklch(0.6 0.099 67.497);
  --chart-5: oklch(0.451 0.17 304.951);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.973 0.008 309.704);
  --muted: oklch(0.175 0.013 70.528);
  --muted-foreground: oklch(0.695 0.009 71.331);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.973 0.008 309.704);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.973 0.008 309.704);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.453 0.162 305.339);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.57 0.094 67.555);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.62 0.119 159.331);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.648 0.23 27.179);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.453 0.162 305.339);
  --chart-1: oklch(0.453 0.162 305.339);
  --chart-2: oklch(0.57 0.094 67.555);
  --chart-3: oklch(0.62 0.119 159.331);
  --chart-4: oklch(0.6 0.099 67.497);
  --chart-5: oklch(0.451 0.17 304.951);
}