Admirable is a shadcn/ui theme built around a blue primary color (#4b6495) with yellow accents (#957d4b). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#4b6495) on a neutral background (#030507).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030507black |
| Foreground | #030917black | #fcfcfdwhite |
| Card | #ffffffwhite | #030507black |
| Card foreground | #030917black | #fcfcfdwhite |
| Popover | #ffffffwhite | #030507black |
| Popover foreground | #030917black | #fcfcfdwhite |
| Primary | #4b6495darkslateblue | #4b6495darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #957d4bsienna | #957d4bsienna |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dddad5gainsboro | #2a2822darkslategray |
| Muted foreground | #63625fdimgray | #a09f9cdarkgray |
| Accent | #957d4bsienna | #957d4bsienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d60b00red | #ff382eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4b6495darkslateblue | #4b6495darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 5.90:1 | AA |
| Secondary button | 3.96:1 | AA Large |
| Muted text | 4.37:1 | AA Large |
| Accent | 3.96:1 | AA Large |
| Destructive | 5.36:1 | AA |
| Text on background | 19.94:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 5.90:1 | AA |
| Secondary button | 3.96:1 | AA Large |
| Muted text | 5.57:1 | AA |
| Accent | 3.96:1 | AA Large |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Admirable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.142 0.033 257.13);
--muted: oklch(0.889 0.008 84.573);
--muted-foreground: oklch(0.495 0.004 84.573);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.142 0.033 257.13);
--card: oklch(1 0 180);
--card-foreground: oklch(0.142 0.033 257.13);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.505 0.085 263.395);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.6 0.074 83.729);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.6 0.074 83.729);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.553 0.224 29.719);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.505 0.085 263.395);
--chart-1: oklch(0.505 0.085 263.395);
--chart-2: oklch(0.6 0.074 83.729);
--chart-3: oklch(0.6 0.074 83.729);
--chart-4: oklch(0.629 0.078 83.713);
--chart-5: oklch(0.502 0.092 263.254);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.009 259.89);
--foreground: oklch(0.992 0.001 264.547);
--muted: oklch(0.276 0.011 84.585);
--muted-foreground: oklch(0.702 0.004 84.566);
--popover: oklch(0.11 0.009 259.89);
--popover-foreground: oklch(0.992 0.001 264.547);
--card: oklch(0.11 0.009 259.89);
--card-foreground: oklch(0.992 0.001 264.547);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.505 0.085 263.395);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.6 0.074 83.729);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.6 0.074 83.729);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.652 0.234 28.653);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.505 0.085 263.395);
--chart-1: oklch(0.505 0.085 263.395);
--chart-2: oklch(0.6 0.074 83.729);
--chart-3: oklch(0.6 0.074 83.729);
--chart-4: oklch(0.629 0.078 83.713);
--chart-5: oklch(0.502 0.092 263.254);
}