Refund is a shadcn/ui theme built around a muted deep green primary color (#485134) with muted deep violet accents (#3d3451). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted deep green primary (#485134) on a neutral background (#060803).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #060803black |
| Foreground | #030401black | #f8f8f7whitesmoke |
| Card | #fbfdf7snow | #090b04black |
| Card foreground | #000000black | #fafaf9snow |
| Popover | #fdfefbwhite | #060803black |
| Popover foreground | #030401black | #f8f8f7whitesmoke |
| Primary | #485134darkolivegreen | #485134darkolivegreen |
| Primary foreground | #dee3d3gainsboro | #dee3d3gainsboro |
| Secondary | #3d3451darkslategray | #3d3451darkslategray |
| Secondary foreground | #d8d3e3gainsboro | #d8d3e3gainsboro |
| Muted | #dcd5ecgainsboro | #1a132ablack |
| Muted foreground | #4c4856darkslategray | #ada9b7darkgray |
| Accent | #3d3451darkslategray | #3d3451darkslategray |
| Accent foreground | #d8d3e3gainsboro | #d8d3e3gainsboro |
| Destructive | #ab0707darkred | #dc0909red |
| Destructive foreground | #fee7e7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #485134darkolivegreen | #485134darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.32:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 6.42:1 | AA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 7.95:1 | AAA |
| Destructive | 6.41:1 | AA |
| Text on background | 18.96:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 6.42:1 | AA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 7.78:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 5.12:1 | AA |
Paste this into your globals.css to use Refund in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.005 120.843);
--foreground: oklch(0.101 0.014 120.55);
--muted: oklch(0.886 0.032 300.178);
--muted-foreground: oklch(0.411 0.024 299.797);
--popover: oklch(0.996 0.005 120.843);
--popover-foreground: oklch(0.101 0.014 120.55);
--card: oklch(0.991 0.009 120.919);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.418 0.047 122.73);
--primary-foreground: oklch(0.908 0.022 121.162);
--secondary: oklch(0.347 0.051 298.245);
--secondary-foreground: oklch(0.877 0.022 300.354);
--accent: oklch(0.347 0.051 298.245);
--accent-foreground: oklch(0.877 0.022 300.354);
--destructive: oklch(0.469 0.189 28.811);
--destructive-foreground: oklch(0.945 0.026 17.616);
--ring: oklch(0.418 0.047 122.73);
--chart-1: oklch(0.418 0.047 122.73);
--chart-2: oklch(0.347 0.051 298.245);
--chart-3: oklch(0.347 0.051 298.245);
--chart-4: oklch(0.372 0.056 298.191);
--chart-5: oklch(0.423 0.053 122.973);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.017 120.554);
--foreground: oklch(0.979 0.002 120.803);
--muted: oklch(0.21 0.044 296.995);
--muted-foreground: oklch(0.742 0.021 300.306);
--popover: oklch(0.127 0.017 120.554);
--popover-foreground: oklch(0.979 0.002 120.803);
--card: oklch(0.146 0.019 120.754);
--card-foreground: oklch(0.986 0.001 120.791);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.418 0.047 122.73);
--primary-foreground: oklch(0.908 0.022 121.162);
--secondary: oklch(0.347 0.051 298.245);
--secondary-foreground: oklch(0.877 0.022 300.354);
--accent: oklch(0.347 0.051 298.245);
--accent-foreground: oklch(0.877 0.022 300.354);
--destructive: oklch(0.565 0.228 28.921);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.418 0.047 122.73);
--chart-1: oklch(0.418 0.047 122.73);
--chart-2: oklch(0.347 0.051 298.245);
--chart-3: oklch(0.347 0.051 298.245);
--chart-4: oklch(0.372 0.056 298.191);
--chart-5: oklch(0.423 0.053 122.973);
}