绿色 is a shadcn/ui theme built around a deep teal primary color (#325d4b) with deep cyan accents (#32595d). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the deep teal primary (#325d4b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfamintcream | #000000black |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #f7fdfamintcream | #000000black |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #f7fdfamintcream | #000000black |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #325d4bdarkslategray | #325d4bdarkslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #325d36darkslategray | #325d36darkslategray |
| Secondary foreground | #d7ead9gainsboro | #d7ead9gainsboro |
| Muted | #ebefecwhitesmoke | #101410black |
| Muted foreground | #454f46darkslategray | #b0bab1darkgray |
| Accent | #32595ddarkslategray | #32595ddarkslategray |
| Accent foreground | #d7e8eagainsboro | #d7e8eagainsboro |
| Destructive | #6b1b06maroon | #f4562atomato |
| Destructive foreground | #fabaa8lightpink | #000000black |
| Border | #dfe7e4gainsboro | #1e2925darkslategray |
| Input | #dfe7e4gainsboro | #1e2925darkslategray |
| Ring | #325d4bdarkslategray | #325d4bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 20.40:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 6.06:1 | AA |
| Muted text | 7.35:1 | AAA |
| Accent | 6.08:1 | AA |
| Destructive | 7.09:1 | AAA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 6.06:1 | AA |
| Muted text | 9.31:1 | AAA |
| Accent | 6.08:1 | AA |
| Destructive | 6.18:1 | AA |
Paste this into your globals.css to use 绿色 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.008 169.444);
--foreground: oklch(0 0 0);
--muted: oklch(0.948 0.006 148);
--muted-foreground: oklch(0.416 0.02 147.534);
--popover: oklch(0.989 0.008 169.444);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.008 169.444);
--card-foreground: oklch(0 0 0);
--border: oklch(0.921 0.01 169.356);
--input: oklch(0.921 0.01 169.356);
--primary: oklch(0.441 0.057 165.186);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.435 0.08 145.87);
--secondary-foreground: oklch(0.917 0.03 147.717);
--accent: oklch(0.437 0.045 203.158);
--accent-foreground: oklch(0.919 0.018 203.41);
--destructive: oklch(0.353 0.116 35.281);
--destructive-foreground: oklch(0.843 0.08 36.036);
--ring: oklch(0.441 0.057 165.186);
--chart-1: oklch(0.441 0.057 165.186);
--chart-2: oklch(0.435 0.08 145.87);
--chart-3: oklch(0.437 0.045 203.158);
--chart-4: oklch(0.467 0.087 145.837);
--chart-5: oklch(0.446 0.062 164.742);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.002 169.614);
--muted: oklch(0.184 0.009 147.559);
--muted-foreground: oklch(0.779 0.018 147.825);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.002 169.614);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.002 169.614);
--border: oklch(0.269 0.017 167.737);
--input: oklch(0.269 0.017 167.737);
--primary: oklch(0.441 0.057 165.186);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.435 0.08 145.87);
--secondary-foreground: oklch(0.917 0.03 147.717);
--accent: oklch(0.437 0.045 203.158);
--accent-foreground: oklch(0.919 0.018 203.41);
--destructive: oklch(0.66 0.202 35.705);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.441 0.057 165.186);
--chart-1: oklch(0.441 0.057 165.186);
--chart-2: oklch(0.435 0.08 145.87);
--chart-3: oklch(0.437 0.045 203.158);
--chart-4: oklch(0.467 0.087 145.837);
--chart-5: oklch(0.446 0.062 164.742);
}