Unlined for shadcn/ui

Unlined is a shadcn/ui theme built around a light green primary color (#dfe8c9) with neutral gray accents (#d7d8d4). The light mode uses a neutral background (#fdfefb). Dark mode keeps the light green primary (#dfe8c9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfefbwhite
#000000black
Foreground
#070901black
#fbfbf8snow
Card
#fbfcf7snow
#030303black
Card foreground
#030401black
#fdfdfcwhite
Popover
#fbfcf7snow
#030303black
Popover foreground
#030401black
#fdfdfcwhite
Primary
#dfe8c9gainsboro
#dfe8c9gainsboro
Primary foreground
#0f1208black
#0f1208black
Secondary
#d7d8d4lightgrey
#272923darkslategray
Secondary foreground
#3e403adarkslategray
#c1c4basilver
Muted
#dbded3gainsboro
#282c21darkslategray
Muted foreground
#5c5f53dimgray
#a8aca0darkgray
Accent
#d7d8d4lightgrey
#272923darkslategray
Accent foreground
#3e403adarkslategray
#c1c4basilver
Destructive
#ab2d07firebrick
#f6501eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dfe8c9gainsboro
#dfe8c9gainsboro

Contrast

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

Light mode
Text on background19.74:1AAA
Text on card19.98:1AAA
Primary button14.88:1AAA
Secondary button7.34:1AAA
Muted text4.79:1AA
Accent7.34:1AAA
Destructive6.71:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.31:1AAA
Primary button14.88:1AAA
Secondary button8.27:1AAA
Muted text6.18:1AA
Accent8.27:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 120.094);
  --foreground: oklch(0.132 0.025 119.87);
  --muted: oklch(0.895 0.015 120.317);
  --muted-foreground: oklch(0.48 0.02 120.747);
  --popover: oklch(0.99 0.007 120.151);
  --popover-foreground: oklch(0.105 0.02 119.87);
  --card: oklch(0.99 0.007 120.151);
  --card-foreground: oklch(0.105 0.02 119.87);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.916 0.042 120.812);
  --primary-foreground: oklch(0.174 0.021 121.925);
  --secondary: oklch(0.881 0.006 120.147);
  --secondary-foreground: oklch(0.369 0.011 120.521);
  --accent: oklch(0.881 0.006 120.147);
  --accent-foreground: oklch(0.369 0.011 120.521);
  --destructive: oklch(0.493 0.168 35.088);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.916 0.042 120.812);
  --chart-1: oklch(0.916 0.042 120.812);
  --chart-2: oklch(0.881 0.006 120.147);
  --chart-3: oklch(0.881 0.006 120.147);
  --chart-4: oklch(0.903 0.005 120.123);
  --chart-5: oklch(0.919 0.045 120.867);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.988 0.004 120.111);
  --muted: oklch(0.285 0.019 121.207);
  --muted-foreground: oklch(0.738 0.018 120.452);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.994 0.002 120.074);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 120.074);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.916 0.042 120.812);
  --primary-foreground: oklch(0.174 0.021 121.925);
  --secondary: oklch(0.278 0.011 120.725);
  --secondary-foreground: oklch(0.816 0.014 120.336);
  --accent: oklch(0.278 0.011 120.725);
  --accent-foreground: oklch(0.816 0.014 120.336);
  --destructive: oklch(0.656 0.21 36.028);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.916 0.042 120.812);
  --chart-1: oklch(0.916 0.042 120.812);
  --chart-2: oklch(0.278 0.011 120.725);
  --chart-3: oklch(0.278 0.011 120.725);
  --chart-4: oklch(0.311 0.013 120.756);
  --chart-5: oklch(0.919 0.045 120.867);
}