Poner el verde como primario for shadcn/ui

Poner el verde como primario is a shadcn/ui theme built around a vivid light yellow primary color (#f8ebaf) with vivid light green accents (#e1f8af). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light yellow primary (#f8ebaf) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040401black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#040401black
#ffffffwhite
Primary
#f8ebafmoccasin
#f8ebafmoccasin
Primary foreground
#0e0c01black
#0e0c01black
Secondary
#f8c6afpeachpuff
#f8c6afpeachpuff
Secondary foreground
#6d2809saddlebrown
#6d2809saddlebrown
Muted
#eddcd4gainsboro
#2b1a12black
Muted foreground
#6d5950dimgray
#af9b92rosybrown
Accent
#e1f8afpalegoldenrod
#e1f8afpalegoldenrod
Accent foreground
#0a0e01black
#0a0e01black
Destructive
#c82c09firebrick
#f54e29tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8ebafmoccasin
#f8ebafmoccasin

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.54:1AAA
Primary button16.33:1AAA
Secondary button7.00:1AAA
Muted text4.93:1AA
Accent17.01:1AAA
Destructive5.50:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button16.33:1AAA
Secondary button7.00:1AAA
Muted text6.29:1AA
Accent17.01:1AAA
Destructive3.49:1AA Large

CSS variables

Paste this into your globals.css to use Poner el verde como primario in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.014 100.769);
  --muted: oklch(0.906 0.021 46.604);
  --muted-foreground: oklch(0.481 0.029 46.268);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.102 0.014 100.769);
  --card: oklch(0.992 0 161.565);
  --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.937 0.078 96.966);
  --primary-foreground: oklch(0.152 0.027 100.67);
  --secondary: oklch(0.865 0.066 46.14);
  --secondary-foreground: oklch(0.374 0.105 41.622);
  --accent: oklch(0.946 0.098 122.547);
  --accent-foreground: oklch(0.155 0.033 121.332);
  --destructive: oklch(0.543 0.196 32.9);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.937 0.078 96.966);
  --chart-1: oklch(0.937 0.078 96.966);
  --chart-2: oklch(0.865 0.066 46.14);
  --chart-3: oklch(0.946 0.098 122.547);
  --chart-4: oklch(0.889 0.054 46.27);
  --chart-5: oklch(0.939 0.081 96.979);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.238 0.03 45.681);
  --muted-foreground: oklch(0.705 0.026 46.472);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.937 0.078 96.966);
  --primary-foreground: oklch(0.152 0.027 100.67);
  --secondary: oklch(0.865 0.066 46.14);
  --secondary-foreground: oklch(0.374 0.105 41.622);
  --accent: oklch(0.946 0.098 122.547);
  --accent-foreground: oklch(0.155 0.033 121.332);
  --destructive: oklch(0.654 0.209 33.911);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.937 0.078 96.966);
  --chart-1: oklch(0.937 0.078 96.966);
  --chart-2: oklch(0.865 0.066 46.14);
  --chart-3: oklch(0.946 0.098 122.547);
  --chart-4: oklch(0.889 0.054 46.27);
  --chart-5: oklch(0.939 0.081 96.979);
}