Spanish is a shadcn/ui theme built around a light green primary color (#d2eadd) with light teal accents (#d2eae9). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the light green primary (#d2eadd) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #010402black |
| Foreground | #000000black | #f6f8f7whitesmoke |
| Card | #fbfdfcwhite | #010402black |
| Card foreground | #000000black | #f6f8f7whitesmoke |
| Popover | #fbfdfcwhite | #010402black |
| Popover foreground | #000000black | #f6f8f7whitesmoke |
| Primary | #d2eaddgainsboro | #d2eaddgainsboro |
| Primary foreground | #0b1811black | #0b1811black |
| Secondary | #d3ead2gainsboro | #d3ead2gainsboro |
| Secondary foreground | #2e5e2cdarkslategray | #2e5e2cdarkslategray |
| Muted | #f0f4f0whitesmoke | #0b0f0bblack |
| Muted foreground | #5c6b5bdimgray | #94a494darkseagreen |
| Accent | #d2eae9gainsboro | #d2eae9gainsboro |
| Accent foreground | #0b1818black | #0b1818black |
| Destructive | #de1c02red | #fd432btomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d2eaddgainsboro | #d2eaddgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 14.33:1 | AAA |
| Secondary button | 5.96:1 | AA |
| Muted text | 5.10:1 | AA |
| Accent | 14.38:1 | AAA |
| Destructive | 4.90:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 14.33:1 | AAA |
| Secondary button | 5.96:1 | AA |
| Muted text | 7.36:1 | AAA |
| Accent | 14.38:1 | AAA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use Spanish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 163.379);
--foreground: oklch(0 0 0);
--muted: oklch(0.964 0.006 144.576);
--muted-foreground: oklch(0.511 0.031 144.22);
--popover: oklch(0.994 0.003 163.379);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.003 163.379);
--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.915 0.03 162.577);
--primary-foreground: oklch(0.196 0.023 159.982);
--secondary: oklch(0.913 0.04 144.33);
--secondary-foreground: oklch(0.434 0.094 143.106);
--accent: oklch(0.919 0.025 194.282);
--accent-foreground: oklch(0.198 0.018 193.094);
--destructive: oklch(0.574 0.225 30.66);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.915 0.03 162.577);
--chart-1: oklch(0.915 0.03 162.577);
--chart-2: oklch(0.913 0.04 144.33);
--chart-3: oklch(0.919 0.025 194.282);
--chart-4: oklch(0.933 0.031 144.403);
--chart-5: oklch(0.917 0.033 162.505);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.014 163.517);
--foreground: oklch(0.979 0.003 163.369);
--muted: oklch(0.161 0.01 144.212);
--muted-foreground: oklch(0.7 0.029 144.351);
--popover: oklch(0.098 0.014 163.517);
--popover-foreground: oklch(0.979 0.003 163.369);
--card: oklch(0.098 0.014 163.517);
--card-foreground: oklch(0.979 0.003 163.369);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.915 0.03 162.577);
--primary-foreground: oklch(0.196 0.023 159.982);
--secondary: oklch(0.913 0.04 144.33);
--secondary-foreground: oklch(0.434 0.094 143.106);
--accent: oklch(0.919 0.025 194.282);
--accent-foreground: oklch(0.198 0.018 193.094);
--destructive: oklch(0.657 0.225 30.995);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.915 0.03 162.577);
--chart-1: oklch(0.915 0.03 162.577);
--chart-2: oklch(0.913 0.04 144.33);
--chart-3: oklch(0.919 0.025 194.282);
--chart-4: oklch(0.933 0.031 144.403);
--chart-5: oklch(0.917 0.033 162.505);
}