Spanish is a shadcn/ui theme built around a near-black primary color (#080708) with near-black accents (#080708). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#080708) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #120415black | #f8f6f9whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #0e0311black | #fbf9fbsnow |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #0e0311black | #fbf9fbsnow |
| Primary | #080708black | #080708black |
| Primary foreground | #a49ba6darkgray | #a49ba6darkgray |
| Secondary | #070708black | #070708black |
| Secondary foreground | #9e9ba6darkgray | #9e9ba6darkgray |
| Muted | #edeaf6lavender | #0d0915black |
| Muted foreground | #5b595fdimgray | #a2a0a6darkgray |
| Accent | #080708black | #080708black |
| Accent foreground | #a69ba3darkgray | #a69ba3darkgray |
| Destructive | #60240bmaroon | #e96e3atomato |
| Destructive foreground | #f5bfa8lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #080708black | #080708black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.92:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 7.50:1 | AAA |
| Destructive | 7.31:1 | AAA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 7.59:1 | AAA |
| Accent | 7.50:1 | AAA |
| Destructive | 6.76:1 | AA |
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.145 0.044 319.956);
--muted: oklch(0.942 0.016 299.746);
--muted-foreground: oklch(0.468 0.009 299.714);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.132 0.039 320.464);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.132 0.039 320.464);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.131 0.003 319.636);
--primary-foreground: oklch(0.701 0.019 319.452);
--secondary: oklch(0.131 0.002 300.056);
--secondary-foreground: oklch(0.696 0.017 299.633);
--accent: oklch(0.131 0.003 335.922);
--accent-foreground: oklch(0.702 0.017 336.327);
--destructive: oklch(0.346 0.094 41.172);
--destructive-foreground: oklch(0.848 0.07 44.323);
--ring: oklch(0.131 0.003 319.636);
--chart-1: oklch(0.131 0.003 319.636);
--chart-2: oklch(0.131 0.002 300.056);
--chart-3: oklch(0.131 0.003 335.922);
--chart-4: oklch(0.167 0.004 299.647);
--chart-5: oklch(0.131 0.004 319.732);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.005 319.446);
--muted: oklch(0.153 0.026 297.113);
--muted-foreground: oklch(0.71 0.008 299.846);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.983 0.004 319.445);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.983 0.004 319.445);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.131 0.003 319.636);
--primary-foreground: oklch(0.701 0.019 319.452);
--secondary: oklch(0.131 0.002 300.056);
--secondary-foreground: oklch(0.696 0.017 299.633);
--accent: oklch(0.131 0.003 335.922);
--accent-foreground: oklch(0.702 0.017 336.327);
--destructive: oklch(0.677 0.166 42.182);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.131 0.003 319.636);
--chart-1: oklch(0.131 0.003 319.636);
--chart-2: oklch(0.131 0.002 300.056);
--chart-3: oklch(0.131 0.003 335.922);
--chart-4: oklch(0.167 0.004 299.647);
--chart-5: oklch(0.131 0.004 319.732);
}