Third for shadcn/ui

Third is a shadcn/ui theme built around a light cyan primary color (#cae3ed) with light orange accents (#edd3ca). The light mode uses a neutral background (#ffffff). Dark mode keeps the light cyan primary (#cae3ed) on a cyan-tinted background (#030a0c).

Color palette

TokenLightDark
Background
#ffffffwhite
#030a0cblack
Foreground
#020709black
#f7f8f8whitesmoke
Card
#ffffffwhite
#030a0cblack
Card foreground
#020709black
#f7f8f8whitesmoke
Popover
#ffffffwhite
#030a0cblack
Popover foreground
#020709black
#f7f8f8whitesmoke
Primary
#cae3edgainsboro
#cae3edgainsboro
Primary foreground
#225163darkslategray
#225163darkslategray
Secondary
#edd3cabisque
#edd3cabisque
Secondary foreground
#633322saddlebrown
#633322saddlebrown
Muted
#efe9e7linen
#181210black
Muted foreground
#534946darkslategray
#b9afacdarkgray
Accent
#edd3cabisque
#edd3cabisque
Accent foreground
#633322saddlebrown
#633322saddlebrown
Destructive
#e43601orangered
#fe440borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cae3edgainsboro
#cae3edgainsboro

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button6.50:1AA
Secondary button7.28:1AAA
Muted text7.23:1AAA
Accent7.28:1AAA
Destructive4.33:1AA Large
Dark mode
Text on background18.76:1AAA
Text on card18.76:1AAA
Primary button6.50:1AA
Secondary button7.28:1AAA
Muted text8.60:1AAA
Accent7.28:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.119 0.015 215.212);
  --muted: oklch(0.937 0.007 41.245);
  --muted-foreground: oklch(0.415 0.015 41.07);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.119 0.015 215.212);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.119 0.015 215.212);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.901 0.03 221.654);
  --primary-foreground: oklch(0.412 0.059 224.919);
  --secondary: oklch(0.886 0.031 41.073);
  --secondary-foreground: oklch(0.379 0.074 40.45);
  --accent: oklch(0.886 0.031 41.073);
  --accent-foreground: oklch(0.379 0.074 40.45);
  --destructive: oklch(0.602 0.216 34.061);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.901 0.03 221.654);
  --chart-1: oklch(0.901 0.03 221.654);
  --chart-2: oklch(0.886 0.031 41.073);
  --chart-3: oklch(0.886 0.031 41.073);
  --chart-4: oklch(0.91 0.024 41.119);
  --chart-5: oklch(0.902 0.032 221.68);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.015 216.945);
  --foreground: oklch(0.978 0.001 221.316);
  --muted: oklch(0.191 0.011 40.979);
  --muted-foreground: oklch(0.762 0.013 41.181);
  --popover: oklch(0.136 0.015 216.945);
  --popover-foreground: oklch(0.978 0.001 221.316);
  --card: oklch(0.136 0.015 216.945);
  --card-foreground: oklch(0.978 0.001 221.316);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.901 0.03 221.654);
  --primary-foreground: oklch(0.412 0.059 224.919);
  --secondary: oklch(0.886 0.031 41.073);
  --secondary-foreground: oklch(0.379 0.074 40.45);
  --accent: oklch(0.886 0.031 41.073);
  --accent-foreground: oklch(0.379 0.074 40.45);
  --destructive: oklch(0.657 0.228 34.655);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.901 0.03 221.654);
  --chart-1: oklch(0.901 0.03 221.654);
  --chart-2: oklch(0.886 0.031 41.073);
  --chart-3: oklch(0.886 0.031 41.073);
  --chart-4: oklch(0.91 0.024 41.119);
  --chart-5: oklch(0.902 0.032 221.68);
}