Fine for shadcn/ui

Fine is a shadcn/ui theme built around a yellow primary color (#ad9058) with green accents (#9ead58). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#ad9058) on a yellow-tinted background (#0f0c05).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0c05black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#130f07black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#0f0c05black
Popover foreground
#000000black
#ffffffwhite
Primary
#ad9058peru
#ad9058peru
Primary foreground
#000000black
#000000black
Secondary
#ad6658indianred
#ad6658indianred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f3edeclinen
#130d0cblack
Muted foreground
#423e3edarkslategray
#c1bebdsilver
Accent
#9ead58darkkhaki
#9ead58darkkhaki
Accent foreground
#222613black
#222613black
Destructive
#7e2d02saddlebrown
#fb610eorangered
Destructive foreground
#feceb4peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ad9058peru
#ad9058peru

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.90:1AA
Secondary button4.37:1AA Large
Muted text9.13:1AAA
Accent6.30:1AA
Destructive6.50:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.14:1AAA
Primary button6.90:1AA
Secondary button4.37:1AA Large
Muted text10.43:1AAA
Accent6.30:1AA
Destructive6.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.951 0.007 31.056);
  --muted-foreground: oklch(0.369 0.005 31.068);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.667 0.082 83.717);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.585 0.095 32.152);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.716 0.111 117.106);
  --accent-foreground: oklch(0.258 0.033 116.522);
  --destructive: oklch(0.41 0.121 42.427);
  --destructive-foreground: oklch(0.886 0.065 49.796);
  --ring: oklch(0.667 0.082 83.717);
  --chart-1: oklch(0.667 0.082 83.717);
  --chart-2: oklch(0.585 0.095 32.152);
  --chart-3: oklch(0.716 0.111 117.106);
  --chart-4: oklch(0.61 0.088 31.973);
  --chart-5: oklch(0.673 0.088 83.504);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.015 86.739);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.166 0.011 31.319);
  --muted-foreground: oklch(0.804 0.004 31.052);
  --popover: oklch(0.155 0.015 86.739);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.169 0.017 85.107);
  --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.667 0.082 83.717);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.585 0.095 32.152);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.716 0.111 117.106);
  --accent-foreground: oklch(0.258 0.033 116.522);
  --destructive: oklch(0.684 0.204 41.664);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.667 0.082 83.717);
  --chart-1: oklch(0.667 0.082 83.717);
  --chart-2: oklch(0.585 0.095 32.152);
  --chart-3: oklch(0.716 0.111 117.106);
  --chart-4: oklch(0.61 0.088 31.973);
  --chart-5: oklch(0.673 0.088 83.504);
}