Estimate for shadcn/ui

Estimate is a shadcn/ui theme built around a deep yellow primary color (#232310) with deep green accents (#1a2310). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#232310) on a yellow-tinted background (#0f0f06).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0f06black
Foreground
#151504black
#fdfdfcwhite
Card
#fcfcfcsnow
#131207black
Card foreground
#111104black
#ffffffwhite
Popover
#fcfcfcsnow
#131207black
Popover foreground
#111104black
#ffffffwhite
Primary
#232310black
#232310black
Primary foreground
#b0ae4fdarkkhaki
#b0ae4fdarkkhaki
Secondary
#231910black
#231910black
Secondary foreground
#d0b295tan
#d0b295tan
Muted
#dfdbd8gainsboro
#272420black
Muted foreground
#646362dimgray
#9d9c9bdarkgray
Accent
#1a2310black
#1a2310black
Accent foreground
#81b04fyellowgreen
#81b04fyellowgreen
Destructive
#8c110ddarkred
#d21a14firebrick
Destructive foreground
#fbd2d0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#232310black
#232310black

Contrast

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

Light mode
Text on background18.40:1AAA
Text on card18.58:1AAA
Primary button6.83:1AA
Secondary button8.59:1AAA
Muted text4.36:1AA Large
Accent6.38:1AA
Destructive6.91:1AA
Dark mode
Text on background18.93:1AAA
Text on card18.76:1AAA
Primary button6.83:1AA
Secondary button8.59:1AAA
Muted text5.65:1AA
Accent6.38:1AA
Destructive5.38:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.19 0.031 108.167);
  --muted: oklch(0.894 0.006 65.884);
  --muted-foreground: oklch(0.502 0.002 65.919);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.172 0.027 108.163);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.172 0.027 108.163);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.25 0.033 107.686);
  --primary-foreground: oklch(0.734 0.118 108.097);
  --secondary: oklch(0.224 0.023 64.267);
  --secondary-foreground: oklch(0.781 0.052 65.049);
  --accent: oklch(0.242 0.037 129.848);
  --accent-foreground: oklch(0.702 0.137 130.66);
  --destructive: oklch(0.411 0.156 28.738);
  --destructive-foreground: oklch(0.897 0.046 20.379);
  --ring: oklch(0.25 0.033 107.686);
  --chart-1: oklch(0.25 0.033 107.686);
  --chart-2: oklch(0.224 0.023 64.267);
  --chart-3: oklch(0.242 0.037 129.848);
  --chart-4: oklch(0.259 0.029 64.052);
  --chart-5: oklch(0.253 0.035 107.782);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.164 0.019 107.579);
  --foreground: oklch(0.993 0.001 105.635);
  --muted: oklch(0.261 0.008 65.565);
  --muted-foreground: oklch(0.692 0.002 65.935);
  --popover: oklch(0.18 0.022 107.613);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.18 0.022 107.613);
  --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.25 0.033 107.686);
  --primary-foreground: oklch(0.734 0.118 108.097);
  --secondary: oklch(0.224 0.023 64.267);
  --secondary-foreground: oklch(0.781 0.052 65.049);
  --accent: oklch(0.242 0.037 129.848);
  --accent-foreground: oklch(0.702 0.137 130.66);
  --destructive: oklch(0.551 0.214 28.975);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.25 0.033 107.686);
  --chart-1: oklch(0.25 0.033 107.686);
  --chart-2: oklch(0.224 0.023 64.267);
  --chart-3: oklch(0.242 0.037 129.848);
  --chart-4: oklch(0.259 0.029 64.052);
  --chart-5: oklch(0.253 0.035 107.782);
}