Try is a shadcn/ui theme built around a vivid teal primary color (#0cc2cf) with muted light teal accents (#cdd5d5). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#0cc2cf) on a teal-tinted background (#040b0b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b0bblack |
| Foreground | #020808black | #f6f8f9whitesmoke |
| Card | #fcfcfcsnow | #060e0fblack |
| Card foreground | #010404black | #f9fbfbghostwhite |
| Popover | #fcfcfcsnow | #060e0fblack |
| Popover foreground | #010404black | #f9fbfbghostwhite |
| Primary | #0cc2cfdarkturquoise | #0cc2cfdarkturquoise |
| Primary foreground | #010e0eblack | #010e0eblack |
| Secondary | #e5e6e6gainsboro | #181b1bblack |
| Secondary foreground | #4a4e4fdarkslategray | #aeb6b7darkgray |
| Muted | #eef6f7whitesmoke | #081111black |
| Muted foreground | #3d4c4ddarkslategray | #b2c1c2silver |
| Accent | #cdd5d5lightgrey | #263031darkslategray |
| Accent foreground | #333c3ddarkslategray | #bdcbccsilver |
| Destructive | #990800darkred | #ff3429orangered |
| Destructive foreground | #ffcfccpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0cc2cfdarkturquoise | #0cc2cfdarkturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 9.02:1 | AAA |
| Secondary button | 6.73:1 | AA |
| Muted text | 8.19:1 | AAA |
| Accent | 7.57:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 18.65:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 9.02:1 | AAA |
| Secondary button | 8.41:1 | AAA |
| Muted text | 10.29:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Try in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.014 199.781);
--muted: oklch(0.968 0.009 202.114);
--muted-foreground: oklch(0.404 0.02 201.767);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.099 0.011 199.781);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.099 0.011 199.781);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.743 0.125 203.437);
--primary-foreground: oklch(0.148 0.023 199.843);
--secondary: oklch(0.924 0.002 202.196);
--secondary-foreground: oklch(0.422 0.006 202.075);
--accent: oklch(0.866 0.008 202.111);
--accent-foreground: oklch(0.35 0.013 201.865);
--destructive: oklch(0.432 0.173 29.967);
--destructive-foreground: oklch(0.894 0.055 21.756);
--ring: oklch(0.743 0.125 203.437);
--chart-1: oklch(0.743 0.125 203.437);
--chart-2: oklch(0.924 0.002 202.196);
--chart-3: oklch(0.866 0.008 202.111);
--chart-4: oklch(0.947 0.001 202.202);
--chart-5: oklch(0.751 0.127 203.577);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.013 200.482);
--foreground: oklch(0.979 0.002 202.188);
--muted: oklch(0.168 0.013 201.529);
--muted-foreground: oklch(0.8 0.017 201.997);
--popover: oklch(0.156 0.014 201.084);
--popover-foreground: oklch(0.986 0.002 202.197);
--card: oklch(0.156 0.014 201.084);
--card-foreground: oklch(0.986 0.002 202.197);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.743 0.125 203.437);
--primary-foreground: oklch(0.148 0.023 199.843);
--secondary: oklch(0.218 0.004 202.009);
--secondary-foreground: oklch(0.771 0.01 202.083);
--accent: oklch(0.301 0.014 201.772);
--accent-foreground: oklch(0.831 0.016 202.021);
--destructive: oklch(0.648 0.238 28.859);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.743 0.125 203.437);
--chart-1: oklch(0.743 0.125 203.437);
--chart-2: oklch(0.218 0.004 202.009);
--chart-3: oklch(0.301 0.014 201.772);
--chart-4: oklch(0.252 0.005 201.992);
--chart-5: oklch(0.751 0.127 203.577);
}