Internal for shadcn/ui

Internal is a shadcn/ui theme built around a muted green primary color (#6b8571) with muted light green accents (#c6d2c9). The light mode uses a neutral background (#f7fcf9). Dark mode keeps the muted green primary (#6b8571) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fcf9mintcream
#000000black
Foreground
#061309black
#f5faf6whitesmoke
Card
#f4fbf5whitesmoke
#030303black
Card foreground
#050f08black
#f8fcf9mintcream
Popover
#f4fbf5whitesmoke
#030303black
Popover foreground
#050f08black
#f8fcf9mintcream
Primary
#6b8571gray
#6b8571gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c6d2c9lightgrey
#1f2921black
Secondary foreground
#2d3930darkslategray
#b3c6b8silver
Muted
#d0e1d5lightgrey
#1e2f22darkslategray
Muted foreground
#59735fdimgray
#8ca692darkseagreen
Accent
#c6d2c9lightgrey
#1f2921black
Accent foreground
#2d3930darkslategray
#b3c6b8silver
Destructive
#642607maroon
#ee6520chocolate
Destructive foreground
#f8c1a5lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6b8571gray
#6b8571gray

Contrast

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

Light mode
Text on background18.38:1AAA
Text on card18.51:1AAA
Primary button4.02:1AA Large
Secondary button7.74:1AAA
Muted text3.81:1AA Large
Accent7.74:1AAA
Destructive7.23:1AAA
Dark mode
Text on background19.88:1AAA
Text on card19.97:1AAA
Primary button4.02:1AA Large
Secondary button8.39:1AAA
Muted text5.39:1AA
Accent8.39:1AAA
Destructive6.51:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.007 153.753);
  --foreground: oklch(0.172 0.028 151.49);
  --muted: oklch(0.894 0.025 153.398);
  --muted-foreground: oklch(0.529 0.044 152.371);
  --popover: oklch(0.981 0.011 153.689);
  --popover-foreground: oklch(0.156 0.024 152.446);
  --card: oklch(0.981 0.011 153.689);
  --card-foreground: oklch(0.156 0.024 152.446);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.59 0.043 152.58);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.852 0.018 153.509);
  --secondary-foreground: oklch(0.331 0.023 152.637);
  --accent: oklch(0.852 0.018 153.509);
  --accent-foreground: oklch(0.331 0.023 152.637);
  --destructive: oklch(0.355 0.097 42.996);
  --destructive-foreground: oklch(0.853 0.074 47.829);
  --ring: oklch(0.59 0.043 152.58);
  --chart-1: oklch(0.59 0.043 152.58);
  --chart-2: oklch(0.852 0.018 153.509);
  --chart-3: oklch(0.852 0.018 153.509);
  --chart-4: oklch(0.875 0.015 153.575);
  --chart-5: oklch(0.596 0.054 152.225);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.007 153.755);
  --muted: oklch(0.285 0.032 151.756);
  --muted-foreground: oklch(0.7 0.041 152.832);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.987 0.005 153.796);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.987 0.005 153.796);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.59 0.043 152.58);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.267 0.02 152.553);
  --secondary-foreground: oklch(0.808 0.028 153.276);
  --accent: oklch(0.267 0.02 152.553);
  --accent-foreground: oklch(0.808 0.028 153.276);
  --destructive: oklch(0.67 0.185 42.759);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.59 0.043 152.58);
  --chart-1: oklch(0.59 0.043 152.58);
  --chart-2: oklch(0.267 0.02 152.553);
  --chart-3: oklch(0.267 0.02 152.553);
  --chart-4: oklch(0.3 0.023 152.483);
  --chart-5: oklch(0.596 0.054 152.225);
}