Admired is a shadcn/ui theme built around a light green primary color (#f2f6c6) with light indigo accents (#cac6f6). The light mode uses a neutral background (#fefefb). Dark mode keeps the light green primary (#f2f6c6) on a green-tinted background (#0a0a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #0a0a05black |
| Foreground | #080901black | #f9f9f6whitesmoke |
| Card | #fcfdf7snow | #0d0e07black |
| Card foreground | #040401black | #fbfbf9snow |
| Popover | #fefefbwhite | #0a0a05black |
| Popover foreground | #080901black | #f9f9f6whitesmoke |
| Primary | #f2f6c6lightgoldenrodyellow | #f2f6c6lightgoldenrodyellow |
| Primary foreground | #1d1f05black | #1d1f05black |
| Secondary | #cac6f6thistle | #cac6f6thistle |
| Secondary foreground | #1c1376midnightblue | #1c1376midnightblue |
| Muted | #e4e3e8gainsboro | #18171cblack |
| Muted foreground | #4e4d51darkslategray | #afaeb2darkgray |
| Accent | #cac6f6thistle | #cac6f6thistle |
| Accent foreground | #1c1376midnightblue | #1c1376midnightblue |
| Destructive | #9d3407saddlebrown | #f6692ctomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2f6c6lightgoldenrodyellow | #f2f6c6lightgoldenrodyellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 14.97:1 | AAA |
| Secondary button | 9.19:1 | AAA |
| Muted text | 6.57:1 | AA |
| Accent | 9.19:1 | AAA |
| Destructive | 7.20:1 | AAA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 14.97:1 | AAA |
| Secondary button | 9.19:1 | AAA |
| Muted text | 8.07:1 | AAA |
| Accent | 9.19:1 | AAA |
| Destructive | 6.98:1 | AA |
Paste this into your globals.css to use Admired in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 110.322);
--foreground: oklch(0.134 0.023 112.031);
--muted: oklch(0.918 0.006 290.12);
--muted-foreground: oklch(0.423 0.005 290.016);
--popover: oklch(0.996 0.004 110.322);
--popover-foreground: oklch(0.134 0.023 112.031);
--card: oklch(0.992 0.008 110.398);
--card-foreground: oklch(0.106 0.018 112.031);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.957 0.062 111.436);
--primary-foreground: oklch(0.229 0.043 113.662);
--secondary: oklch(0.845 0.066 288.716);
--secondary-foreground: oklch(0.289 0.157 274.147);
--accent: oklch(0.845 0.066 288.716);
--accent-foreground: oklch(0.289 0.157 274.147);
--destructive: oklch(0.473 0.148 38.866);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.957 0.062 111.436);
--chart-1: oklch(0.957 0.062 111.436);
--chart-2: oklch(0.845 0.066 288.716);
--chart-3: oklch(0.845 0.066 288.716);
--chart-4: oklch(0.881 0.05 289.144);
--chart-5: oklch(0.96 0.064 111.479);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.013 111.266);
--foreground: oklch(0.981 0.004 110.324);
--muted: oklch(0.208 0.009 289.416);
--muted-foreground: oklch(0.753 0.004 290.135);
--popover: oklch(0.143 0.013 111.266);
--popover-foreground: oklch(0.981 0.004 110.324);
--card: oklch(0.159 0.015 111.763);
--card-foreground: oklch(0.987 0.003 110.298);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.957 0.062 111.436);
--primary-foreground: oklch(0.229 0.043 113.662);
--secondary: oklch(0.845 0.066 288.716);
--secondary-foreground: oklch(0.289 0.157 274.147);
--accent: oklch(0.845 0.066 288.716);
--accent-foreground: oklch(0.289 0.157 274.147);
--destructive: oklch(0.688 0.187 41.185);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.957 0.062 111.436);
--chart-1: oklch(0.957 0.062 111.436);
--chart-2: oklch(0.845 0.066 288.716);
--chart-3: oklch(0.845 0.066 288.716);
--chart-4: oklch(0.881 0.05 289.144);
--chart-5: oklch(0.96 0.064 111.479);
}