Platzi Theme Green Mode is a shadcn/ui theme built around a near-white primary color (#ffffff) with vivid deep blue accents (#0a1d61). The light mode uses a blue-tinted background (#03081c). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#03081c).
| Token | Light | Dark |
|---|---|---|
| Background | #03081cblack | #03081cblack |
| Foreground | #f0ffffazure | #f0ffffazure |
| Card | #020513black | #020513black |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #01040eblack | #01040eblack |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #22242bdarkslategray | #22242bdarkslategray |
| Muted foreground | #9ba0b0darkgray | #9ba0b0darkgray |
| Accent | #0a1d61midnightblue | #0a1d61midnightblue |
| Accent foreground | #a7b8f6lightsteelblue | #a7b8f6lightsteelblue |
| Destructive | #fe2320crimson | #fe2320crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #081130black | #081130black |
| Input | #0a153dmidnightblue | #0a153dmidnightblue |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.37:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.96:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 3.83:1 | AA Large |
| Text on background | 19.37:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.96:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Platzi Theme Green Mode in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.143 0.044 264.648);
--foreground: oklch(0.989 0.016 196.897);
--muted: oklch(0.26 0.014 273.195);
--muted-foreground: oklch(0.706 0.025 273.436);
--popover: oklch(0.11 0.028 261.799);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.033 262.809);
--card-foreground: oklch(1 0 180);
--border: oklch(0.191 0.064 267.918);
--input: oklch(0.216 0.079 267.538);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.271 0.123 265.802);
--accent-foreground: oklch(0.792 0.091 272.253);
--destructive: oklch(0.637 0.246 28.449);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.271 0.123 265.802);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.044 264.648);
--foreground: oklch(0.989 0.016 196.897);
--muted: oklch(0.26 0.014 273.195);
--muted-foreground: oklch(0.706 0.025 273.436);
--popover: oklch(0.11 0.028 261.799);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.033 262.809);
--card-foreground: oklch(1 0 180);
--border: oklch(0.191 0.064 267.918);
--input: oklch(0.216 0.079 267.538);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.271 0.123 265.802);
--accent-foreground: oklch(0.792 0.091 272.253);
--destructive: oklch(0.637 0.246 28.449);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.271 0.123 265.802);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}