Octet for shadcn/ui

Octet is a shadcn/ui theme built around a teal primary color (#2cb599) with muted light teal accents (#e4ecea). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#2cb599) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020807black
#f9fbfamintcream
Card
#ffffffwhite
#000000black
Card foreground
#020807black
#f9fbfamintcream
Popover
#ffffffwhite
#000000black
Popover foreground
#020807black
#f9fbfamintcream
Primary
#2cb599lightseagreen
#2cb599lightseagreen
Primary foreground
#04100eblack
#04100eblack
Secondary
#e4ecealavender
#303635darkslategray
Secondary foreground
#425c57darkslategray
#c9cfcelightgrey
Muted
#e5f0eelavender
#0f1a18black
Muted foreground
#4b5351darkslategray
#acb4b2darkgray
Accent
#e4ecealavender
#303635darkslategray
Accent foreground
#425c57darkslategray
#c9cfcelightgrey
Destructive
#b52d12firebrick
#e94625chocolate
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2cb599lightseagreen
#2cb599lightseagreen

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button7.50:1AAA
Secondary button6.02:1AA
Muted text6.78:1AA
Accent6.02:1AA
Destructive6.09:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button7.50:1AAA
Secondary button7.83:1AAA
Muted text8.42:1AAA
Accent7.83:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.015 183.02);
  --muted: oklch(0.946 0.012 182.847);
  --muted-foreground: oklch(0.435 0.01 182.519);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.015 183.02);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.015 183.02);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.695 0.12 175.58);
  --primary-foreground: oklch(0.161 0.02 180.602);
  --secondary: oklch(0.936 0.008 182.948);
  --secondary-foreground: oklch(0.452 0.032 181.121);
  --accent: oklch(0.936 0.008 182.948);
  --accent-foreground: oklch(0.452 0.032 181.121);
  --destructive: oklch(0.51 0.176 32.848);
  --destructive-foreground: oklch(0.991 0.004 31.05);
  --ring: oklch(0.695 0.12 175.58);
  --chart-1: oklch(0.695 0.12 175.58);
  --chart-2: oklch(0.936 0.008 182.948);
  --chart-3: oklch(0.936 0.008 182.948);
  --chart-4: oklch(0.958 0.005 183.031);
  --chart-5: oklch(0.703 0.124 175.237);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.002 183.135);
  --muted: oklch(0.205 0.016 180.857);
  --muted-foreground: oklch(0.763 0.009 182.856);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.002 183.135);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.002 183.135);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.695 0.12 175.58);
  --primary-foreground: oklch(0.161 0.02 180.602);
  --secondary: oklch(0.326 0.007 182.569);
  --secondary-foreground: oklch(0.849 0.006 182.999);
  --accent: oklch(0.326 0.007 182.569);
  --accent-foreground: oklch(0.849 0.006 182.999);
  --destructive: oklch(0.626 0.206 33.092);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.695 0.12 175.58);
  --chart-1: oklch(0.695 0.12 175.58);
  --chart-2: oklch(0.326 0.007 182.569);
  --chart-3: oklch(0.326 0.007 182.569);
  --chart-4: oklch(0.356 0.008 182.552);
  --chart-5: oklch(0.703 0.124 175.237);
}