Ultimate for shadcn/ui

Ultimate is a shadcn/ui theme built around a light yellow primary color (#f1eca7) with muted light yellow accents (#d7d6cb). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the light yellow primary (#f1eca7) on a neutral background (#080802).

Color palette

TokenLightDark
Background
#fcfbf8snow
#080802black
Foreground
#080802black
#ffffffwhite
Card
#fcfbf8snow
#080802black
Card foreground
#080802black
#ffffffwhite
Popover
#fcfbf8snow
#080802black
Popover foreground
#080802black
#ffffffwhite
Primary
#f1eca7palegoldenrod
#f1eca7palegoldenrod
Primary foreground
#58530edarkolivegreen
#58530edarkolivegreen
Secondary
#e4e4e2gainsboro
#201f18black
Secondary foreground
#4e4d46darkslategray
#bfbeabsilver
Muted
#f5f4ealinen
#15140ablack
Muted foreground
#595746darkolivegreen
#b9b8a6darkgray
Accent
#d7d6cblightgrey
#353422darkslategray
Accent foreground
#3f3e31darkslategray
#d1d0b7silver
Destructive
#bc0e0bfirebrick
#f2201ccrimson
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f1eca7palegoldenrod
#f1eca7palegoldenrod

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button6.51:1AA
Secondary button6.67:1AA
Muted text6.61:1AA
Accent7.40:1AAA
Destructive6.33:1AA
Dark mode
Text on background20.11:1AAA
Text on card20.11:1AAA
Primary button6.51:1AA
Secondary button8.75:1AAA
Muted text9.23:1AAA
Accent8.09:1AAA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 103.179);
  --foreground: oklch(0.13 0.017 105.934);
  --muted: oklch(0.966 0.013 103.328);
  --muted-foreground: oklch(0.454 0.028 104.063);
  --popover: oklch(0.989 0.004 103.179);
  --popover-foreground: oklch(0.13 0.017 105.934);
  --card: oklch(0.989 0.004 103.179);
  --card-foreground: oklch(0.13 0.017 105.934);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.932 0.089 104.523);
  --primary-foreground: oklch(0.435 0.086 105.139);
  --secondary: oklch(0.919 0.004 103.171);
  --secondary-foreground: oklch(0.419 0.011 103.544);
  --accent: oklch(0.874 0.015 103.392);
  --accent-foreground: oklch(0.362 0.022 104.079);
  --destructive: oklch(0.504 0.201 28.916);
  --destructive-foreground: oklch(0.989 0.005 18.435);
  --ring: oklch(0.932 0.089 104.523);
  --chart-1: oklch(0.932 0.089 104.523);
  --chart-2: oklch(0.919 0.004 103.171);
  --chart-3: oklch(0.874 0.015 103.392);
  --chart-4: oklch(0.941 0.003 103.152);
  --chart-5: oklch(0.935 0.092 104.562);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.017 105.934);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.188 0.018 104.559);
  --muted-foreground: oklch(0.779 0.025 103.619);
  --popover: oklch(0.13 0.017 105.934);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.13 0.017 105.934);
  --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.932 0.089 104.523);
  --primary-foreground: oklch(0.435 0.086 105.139);
  --secondary: oklch(0.239 0.013 103.996);
  --secondary-foreground: oklch(0.797 0.027 103.649);
  --accent: oklch(0.319 0.03 104.497);
  --accent-foreground: oklch(0.851 0.033 103.724);
  --destructive: oklch(0.613 0.238 28.503);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.932 0.089 104.523);
  --chart-1: oklch(0.932 0.089 104.523);
  --chart-2: oklch(0.239 0.013 103.996);
  --chart-3: oklch(0.319 0.03 104.497);
  --chart-4: oklch(0.275 0.017 104.052);
  --chart-5: oklch(0.935 0.092 104.562);
}