Revolving is a shadcn/ui theme built around a deep blue primary color (#16212c) with muted light blue accents (#c1c9d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#16212c) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010304black |
| Foreground | #060d13black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #030507black |
| Card foreground | #050a10black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030507black |
| Popover foreground | #050a10black | #ffffffwhite |
| Primary | #16212cblack | #16212cblack |
| Primary foreground | #a3bad1lightsteelblue | #a3bad1lightsteelblue |
| Secondary | #dfe0e2gainsboro | #181c20black |
| Secondary foreground | #44474bdarkslategray | #abb5bfsilver |
| Muted | #cedbe8gainsboro | #172431darkslategray |
| Muted foreground | #616161dimgray | #9e9e9edarkgray |
| Accent | #c1c9d1silver | #2a3641darkslategray |
| Accent foreground | #293038darkslategray | #c4cfd9lightgrey |
| Destructive | #a01d08firebrick | #e92a0corangered |
| Destructive foreground | #fde1ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #16212cblack | #16212cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.54:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 8.13:1 | AAA |
| Secondary button | 7.08:1 | AAA |
| Muted text | 4.41:1 | AA Large |
| Accent | 8.00:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 20.18:1 | AAA |
| Text on card | 20.40:1 | AAA |
| Primary button | 8.13:1 | AAA |
| Secondary button | 8.22:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 4.39:1 | AA Large |
Paste this into your globals.css to use Revolving in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.154 0.018 247.059);
--muted: oklch(0.886 0.023 248.082);
--muted-foreground: oklch(0.492 0 180);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.142 0.016 244.251);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.142 0.016 244.251);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.243 0.026 248.947);
--primary-foreground: oklch(0.78 0.041 248.352);
--secondary: oklch(0.907 0.003 247.852);
--secondary-foreground: oklch(0.397 0.008 248.02);
--accent: oklch(0.833 0.014 247.999);
--accent-foreground: oklch(0.307 0.017 248.365);
--destructive: oklch(0.457 0.169 31.435);
--destructive-foreground: oklch(0.932 0.031 28.139);
--ring: oklch(0.243 0.026 248.947);
--chart-1: oklch(0.243 0.026 248.947);
--chart-2: oklch(0.907 0.003 247.852);
--chart-3: oklch(0.833 0.014 247.999);
--chart-4: oklch(0.931 0.002 247.844);
--chart-5: oklch(0.243 0.028 249.067);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.09 0.008 241.605);
--foreground: oklch(0.992 0.002 247.838);
--muted: oklch(0.254 0.03 249.099);
--muted-foreground: oklch(0.7 0 180);
--popover: oklch(0.113 0.01 241.605);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.113 0.01 241.605);
--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.243 0.026 248.947);
--primary-foreground: oklch(0.78 0.041 248.352);
--secondary: oklch(0.224 0.01 248.259);
--secondary-foreground: oklch(0.768 0.019 248.073);
--accent: oklch(0.326 0.025 248.605);
--accent-foreground: oklch(0.848 0.018 248.04);
--destructive: oklch(0.601 0.226 31.26);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.243 0.026 248.947);
--chart-1: oklch(0.243 0.026 248.947);
--chart-2: oklch(0.224 0.01 248.259);
--chart-3: oklch(0.326 0.025 248.605);
--chart-4: oklch(0.256 0.012 248.292);
--chart-5: oklch(0.243 0.028 249.067);
}