Programming for shadcn/ui

Programming is a shadcn/ui theme built around a light teal primary color (#bedfd6) with light yellow accents (#dfd6be). The light mode uses a neutral background (#fbfefd). Dark mode keeps the light teal primary (#bedfd6) on a teal-tinted background (#040b09).

Color palette

TokenLightDark
Background
#fbfefdwhite
#040b09black
Foreground
#020e0ablack
#ffffffwhite
Card
#fbfefdwhite
#040b09black
Card foreground
#020e0ablack
#ffffffwhite
Popover
#fbfefdwhite
#040b09black
Popover foreground
#020e0ablack
#ffffffwhite
Primary
#bedfd6powderblue
#bedfd6powderblue
Primary foreground
#23483ddarkslategray
#23483ddarkslategray
Secondary
#d6bedfthistle
#d6bedfthistle
Secondary foreground
#3d2348darkslategray
#3d2348darkslategray
Muted
#f0e6f4lavender
#150b19black
Muted foreground
#464248darkslategray
#bbb7bdsilver
Accent
#dfd6belightgrey
#dfd6belightgrey
Accent foreground
#483d23darkolivegreen
#483d23darkolivegreen
Destructive
#740301maroon
#fd1612red
Destructive foreground
#feaba9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bedfd6powderblue
#bedfd6powderblue

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button7.12:1AAA
Secondary button8.01:1AAA
Muted text8.12:1AAA
Accent7.35:1AAA
Destructive6.60:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button7.12:1AAA
Secondary button8.01:1AAA
Muted text9.72:1AAA
Accent7.35:1AAA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 177.613);
  --foreground: oklch(0.147 0.023 176.526);
  --muted: oklch(0.937 0.022 316.54);
  --muted-foreground: oklch(0.385 0.011 316.529);
  --popover: oklch(0.994 0.003 177.613);
  --popover-foreground: oklch(0.147 0.023 176.526);
  --card: oklch(0.994 0.003 177.613);
  --card-foreground: oklch(0.147 0.023 176.526);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.877 0.037 176.435);
  --primary-foreground: oklch(0.37 0.046 173.211);
  --secondary: oklch(0.832 0.052 316.426);
  --secondary-foreground: oklch(0.308 0.071 315.815);
  --accent: oklch(0.876 0.033 88.981);
  --accent-foreground: oklch(0.365 0.043 88.661);
  --destructive: oklch(0.353 0.142 29.403);
  --destructive-foreground: oklch(0.821 0.099 20.495);
  --ring: oklch(0.877 0.037 176.435);
  --chart-1: oklch(0.877 0.037 176.435);
  --chart-2: oklch(0.832 0.052 316.426);
  --chart-3: oklch(0.876 0.033 88.981);
  --chart-4: oklch(0.859 0.043 316.461);
  --chart-5: oklch(0.879 0.04 176.323);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.014 177.611);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.17 0.033 315.987);
  --muted-foreground: oklch(0.786 0.009 316.576);
  --popover: oklch(0.141 0.014 177.611);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.141 0.014 177.611);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.877 0.037 176.435);
  --primary-foreground: oklch(0.37 0.046 173.211);
  --secondary: oklch(0.832 0.052 316.426);
  --secondary-foreground: oklch(0.308 0.071 315.815);
  --accent: oklch(0.876 0.033 88.981);
  --accent-foreground: oklch(0.365 0.043 88.661);
  --destructive: oklch(0.628 0.251 28.951);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.877 0.037 176.435);
  --chart-1: oklch(0.877 0.037 176.435);
  --chart-2: oklch(0.832 0.052 316.426);
  --chart-3: oklch(0.876 0.033 88.981);
  --chart-4: oklch(0.859 0.043 316.461);
  --chart-5: oklch(0.879 0.04 176.323);
}