P. \ Terabyte for shadcn/ui

P. \ Terabyte is a shadcn/ui theme built around a green primary color (#64c989) with deep teal accents (#214f4f). The light mode uses a teal-tinted background (#0b1919). Dark mode keeps the green primary (#64c989) on a teal-tinted background (#0b1919).

Color palette

TokenLightDark
Background
#0b1919black
#0b1919black
Foreground
#e6d4b2wheat
#e6d4b2wheat
Card
#081212black
#081212black
Card foreground
#ecdfc5bisque
#ecdfc5bisque
Popover
#060e0eblack
#060e0eblack
Popover foreground
#f3e9d8antiquewhite
#f3e9d8antiquewhite
Primary
#64c989mediumaquamarine
#64c989mediumaquamarine
Primary foreground
#000000black
#000000black
Secondary
#2d533bdarkslategray
#2d533bdarkslategray
Secondary foreground
#cde4d6gainsboro
#cde4d6gainsboro
Muted
#222b2bdarkslategray
#222b2bdarkslategray
Muted foreground
#9bb0b0darkgray
#9bb0b0darkgray
Accent
#214f4fdarkslategray
#214f4fdarkslategray
Accent foreground
#bee4e4powderblue
#bee4e4powderblue
Destructive
#fa130fred
#fa130fred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#152828black
#152828black
Input
#1a3232darkslategray
#1a3232darkslategray
Ring
#64c989mediumaquamarine
#64c989mediumaquamarine

Contrast

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

Light mode
Text on background12.34:1AAA
Text on card14.41:1AAA
Primary button10.22:1AAA
Secondary button6.51:1AA
Muted text6.38:1AA
Accent6.70:1AA
Destructive4.06:1AA Large
Dark mode
Text on background12.34:1AAA
Text on card14.41:1AAA
Primary button10.22:1AAA
Secondary button6.51:1AA
Muted text6.38:1AA
Accent6.70:1AA
Destructive4.06:1AA Large

CSS variables

Paste this into your globals.css to use P. \ Terabyte in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.201 0.02 195.662);
  --foreground: oklch(0.876 0.049 82.962);
  --muted: oklch(0.28 0.013 196.444);
  --muted-foreground: oklch(0.742 0.024 196.652);
  --popover: oklch(0.157 0.014 195.855);
  --popover-foreground: oklch(0.938 0.025 83.059);
  --card: oklch(0.172 0.016 195.794);
  --card-foreground: oklch(0.907 0.037 83.028);
  --border: oklch(0.261 0.025 195.736);
  --input: oklch(0.298 0.03 195.674);
  --primary: oklch(0.757 0.132 153.978);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.406 0.06 154.881);
  --secondary-foreground: oklch(0.899 0.031 157.944);
  --accent: oklch(0.396 0.05 195.32);
  --accent-foreground: oklch(0.892 0.039 196.468);
  --destructive: oklch(0.623 0.25 29.011);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.757 0.132 153.978);
  --chart-1: oklch(0.757 0.132 153.978);
  --chart-2: oklch(0.406 0.06 154.881);
  --chart-3: oklch(0.396 0.05 195.32);
  --chart-4: oklch(0.438 0.066 154.807);
  --chart-5: oklch(0.764 0.139 153.692);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.201 0.02 195.662);
  --foreground: oklch(0.876 0.049 82.962);
  --muted: oklch(0.28 0.013 196.444);
  --muted-foreground: oklch(0.742 0.024 196.652);
  --popover: oklch(0.157 0.014 195.855);
  --popover-foreground: oklch(0.938 0.025 83.059);
  --card: oklch(0.172 0.016 195.794);
  --card-foreground: oklch(0.907 0.037 83.028);
  --border: oklch(0.261 0.025 195.736);
  --input: oklch(0.298 0.03 195.674);
  --primary: oklch(0.757 0.132 153.978);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.406 0.06 154.881);
  --secondary-foreground: oklch(0.899 0.031 157.944);
  --accent: oklch(0.396 0.05 195.32);
  --accent-foreground: oklch(0.892 0.039 196.468);
  --destructive: oklch(0.623 0.25 29.011);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.757 0.132 153.978);
  --chart-1: oklch(0.757 0.132 153.978);
  --chart-2: oklch(0.406 0.06 154.881);
  --chart-3: oklch(0.396 0.05 195.32);
  --chart-4: oklch(0.438 0.066 154.807);
  --chart-5: oklch(0.764 0.139 153.692);
}