Straight for shadcn/ui

Straight is a shadcn/ui theme built around a light green primary color (#ace0a4) with light green accents (#a4e0ba). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#ace0a4) on a green-tinted background (#070f05).

Color palette

TokenLightDark
Background
#ffffffwhite
#070f05black
Foreground
#020401black
#f9fbf9mintcream
Card
#fcfcfcsnow
#081307black
Card foreground
#000000black
#fcfdfcwhite
Popover
#fcfcfcsnow
#081307black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#ace0a4palegreen
#ace0a4palegreen
Primary foreground
#1a3d15darkgreen
#1a3d15darkgreen
Secondary
#cae0a4palegoldenrod
#cae0a4palegoldenrod
Secondary foreground
#2e3d15darkslategray
#2e3d15darkslategray
Muted
#eeefeblinen
#121410black
Muted foreground
#4e5346darkslategray
#b4b9acdarkgray
Accent
#a4e0basilver
#a4e0basilver
Accent foreground
#153d23darkslategray
#153d23darkslategray
Destructive
#902904saddlebrown
#ea4306orangered
Destructive foreground
#fed7c8bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ace0a4palegreen
#ace0a4palegreen

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.54:1AAA
Primary button8.08:1AAA
Secondary button8.18:1AAA
Muted text6.87:1AA
Accent8.07:1AAA
Destructive6.28:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.62:1AAA
Primary button8.08:1AAA
Secondary button8.18:1AAA
Muted text9.22:1AAA
Accent8.07:1AAA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.017 139.923);
  --muted: oklch(0.951 0.006 123.032);
  --muted-foreground: oklch(0.433 0.02 123.66);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --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.855 0.098 141.277);
  --primary-foreground: oklch(0.322 0.077 141.084);
  --secondary: oklch(0.875 0.083 124.435);
  --secondary-foreground: oklch(0.336 0.065 126.509);
  --accent: oklch(0.855 0.081 156.462);
  --accent-foreground: oklch(0.323 0.064 153.091);
  --destructive: oklch(0.439 0.144 36.889);
  --destructive-foreground: oklch(0.907 0.048 40.995);
  --ring: oklch(0.855 0.098 141.277);
  --chart-1: oklch(0.855 0.098 141.277);
  --chart-2: oklch(0.875 0.083 124.435);
  --chart-3: oklch(0.855 0.081 156.462);
  --chart-4: oklch(0.89 0.072 124.212);
  --chart-5: oklch(0.857 0.103 141.261);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.026 140.356);
  --foreground: oklch(0.986 0.002 141.585);
  --muted: oklch(0.188 0.01 123.714);
  --muted-foreground: oklch(0.777 0.018 123.279);
  --popover: oklch(0.171 0.03 140.654);
  --popover-foreground: oklch(0.993 0.001 141.589);
  --card: oklch(0.171 0.03 140.654);
  --card-foreground: oklch(0.993 0.001 141.589);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.855 0.098 141.277);
  --primary-foreground: oklch(0.322 0.077 141.084);
  --secondary: oklch(0.875 0.083 124.435);
  --secondary-foreground: oklch(0.336 0.065 126.509);
  --accent: oklch(0.855 0.081 156.462);
  --accent-foreground: oklch(0.323 0.064 153.091);
  --destructive: oklch(0.622 0.211 35.902);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.855 0.098 141.277);
  --chart-1: oklch(0.855 0.098 141.277);
  --chart-2: oklch(0.875 0.083 124.435);
  --chart-3: oklch(0.855 0.081 156.462);
  --chart-4: oklch(0.89 0.072 124.212);
  --chart-5: oklch(0.857 0.103 141.261);
}