Rotating is a shadcn/ui theme built around a muted light violet primary color (#e1dae7) with muted light green accents (#e0e7da). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted light violet primary (#e1dae7) on a violet-tinted background (#08050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #08050bblack |
| Foreground | #08020dblack | #ffffffwhite |
| Card | #faf8fcghostwhite | #0b060eblack |
| Card foreground | #050209black | #ffffffwhite |
| Popover | #fdfbfewhite | #08050bblack |
| Popover foreground | #08020dblack | #ffffffwhite |
| Primary | #e1dae7gainsboro | #e1dae7gainsboro |
| Primary foreground | #493856darkslategray | #493856darkslategray |
| Secondary | #e0e7dagainsboro | #e0e7dagainsboro |
| Secondary foreground | #465638darkolivegreen | #465638darkolivegreen |
| Muted | #eff2eewhitesmoke | #0f110dblack |
| Muted foreground | #4c4e4bdarkslategray | #b2b4b1darkgray |
| Accent | #e0e7dagainsboro | #e0e7dagainsboro |
| Accent foreground | #465638darkolivegreen | #465638darkolivegreen |
| Destructive | #722d08saddlebrown | #ef681fchocolate |
| Destructive foreground | #faccb3peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e1dae7gainsboro | #e1dae7gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.93:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 6.26:1 | AA |
| Muted text | 7.44:1 | AAA |
| Accent | 6.26:1 | AA |
| Destructive | 6.82:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 6.26:1 | AA |
| Muted text | 9.06:1 | AAA |
| Accent | 6.26:1 | AA |
| Destructive | 6.67:1 | AA |
Paste this into your globals.css to use Rotating in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 310.409);
--foreground: oklch(0.114 0.033 312.178);
--muted: oklch(0.958 0.006 130.499);
--muted-foreground: oklch(0.421 0.005 130.559);
--popover: oklch(0.991 0.003 310.409);
--popover-foreground: oklch(0.114 0.033 312.178);
--card: oklch(0.981 0.006 310.379);
--card-foreground: oklch(0.099 0.028 312.692);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.898 0.019 310.242);
--primary-foreground: oklch(0.373 0.054 309.061);
--secondary: oklch(0.919 0.019 130.631);
--secondary-foreground: oklch(0.432 0.052 131.673);
--accent: oklch(0.919 0.019 130.631);
--accent-foreground: oklch(0.432 0.052 131.673);
--destructive: oklch(0.392 0.108 43.767);
--destructive-foreground: oklch(0.878 0.062 49.823);
--ring: oklch(0.898 0.019 310.242);
--chart-1: oklch(0.898 0.019 310.242);
--chart-2: oklch(0.919 0.019 130.631);
--chart-3: oklch(0.919 0.019 130.631);
--chart-4: oklch(0.939 0.014 130.578);
--chart-5: oklch(0.896 0.022 310.213);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.017 311.527);
--foreground: oklch(1 0 180);
--muted: oklch(0.175 0.009 130.956);
--muted-foreground: oklch(0.768 0.005 130.495);
--popover: oklch(0.123 0.017 311.527);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.135 0.019 310.282);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.898 0.019 310.242);
--primary-foreground: oklch(0.373 0.054 309.061);
--secondary: oklch(0.919 0.019 130.631);
--secondary-foreground: oklch(0.432 0.052 131.673);
--accent: oklch(0.919 0.019 130.631);
--accent-foreground: oklch(0.432 0.052 131.673);
--destructive: oklch(0.676 0.184 43.901);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.898 0.019 310.242);
--chart-1: oklch(0.898 0.019 310.242);
--chart-2: oklch(0.919 0.019 130.631);
--chart-3: oklch(0.919 0.019 130.631);
--chart-4: oklch(0.939 0.014 130.578);
--chart-5: oklch(0.896 0.022 310.213);
}