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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 4.56:1 | AA |
| Muted text | 5.18:1 | AA |
| Accent | 3.43:1 | AA Large |
| Destructive | 6.28:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 4.56:1 | AA |
| Muted text | 6.97:1 | AA |
| Accent | 3.43:1 | AA Large |
| Destructive | 3.63:1 | AA Large |
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);
}