Appropriate is a shadcn/ui theme built around a teal primary color (#35c099) with cyan accents (#35a2c0). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#35c099) on a teal-tinted background (#050b09).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050b09black |
| Foreground | #030d0ablack | #ffffffwhite |
| Card | #fcfcfcsnow | #060e0cblack |
| Card foreground | #020907black | #ffffffwhite |
| Popover | #ffffffwhite | #050b09black |
| Popover foreground | #030d0ablack | #ffffffwhite |
| Primary | #35c099lightseagreen | #35c099lightseagreen |
| Primary foreground | #092019black | #092019black |
| Secondary | #35c053mediumseagreen | #35c053mediumseagreen |
| Secondary foreground | #09200eblack | #09200eblack |
| Muted | #eef7f0honeydew | #08110ablack |
| Muted foreground | #3d483fdarkslategray | #b7c2basilver |
| Accent | #35a2c0lightseagreen | #35a2c0lightseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #961b0ddarkred | #e12814crimson |
| Destructive foreground | #fcddd9mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #35c099lightseagreen | #35c099lightseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 7.20:1 | AAA |
| Muted text | 8.71:1 | AAA |
| Accent | 7.07:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 19.87:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 7.20:1 | AAA |
| Muted text | 10.43:1 | AAA |
| Accent | 7.07:1 | AAA |
| Destructive | 4.64:1 | AA |
Paste this into your globals.css to use Appropriate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.145 0.02 176.96);
--muted: oklch(0.967 0.013 152.408);
--muted-foreground: oklch(0.388 0.02 151.799);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.145 0.02 176.96);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.126 0.017 177.88);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.725 0.131 169.361);
--primary-foreground: oklch(0.223 0.032 172.131);
--secondary: oklch(0.712 0.191 146.742);
--secondary-foreground: oklch(0.219 0.046 148.57);
--accent: oklch(0.664 0.105 220.347);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.437 0.16 30.514);
--destructive-foreground: oklch(0.922 0.035 25.339);
--ring: oklch(0.725 0.131 169.361);
--chart-1: oklch(0.725 0.131 169.361);
--chart-2: oklch(0.712 0.191 146.742);
--chart-3: oklch(0.664 0.105 220.347);
--chart-4: oklch(0.738 0.195 146.904);
--chart-5: oklch(0.734 0.135 168.947);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.012 177.74);
--foreground: oklch(1 0 180);
--muted: oklch(0.167 0.019 150.829);
--muted-foreground: oklch(0.803 0.016 152.294);
--popover: oklch(0.14 0.012 177.74);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.014 175.875);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.725 0.131 169.361);
--primary-foreground: oklch(0.223 0.032 172.131);
--secondary: oklch(0.712 0.191 146.742);
--secondary-foreground: oklch(0.219 0.046 148.57);
--accent: oklch(0.664 0.105 220.347);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.587 0.22 30.513);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.725 0.131 169.361);
--chart-1: oklch(0.725 0.131 169.361);
--chart-2: oklch(0.712 0.191 146.742);
--chart-3: oklch(0.664 0.105 220.347);
--chart-4: oklch(0.738 0.195 146.904);
--chart-5: oklch(0.734 0.135 168.947);
}