Type is a shadcn/ui theme built around a muted light green primary color (#d0dac3) with muted light green accents (#c5dac3). The light mode uses a neutral background (#fafdf7). Dark mode keeps the muted light green primary (#d0dac3) on a neutral background (#030402).
| Token | Light | Dark |
|---|---|---|
| Background | #fafdf7mintcream | #030402black |
| Foreground | #080c03black | #fafbf8snow |
| Card | #fafdf7mintcream | #030402black |
| Card foreground | #080c03black | #fafbf8snow |
| Popover | #fafdf7mintcream | #030402black |
| Popover foreground | #080c03black | #fafbf8snow |
| Primary | #d0dac3lightgrey | #d0dac3lightgrey |
| Primary foreground | #374229darkslategray | #374229darkslategray |
| Secondary | #dad8c3lightgrey | #dad8c3lightgrey |
| Secondary foreground | #424029darkslategray | #424029darkslategray |
| Muted | #e5e5e0gainsboro | #1f1e1ablack |
| Muted foreground | #686755dimgray | #aaa997darkgray |
| Accent | #c5dac3lightgrey | #c5dac3lightgrey |
| Accent foreground | #2b4229darkslategray | #2b4229darkslategray |
| Destructive | #cf0602red | #fd2e2bcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d0dac3lightgrey | #d0dac3lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 4.54:1 | AA |
| Accent | 7.39:1 | AAA |
| Destructive | 5.70:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 7.01:1 | AAA |
| Accent | 7.39:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Type in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.008 125.841);
--foreground: oklch(0.146 0.022 125.13);
--muted: oklch(0.921 0.006 103.221);
--muted-foreground: oklch(0.508 0.027 103.945);
--popover: oklch(0.99 0.008 125.841);
--popover-foreground: oklch(0.146 0.022 125.13);
--card: oklch(0.99 0.008 125.841);
--card-foreground: oklch(0.146 0.022 125.13);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.874 0.032 126.231);
--primary-foreground: oklch(0.362 0.043 127.442);
--secondary: oklch(0.878 0.028 103.625);
--secondary-foreground: oklch(0.367 0.037 104.587);
--accent: oklch(0.866 0.038 143.404);
--accent-foreground: oklch(0.352 0.051 142.847);
--destructive: oklch(0.538 0.219 29.317);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.874 0.032 126.231);
--chart-1: oklch(0.874 0.032 126.231);
--chart-2: oklch(0.878 0.028 103.625);
--chart-3: oklch(0.866 0.038 143.404);
--chart-4: oklch(0.898 0.023 103.535);
--chart-5: oklch(0.877 0.036 126.294);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.011 125.088);
--foreground: oklch(0.987 0.004 125.795);
--muted: oklch(0.235 0.009 103.712);
--muted-foreground: oklch(0.73 0.025 103.658);
--popover: oklch(0.099 0.011 125.088);
--popover-foreground: oklch(0.987 0.004 125.795);
--card: oklch(0.099 0.011 125.088);
--card-foreground: oklch(0.987 0.004 125.795);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.874 0.032 126.231);
--primary-foreground: oklch(0.362 0.043 127.442);
--secondary: oklch(0.878 0.028 103.625);
--secondary-foreground: oklch(0.367 0.037 104.587);
--accent: oklch(0.866 0.038 143.404);
--accent-foreground: oklch(0.352 0.051 142.847);
--destructive: oklch(0.642 0.239 27.869);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.874 0.032 126.231);
--chart-1: oklch(0.874 0.032 126.231);
--chart-2: oklch(0.878 0.028 103.625);
--chart-3: oklch(0.866 0.038 143.404);
--chart-4: oklch(0.898 0.023 103.535);
--chart-5: oklch(0.877 0.036 126.294);
}