ranksmith option 3 is a shadcn/ui theme built around a violet primary color (#7e67c1) with light green accents (#d2e2a1). The light mode uses a neutral background (#fdfdfb). Dark mode switches to a muted green primary (#b6bda8) on a green-tinted background (#090c03).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #090c03black |
| Foreground | #101703black | #f8faf4whitesmoke |
| Card | #fbfcf8snow | #0c1004black |
| Card foreground | #0d1202black | #fafcf8snow |
| Popover | #fdfdfbsnow | #090c03black |
| Popover foreground | #101703black | #f8faf4whitesmoke |
| Primary | #7e67c1slateblue | #b6bda8darkgray |
| Primary foreground | #ffffffwhite | #1b1d16black |
| Secondary | #e4e0eblavender | #bdbaa8silver |
| Secondary foreground | #2d253adarkslategray | #1d1c16black |
| Muted | #e9eae8linen | #16150eblack |
| Muted foreground | #303030darkslategray | #aba792darkgray |
| Accent | #d2e2a1palegoldenrod | #abbda8darkgray |
| Accent foreground | #171d16black | #171d16black |
| Destructive | #c92b00firebrick | #e43f11orangered |
| Destructive foreground | #fef1edseashell | #ffffffwhite |
| Border | #f0f1efwhitesmoke | #1a1b18black |
| Input | #f0f1efwhitesmoke | #1a1b18black |
| Ring | #b6bda8darkgray | #b6bda8darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.04:1 | AAA |
| Text on card | 18.42:1 | AAA |
| Primary button | 4.56:1 | AA |
| Secondary button | 11.24:1 | AAA |
| Muted text | 10.92:1 | AAA |
| Accent | 12.36:1 | AAA |
| Destructive | 4.96:1 | AA |
| Text on background | 18.72:1 | AAA |
| Text on card | 18.60:1 | AAA |
| Primary button | 8.78:1 | AAA |
| Secondary button | 8.74:1 | AAA |
| Muted text | 7.57:1 | AAA |
| Accent | 8.65:1 | AAA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use ranksmith option 3 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 122.257);
--foreground: oklch(0.19 0.04 124.844);
--muted: oklch(0.935 0.002 115.618);
--muted-foreground: oklch(0.309 0 180);
--popover: oklch(0.994 0.003 122.257);
--popover-foreground: oklch(0.19 0.04 124.844);
--card: oklch(0.989 0.006 122.302);
--card-foreground: oklch(0.172 0.035 123.847);
--border: oklch(0.956 0.003 122.255);
--input: oklch(0.956 0.003 122.255);
--primary: oklch(0.576 0.136 293.456);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.913 0.015 302.542);
--secondary-foreground: oklch(0.283 0.039 301.431);
--accent: oklch(0.885 0.087 119.439);
--accent-foreground: oklch(0.222 0.016 140.907);
--destructive: oklch(0.544 0.198 33.582);
--destructive-foreground: oklch(0.967 0.015 35.966);
--ring: oklch(0.787 0.031 122.832);
--chart-1: oklch(0.787 0.031 122.832);
--chart-2: oklch(0.786 0.025 98.749);
--chart-3: oklch(0.779 0.036 140.965);
--chart-4: oklch(0.808 0.023 98.697);
--chart-5: oklch(0.792 0.037 122.96);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.148 0.023 122.123);
--foreground: oklch(0.983 0.008 122.344);
--muted: oklch(0.193 0.014 99.162);
--muted-foreground: oklch(0.725 0.03 98.863);
--popover: oklch(0.148 0.023 122.123);
--popover-foreground: oklch(0.983 0.008 122.344);
--card: oklch(0.165 0.027 123.544);
--card-foreground: oklch(0.989 0.005 122.299);
--border: oklch(0.22 0.006 122.648);
--input: oklch(0.22 0.006 122.648);
--primary: oklch(0.787 0.031 122.832);
--primary-foreground: oklch(0.226 0.014 123.199);
--secondary: oklch(0.786 0.025 98.749);
--secondary-foreground: oklch(0.225 0.011 98.966);
--accent: oklch(0.779 0.036 140.965);
--accent-foreground: oklch(0.222 0.016 140.907);
--destructive: oklch(0.608 0.208 34.564);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.787 0.031 122.832);
--chart-1: oklch(0.787 0.031 122.832);
--chart-2: oklch(0.786 0.025 98.749);
--chart-3: oklch(0.779 0.036 140.965);
--chart-4: oklch(0.808 0.023 98.697);
--chart-5: oklch(0.792 0.037 122.96);
}