Silver is a shadcn/ui theme built around a vivid light red primary color (#fbafa7) with vivid light cyan accents (#a7f3fb). The light mode uses a neutral background (#fdf7f6). Dark mode keeps the vivid light red primary (#fbafa7) on a red-tinted background (#0b0504).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f6snow | #0b0504black |
| Foreground | #090202black | #fbf9f9snow |
| Card | #fdf7f6snow | #0b0504black |
| Card foreground | #090202black | #fbf9f9snow |
| Popover | #fdf7f6snow | #0b0504black |
| Popover foreground | #090202black | #fbf9f9snow |
| Primary | #fbafa7lightpink | #fbafa7lightpink |
| Primary foreground | #6c0f04maroon | #6c0f04maroon |
| Secondary | #a7f3fbpaleturquoise | #a7f3fbpaleturquoise |
| Secondary foreground | #00090ablack | #00090ablack |
| Muted | #dfebeclavender | #131f20black |
| Muted foreground | #465153darkslategray | #acb7b9darkgray |
| Accent | #a7f3fbpaleturquoise | #a7f3fbpaleturquoise |
| Accent foreground | #00090ablack | #00090ablack |
| Destructive | #702c0asaddlebrown | #eb6d2dchocolate |
| Destructive foreground | #f8cbb4peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fbafa7lightpink | #fbafa7lightpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.43:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 16.14:1 | AAA |
| Muted text | 6.72:1 | AA |
| Accent | 16.14:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 19.31:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 16.14:1 | AAA |
| Muted text | 8.22:1 | AAA |
| Accent | 16.14:1 | AAA |
| Destructive | 6.75:1 | AA |
Paste this into your globals.css to use Silver in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.007 25.046);
--foreground: oklch(0.105 0.019 31.847);
--muted: oklch(0.931 0.013 204.885);
--muted-foreground: oklch(0.427 0.014 204.777);
--popover: oklch(0.981 0.007 25.046);
--popover-foreground: oklch(0.105 0.019 31.847);
--card: oklch(0.981 0.007 25.046);
--card-foreground: oklch(0.105 0.019 31.847);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.825 0.091 26.255);
--primary-foreground: oklch(0.343 0.127 30.825);
--secondary: oklch(0.917 0.075 204.702);
--secondary-foreground: oklch(0.127 0.02 201.158);
--accent: oklch(0.917 0.075 204.702);
--accent-foreground: oklch(0.127 0.02 201.158);
--destructive: oklch(0.386 0.105 43.033);
--destructive-foreground: oklch(0.875 0.06 48.016);
--ring: oklch(0.825 0.091 26.255);
--chart-1: oklch(0.825 0.091 26.255);
--chart-2: oklch(0.917 0.075 204.702);
--chart-3: oklch(0.917 0.075 204.702);
--chart-4: oklch(0.93 0.064 204.685);
--chart-5: oklch(0.824 0.094 26.311);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.015 29.13);
--foreground: oklch(0.984 0.002 25.004);
--muted: oklch(0.228 0.018 204.691);
--muted-foreground: oklch(0.772 0.012 204.874);
--popover: oklch(0.124 0.015 29.13);
--popover-foreground: oklch(0.984 0.002 25.004);
--card: oklch(0.124 0.015 29.13);
--card-foreground: oklch(0.984 0.002 25.004);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.825 0.091 26.255);
--primary-foreground: oklch(0.343 0.127 30.825);
--secondary: oklch(0.917 0.075 204.702);
--secondary-foreground: oklch(0.127 0.02 201.158);
--accent: oklch(0.917 0.075 204.702);
--accent-foreground: oklch(0.127 0.02 201.158);
--destructive: oklch(0.677 0.174 43.981);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.825 0.091 26.255);
--chart-1: oklch(0.825 0.091 26.255);
--chart-2: oklch(0.917 0.075 204.702);
--chart-3: oklch(0.917 0.075 204.702);
--chart-4: oklch(0.93 0.064 204.685);
--chart-5: oklch(0.824 0.094 26.311);
}