Adored is a shadcn/ui theme built around a vivid indigo primary color (#997efb) with vivid violet accents (#d87efb). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid indigo primary (#997efb) on an indigo-tinted background (#05030c).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #05030cblack |
| Foreground | #060212black | #f6f5fawhitesmoke |
| Card | #f9f8fcghostwhite | #070410black |
| Card foreground | #04020eblack | #f9f8fcghostwhite |
| Popover | #f9f8fcghostwhite | #070410black |
| Popover foreground | #04020eblack | #f9f8fcghostwhite |
| Primary | #997efbmediumpurple | #997efbmediumpurple |
| Primary foreground | #110245midnightblue | #110245midnightblue |
| Secondary | #7ea2fbcornflowerblue | #7ea2fbcornflowerblue |
| Secondary foreground | #021545midnightblue | #021545midnightblue |
| Muted | #d8dde9gainsboro | #161b27black |
| Muted foreground | #5e626edimgray | #9195a1lightslategray |
| Accent | #d87efbviolet | #d87efbviolet |
| Accent foreground | #320245midnightblue | #320245midnightblue |
| Destructive | #9e1205darkred | #f83220orangered |
| Destructive foreground | #fedbd7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #997efbmediumpurple | #997efbmediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.93:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 4.46:1 | AA Large |
| Accent | 6.75:1 | AA |
| Destructive | 6.41:1 | AA |
| Text on background | 18.85:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 5.76:1 | AA |
| Accent | 6.75:1 | AA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Adored in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 296.29);
--foreground: oklch(0.114 0.041 293.248);
--muted: oklch(0.896 0.018 268.638);
--muted-foreground: oklch(0.498 0.019 268.473);
--popover: oklch(0.981 0.004 296.249);
--popover-foreground: oklch(0.103 0.036 294.557);
--card: oklch(0.981 0.004 296.249);
--card-foreground: oklch(0.103 0.036 294.557);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.676 0.179 290.81);
--primary-foreground: oklch(0.195 0.113 279.477);
--secondary: oklch(0.723 0.136 266.671);
--secondary-foreground: oklch(0.22 0.094 262.633);
--accent: oklch(0.738 0.193 315.652);
--accent-foreground: oklch(0.242 0.116 313.296);
--destructive: oklch(0.447 0.174 30.194);
--destructive-foreground: oklch(0.919 0.04 24.051);
--ring: oklch(0.676 0.179 290.81);
--chart-1: oklch(0.676 0.179 290.81);
--chart-2: oklch(0.723 0.136 266.671);
--chart-3: oklch(0.738 0.193 315.652);
--chart-4: oklch(0.754 0.12 267.076);
--chart-5: oklch(0.673 0.184 290.57);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.112 0.024 295.393);
--foreground: oklch(0.972 0.007 296.207);
--muted: oklch(0.222 0.026 267.604);
--muted-foreground: oklch(0.671 0.018 268.583);
--popover: oklch(0.124 0.028 294.423);
--popover-foreground: oklch(0.981 0.004 296.249);
--card: oklch(0.124 0.028 294.423);
--card-foreground: oklch(0.981 0.004 296.249);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.676 0.179 290.81);
--primary-foreground: oklch(0.195 0.113 279.477);
--secondary: oklch(0.723 0.136 266.671);
--secondary-foreground: oklch(0.22 0.094 262.633);
--accent: oklch(0.738 0.193 315.652);
--accent-foreground: oklch(0.242 0.116 313.296);
--destructive: oklch(0.635 0.233 29.994);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.676 0.179 290.81);
--chart-1: oklch(0.676 0.179 290.81);
--chart-2: oklch(0.723 0.136 266.671);
--chart-3: oklch(0.738 0.193 315.652);
--chart-4: oklch(0.754 0.12 267.076);
--chart-5: oklch(0.673 0.184 290.57);
}