Apprehensive is a shadcn/ui theme built around a teal primary color (#8ae0d3) with yellow accents (#e0d38a). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#8ae0d3) on a teal-tinted background (#030c0b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030c0bblack |
| Foreground | #03120fblack | #f9fbfbghostwhite |
| Card | #fcfcfcsnow | #04100eblack |
| Card foreground | #020d0cblack | #fcfdfdwhite |
| Popover | #fcfcfcsnow | #04100eblack |
| Popover foreground | #020d0cblack | #fcfdfdwhite |
| Primary | #8ae0d3skyblue | #8ae0d3skyblue |
| Primary foreground | #0c2c27black | #0c2c27black |
| Secondary | #d38ae0plum | #d38ae0plum |
| Secondary foreground | #270c2cblack | #270c2cblack |
| Muted | #dbd6dbgainsboro | #282429darkslategray |
| Muted foreground | #6c5d6fdimgray | #9f90a2darkgray |
| Accent | #e0d38akhaki | #e0d38akhaki |
| Accent foreground | #2c270cblack | #2c270cblack |
| Destructive | #b21a06firebrick | #f83116orangered |
| Destructive foreground | #feedeblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8ae0d3skyblue | #8ae0d3skyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.13:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 9.73:1 | AAA |
| Secondary button | 7.22:1 | AAA |
| Muted text | 4.26:1 | AA Large |
| Accent | 9.88:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 19.03:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 9.73:1 | AAA |
| Secondary button | 7.22:1 | AAA |
| Muted text | 5.09:1 | AA |
| Accent | 9.88:1 | AAA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Apprehensive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.165 0.024 183.753);
--muted: oklch(0.881 0.009 321.087);
--muted-foreground: oklch(0.499 0.035 321.211);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.147 0.02 185.052);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.147 0.02 185.052);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.848 0.086 183.69);
--primary-foreground: oklch(0.269 0.039 181.749);
--secondary: oklch(0.738 0.143 321.406);
--secondary-foreground: oklch(0.215 0.069 321.403);
--accent: oklch(0.861 0.094 99.447);
--accent-foreground: oklch(0.273 0.044 99.381);
--destructive: oklch(0.49 0.187 30.86);
--destructive-foreground: oklch(0.96 0.019 26.579);
--ring: oklch(0.848 0.086 183.69);
--chart-1: oklch(0.848 0.086 183.69);
--chart-2: oklch(0.738 0.143 321.406);
--chart-3: oklch(0.861 0.094 99.447);
--chart-4: oklch(0.764 0.128 321.376);
--chart-5: oklch(0.853 0.089 183.552);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.017 185.457);
--foreground: oklch(0.987 0.003 186.522);
--muted: oklch(0.266 0.012 321.16);
--muted-foreground: oklch(0.672 0.032 321.167);
--popover: oklch(0.161 0.02 184.179);
--popover-foreground: oklch(0.993 0.001 186.559);
--card: oklch(0.161 0.02 184.179);
--card-foreground: oklch(0.993 0.001 186.559);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.848 0.086 183.69);
--primary-foreground: oklch(0.269 0.039 181.749);
--secondary: oklch(0.738 0.143 321.406);
--secondary-foreground: oklch(0.215 0.069 321.403);
--accent: oklch(0.861 0.094 99.447);
--accent-foreground: oklch(0.273 0.044 99.381);
--destructive: oklch(0.633 0.235 30.977);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.848 0.086 183.69);
--chart-1: oklch(0.848 0.086 183.69);
--chart-2: oklch(0.738 0.143 321.406);
--chart-3: oklch(0.861 0.094 99.447);
--chart-4: oklch(0.764 0.128 321.376);
--chart-5: oklch(0.853 0.089 183.552);
}