final ranksmith is a shadcn/ui theme built around a teal primary color (#38b77a) with vivid light yellow accents (#ffdc93). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#38b77a) on a blue-tinted background (#17191c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #17191cblack |
| Foreground | #17191cblack | #f2f2f2whitesmoke |
| Card | #ffffffwhite | #1c1e22black |
| Card foreground | #17191cblack | #f2f2f2whitesmoke |
| Popover | #ffffffwhite | #17191cblack |
| Popover foreground | #17191cblack | #f2f2f2whitesmoke |
| Primary | #38b77amediumseagreen | #38b77amediumseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e3e5e8gainsboro | #3b3e45darkslategray |
| Secondary foreground | #232529darkslategray | #e6e6e6gainsboro |
| Muted | #f7f8f7whitesmoke | #1c211fblack |
| Muted foreground | #61646bdimgray | #afb1b6darkgray |
| Accent | #ffdc93khaki | #c08a16darkgoldenrod |
| Accent foreground | #17191cblack | #ffffffwhite |
| Destructive | #d92644crimson | #dd3c57indianred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e6e6e6gainsboro | #3b3e45darkslategray |
| Input | #f2f2f3whitesmoke | #232529darkslategray |
| Ring | #38b77amediumseagreen | #38b77amediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.61:1 | AAA |
| Text on card | 17.61:1 | AAA |
| Primary button | 2.54:1 | Fail |
| Secondary button | 12.13:1 | AAA |
| Muted text | 5.56:1 | AA |
| Accent | 13.35:1 | AAA |
| Destructive | 4.87:1 | AA |
| Text on background | 15.77:1 | AAA |
| Text on card | 14.97:1 | AAA |
| Primary button | 2.54:1 | Fail |
| Secondary button | 8.58:1 | AAA |
| Muted text | 7.60:1 | AAA |
| Accent | 3.03:1 | AA Large |
| Destructive | 4.33:1 | AA Large |
Paste this into your globals.css to use final ranksmith in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.212 0.006 264.445);
--muted: oklch(0.978 0.002 165.103);
--muted-foreground: oklch(0.504 0.012 264.465);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.212 0.006 264.445);
--card: oklch(1 0 180);
--card-foreground: oklch(0.212 0.006 264.445);
--border: oklch(0.923 0 153.435);
--input: oklch(0.961 0.001 264.547);
--primary: oklch(0.696 0.143 157.794);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.921 0.005 264.534);
--secondary-foreground: oklch(0.265 0.008 264.427);
--accent: oklch(0.908 0.099 85.044);
--accent-foreground: oklch(0.212 0.006 264.445);
--destructive: oklch(0.575 0.21 19.072);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.696 0.143 157.794);
--chart-1: oklch(0.696 0.143 157.794);
--chart-2: oklch(0.575 0.21 19.072);
--chart-3: oklch(0.68 0.11 233.435);
--chart-4: oklch(0.855 0.152 97.652);
--chart-5: oklch(0.633 0.132 313.732);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.212 0.007 264.41);
--foreground: oklch(0.962 0 180);
--muted: oklch(0.242 0.009 164.184);
--muted-foreground: oklch(0.761 0.008 264.517);
--popover: oklch(0.212 0.007 264.41);
--popover-foreground: oklch(0.962 0 180);
--card: oklch(0.233 0.008 264.398);
--card-foreground: oklch(0.962 0 180);
--border: oklch(0.363 0.013 264.407);
--input: oklch(0.265 0.008 264.427);
--primary: oklch(0.696 0.143 157.794);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.363 0.013 264.407);
--secondary-foreground: oklch(0.923 0 153.435);
--accent: oklch(0.671 0.134 79.723);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.602 0.196 16.215);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.696 0.143 157.794);
--chart-1: oklch(0.696 0.143 157.794);
--chart-2: oklch(0.602 0.196 16.215);
--chart-3: oklch(0.713 0.099 232.242);
--chart-4: oklch(0.871 0.14 98.058);
--chart-5: oklch(0.679 0.115 313.971);
}