Software is a shadcn/ui theme built around a muted indigo primary color (#7e82ae) with muted light indigo accents (#bcbed7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#7e82ae) on an indigo-tinted background (#05050b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05050bblack |
| Foreground | #020209black | #ffffffwhite |
| Card | #fcfcfcsnow | #06070eblack |
| Card foreground | #010104black | #ffffffwhite |
| Popover | #fcfcfcsnow | #06070eblack |
| Popover foreground | #010104black | #ffffffwhite |
| Primary | #7e82aelightslategray | #7e82aelightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #dcdce5gainsboro | #1b1b1dblack |
| Secondary foreground | #3d3e52darkslategray | #b1b2b9darkgray |
| Muted | #d2d3e5gainsboro | #1a1c2dblack |
| Muted foreground | #434456darkslategray | #a9aabcdarkgray |
| Accent | #bcbed7lightsteelblue | #262731darkslategray |
| Accent foreground | #24263ddarkslategray | #bdbecbsilver |
| Destructive | #842306maroon | #f44510orangered |
| Destructive foreground | #fccec0peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7e82aelightslategray | #7e82aelightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.68:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 5.68:1 | AA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 6.45:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 6.63:1 | AA |
| Text on background | 20.32:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 5.68:1 | AA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 7.35:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Software in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.092 0.025 275.113);
--muted: oklch(0.872 0.024 282.632);
--muted-foreground: oklch(0.392 0.031 281.642);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.073 0.019 275.113);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.073 0.019 275.113);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.62 0.068 281.047);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.898 0.012 282.884);
--secondary-foreground: oklch(0.371 0.034 281.395);
--accent: oklch(0.808 0.035 282.338);
--accent-foreground: oklch(0.278 0.042 280.177);
--destructive: oklch(0.409 0.136 35.627);
--destructive-foreground: oklch(0.887 0.056 37.592);
--ring: oklch(0.62 0.068 281.047);
--chart-1: oklch(0.62 0.068 281.047);
--chart-2: oklch(0.898 0.012 282.884);
--chart-3: oklch(0.808 0.035 282.338);
--chart-4: oklch(0.924 0.009 282.946);
--chart-5: oklch(0.613 0.077 280.712);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.015 279.874);
--foreground: oklch(1 0 180);
--muted: oklch(0.233 0.033 280.315);
--muted-foreground: oklch(0.742 0.027 282.478);
--popover: oklch(0.131 0.017 279.948);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.131 0.017 279.948);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.62 0.068 281.047);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.222 0.005 282.713);
--secondary-foreground: oklch(0.765 0.01 282.888);
--accent: oklch(0.276 0.018 281.934);
--accent-foreground: oklch(0.806 0.018 282.711);
--destructive: oklch(0.642 0.218 35.13);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.62 0.068 281.047);
--chart-1: oklch(0.62 0.068 281.047);
--chart-2: oklch(0.222 0.005 282.713);
--chart-3: oklch(0.276 0.018 281.934);
--chart-4: oklch(0.254 0.006 282.681);
--chart-5: oklch(0.613 0.077 280.712);
}