Spanish is a shadcn/ui theme built around a light green primary color (#c0eab3) with muted light green accents (#e3eae1). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#c0eab3) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020401black |
| Foreground | #071104black | #f9fcf8mintcream |
| Card | #ffffffwhite | #020401black |
| Card foreground | #071104black | #f9fcf8mintcream |
| Popover | #ffffffwhite | #020401black |
| Popover foreground | #071104black | #f9fcf8mintcream |
| Primary | #c0eab3lightgrey | #c0eab3lightgrey |
| Primary foreground | #255417darkgreen | #255417darkgreen |
| Secondary | #e3eae1gainsboro | #21281fblack |
| Secondary foreground | #465a3fdarkolivegreen | #b8c5b5silver |
| Muted | #e1eeddgainsboro | #152211black |
| Muted foreground | #515350darkslategray | #adafacdarkgray |
| Accent | #e3eae1gainsboro | #21281fblack |
| Accent foreground | #465a3fdarkolivegreen | #b8c5b5silver |
| Destructive | #df0101red | #fe0606red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c0eab3lightgrey | #c0eab3lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.24:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 6.64:1 | AA |
| Secondary button | 6.12:1 | AA |
| Muted text | 6.47:1 | AA |
| Accent | 6.12:1 | AA |
| Destructive | 5.05:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 6.64:1 | AA |
| Secondary button | 8.41:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 8.41:1 | AAA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Spanish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.162 0.034 137.022);
--muted: oklch(0.935 0.028 138.362);
--muted-foreground: oklch(0.44 0.006 138.345);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.162 0.034 137.022);
--card: oklch(1 0 180);
--card-foreground: oklch(0.162 0.034 137.022);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.893 0.086 138.454);
--primary-foreground: oklch(0.399 0.105 139.249);
--secondary: oklch(0.929 0.014 138.345);
--secondary-foreground: oklch(0.441 0.048 138.478);
--accent: oklch(0.929 0.014 138.345);
--accent-foreground: oklch(0.441 0.048 138.478);
--destructive: oklch(0.568 0.233 29.196);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.893 0.086 138.454);
--chart-1: oklch(0.893 0.086 138.454);
--chart-2: oklch(0.929 0.014 138.345);
--chart-3: oklch(0.929 0.014 138.345);
--chart-4: oklch(0.95 0.009 138.34);
--chart-5: oklch(0.896 0.091 138.463);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.018 136.567);
--foreground: oklch(0.987 0.006 138.336);
--muted: oklch(0.235 0.038 138.612);
--muted-foreground: oklch(0.751 0.005 138.338);
--popover: oklch(0.099 0.018 136.567);
--popover-foreground: oklch(0.987 0.006 138.336);
--card: oklch(0.099 0.018 136.567);
--card-foreground: oklch(0.987 0.006 138.336);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.893 0.086 138.454);
--primary-foreground: oklch(0.399 0.105 139.249);
--secondary: oklch(0.267 0.018 138.41);
--secondary-foreground: oklch(0.808 0.026 138.364);
--accent: oklch(0.267 0.018 138.41);
--accent-foreground: oklch(0.808 0.026 138.364);
--destructive: oklch(0.627 0.255 29.075);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.893 0.086 138.454);
--chart-1: oklch(0.893 0.086 138.454);
--chart-2: oklch(0.267 0.018 138.41);
--chart-3: oklch(0.267 0.018 138.41);
--chart-4: oklch(0.3 0.021 138.414);
--chart-5: oklch(0.896 0.091 138.463);
}