Spanish for shadcn/ui

Spanish is a shadcn/ui theme built around a light teal primary color (#eafbf3) with light orange accents (#fbf3ea). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the light teal primary (#eafbf3) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#020303black
Foreground
#000000black
#fcfdfdwhite
Card
#f8fbfamintcream
#030705black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfdfdwhite
#020303black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#eafbf3honeydew
#eafbf3honeydew
Primary foreground
#0d3f2adarkslategray
#0d3f2adarkslategray
Secondary
#f3eafbwhitesmoke
#f3eafbwhitesmoke
Secondary foreground
#611e94rebeccapurple
#611e94rebeccapurple
Muted
#ebe7eelavender
#151118black
Muted foreground
#5b4f63dimgray
#a79cb0darkgray
Accent
#fbf3eaoldlace
#fbf3eaoldlace
Accent foreground
#3f2a0ddarkolivegreen
#3f2a0ddarkolivegreen
Destructive
#882307darkred
#f34616orangered
Destructive foreground
#fcd1c5peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eafbf3honeydew
#eafbf3honeydew

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.61:1AAA
Text on card20.24:1AAA
Primary button11.09:1AAA
Secondary button8.46:1AAA
Muted text6.27:1AA
Accent12.36:1AAA
Destructive6.59:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.25:1AAA
Primary button11.09:1AAA
Secondary button8.46:1AAA
Muted text7.13:1AAA
Accent12.36:1AAA
Destructive3.68:1AA Large

CSS variables

Paste this into your globals.css to use Spanish in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 168.68);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.933 0.01 310.99);
  --muted-foreground: oklch(0.447 0.034 310.417);
  --popover: oklch(0.993 0.002 168.68);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.004 168.626);
  --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.973 0.02 168.144);
  --primary-foreground: oklch(0.33 0.066 160.244);
  --secondary: oklch(0.949 0.025 310.86);
  --secondary-foreground: oklch(0.406 0.179 305.186);
  --accent: oklch(0.968 0.015 74.856);
  --accent-foreground: oklch(0.304 0.053 70.468);
  --destructive: oklch(0.416 0.14 34.818);
  --destructive-foreground: oklch(0.894 0.052 35.955);
  --ring: oklch(0.973 0.02 168.144);
  --chart-1: oklch(0.973 0.02 168.144);
  --chart-2: oklch(0.949 0.025 310.86);
  --chart-3: oklch(0.968 0.015 74.856);
  --chart-4: oklch(0.98 0.01 310.998);
  --chart-5: oklch(0.973 0.021 168.118);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.008 168.898);
  --foreground: oklch(0.993 0.002 168.691);
  --muted: oklch(0.185 0.015 310.376);
  --muted-foreground: oklch(0.708 0.031 310.708);
  --popover: oklch(0.096 0.008 168.898);
  --popover-foreground: oklch(0.993 0.002 168.691);
  --card: oklch(0.121 0.01 168.898);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.973 0.02 168.144);
  --primary-foreground: oklch(0.33 0.066 160.244);
  --secondary: oklch(0.949 0.025 310.86);
  --secondary-foreground: oklch(0.406 0.179 305.186);
  --accent: oklch(0.968 0.015 74.856);
  --accent-foreground: oklch(0.304 0.053 70.468);
  --destructive: oklch(0.641 0.216 34.777);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.973 0.02 168.144);
  --chart-1: oklch(0.973 0.02 168.144);
  --chart-2: oklch(0.949 0.025 310.86);
  --chart-3: oklch(0.968 0.015 74.856);
  --chart-4: oklch(0.98 0.01 310.998);
  --chart-5: oklch(0.973 0.021 168.118);
}