Reputation is a shadcn/ui theme built around a neutral gray primary color (#2f3037) with neutral gray accents (#37362f). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the neutral gray primary (#2f3037) on an indigo-tinted background (#05050a).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #05050ablack |
| Foreground | #010105black | #f6f6f9whitesmoke |
| Card | #f8f8fcghostwhite | #05050ablack |
| Card foreground | #010105black | #f6f6f9whitesmoke |
| Popover | #f8f8fcghostwhite | #05050ablack |
| Popover foreground | #010105black | #f6f6f9whitesmoke |
| Primary | #2f3037darkslategray | #2f3037darkslategray |
| Primary foreground | #c8c9d0lightgrey | #c8c9d0lightgrey |
| Secondary | #37362fdarkslategray | #37362fdarkslategray |
| Secondary foreground | #d0cfc8lightgrey | #d0cfc8lightgrey |
| Muted | #eaeae6linen | #191915black |
| Muted foreground | #66655cdimgray | #a3a299darkgray |
| Accent | #37362fdarkslategray | #37362fdarkslategray |
| Accent foreground | #d0cfc8lightgrey | #d0cfc8lightgrey |
| Destructive | #7a1d05maroon | #f53d0forangered |
| Destructive foreground | #fcc4b6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2f3037darkslategray | #2f3037darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 4.85:1 | AA |
| Accent | 7.77:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 18.82:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 6.88:1 | AA |
| Accent | 7.77:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Reputation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 282.134);
--foreground: oklch(0.07 0.023 271.294);
--muted: oklch(0.936 0.005 102.301);
--muted-foreground: oklch(0.504 0.014 102.646);
--popover: oklch(0.981 0.005 282.134);
--popover-foreground: oklch(0.07 0.023 271.294);
--card: oklch(0.981 0.005 282.134);
--card-foreground: oklch(0.07 0.023 271.294);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.311 0.012 281.567);
--primary-foreground: oklch(0.837 0.009 282.031);
--secondary: oklch(0.331 0.011 102.747);
--secondary-foreground: oklch(0.853 0.009 102.383);
--accent: oklch(0.331 0.011 102.747);
--accent-foreground: oklch(0.853 0.009 102.383);
--destructive: oklch(0.384 0.132 34.181);
--destructive-foreground: oklch(0.866 0.068 34.426);
--ring: oklch(0.311 0.012 281.567);
--chart-1: oklch(0.311 0.012 281.567);
--chart-2: oklch(0.331 0.011 102.747);
--chart-3: oklch(0.331 0.011 102.747);
--chart-4: oklch(0.362 0.013 102.761);
--chart-5: oklch(0.307 0.017 281.255);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.013 279.075);
--foreground: oklch(0.973 0.004 282.139);
--muted: oklch(0.211 0.007 102.755);
--muted-foreground: oklch(0.711 0.013 102.499);
--popover: oklch(0.12 0.013 279.075);
--popover-foreground: oklch(0.973 0.004 282.139);
--card: oklch(0.12 0.013 279.075);
--card-foreground: oklch(0.973 0.004 282.139);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.311 0.012 281.567);
--primary-foreground: oklch(0.837 0.009 282.031);
--secondary: oklch(0.331 0.011 102.747);
--secondary-foreground: oklch(0.853 0.009 102.383);
--accent: oklch(0.331 0.011 102.747);
--accent-foreground: oklch(0.853 0.009 102.383);
--destructive: oklch(0.637 0.225 33.58);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.311 0.012 281.567);
--chart-1: oklch(0.311 0.012 281.567);
--chart-2: oklch(0.331 0.011 102.747);
--chart-3: oklch(0.331 0.011 102.747);
--chart-4: oklch(0.362 0.013 102.761);
--chart-5: oklch(0.307 0.017 281.255);
}