Valid for shadcn/ui

Valid is a shadcn/ui theme built around a vivid light green primary color (#f5fded) with vivid light green accents (#edfded). The light mode uses a neutral background (#fafdf6). Dark mode keeps the vivid light green primary (#f5fded) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fafdf6mintcream
#000000black
Foreground
#020501black
#ffffffwhite
Card
#f7fdf2honeydew
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fafdf6mintcream
#000000black
Popover foreground
#020501black
#ffffffwhite
Primary
#f5fdedhoneydew
#f5fdedhoneydew
Primary foreground
#284908darkgreen
#284908darkgreen
Secondary
#fdfdedivory
#fdfdedivory
Secondary foreground
#484908darkolivegreen
#484908darkolivegreen
Muted
#ecedd9beige
#262612black
Muted foreground
#61614cdimgray
#b2b39edarkgray
Accent
#edfdedhoneydew
#edfdedhoneydew
Accent foreground
#084909darkgreen
#084909darkgreen
Destructive
#d13c0afirebrick
#ef440borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f5fdedhoneydew
#f5fdedhoneydew

Contrast

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

Light mode
Text on background19.99:1AAA
Text on card20.23:1AAA
Primary button9.83:1AAA
Secondary button9.15:1AAA
Muted text5.31:1AA
Accent10.09:1AAA
Destructive4.80:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button9.83:1AAA
Secondary button9.15:1AAA
Muted text7.20:1AAA
Accent10.09:1AAA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.01 129.231);
  --foreground: oklch(0.103 0.021 127.548);
  --muted: oklch(0.94 0.026 107.666);
  --muted-foreground: oklch(0.487 0.032 108.318);
  --popover: oklch(0.991 0.01 129.231);
  --popover-foreground: oklch(0.103 0.021 127.548);
  --card: oklch(0.986 0.015 129.285);
  --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.983 0.023 129.377);
  --primary-foreground: oklch(0.367 0.098 133.897);
  --secondary: oklch(0.989 0.021 107.559);
  --secondary-foreground: oklch(0.393 0.081 110.636);
  --accent: oklch(0.978 0.027 145.825);
  --accent-foreground: oklch(0.355 0.112 142.92);
  --destructive: oklch(0.574 0.193 35.701);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.983 0.023 129.377);
  --chart-1: oklch(0.983 0.023 129.377);
  --chart-2: oklch(0.989 0.021 107.559);
  --chart-3: oklch(0.978 0.027 145.825);
  --chart-4: oklch(0.997 0.005 107.267);
  --chart-5: oklch(0.984 0.024 129.387);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.262 0.033 109.325);
  --muted-foreground: oklch(0.76 0.029 107.848);
  --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.983 0.023 129.377);
  --primary-foreground: oklch(0.367 0.098 133.897);
  --secondary: oklch(0.989 0.021 107.559);
  --secondary-foreground: oklch(0.393 0.081 110.636);
  --accent: oklch(0.978 0.027 145.825);
  --accent-foreground: oklch(0.355 0.112 142.92);
  --destructive: oklch(0.632 0.214 35.54);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.983 0.023 129.377);
  --chart-1: oklch(0.983 0.023 129.377);
  --chart-2: oklch(0.989 0.021 107.559);
  --chart-3: oklch(0.978 0.027 145.825);
  --chart-4: oklch(0.997 0.005 107.267);
  --chart-5: oklch(0.984 0.024 129.387);
}