Ambitious for shadcn/ui

Ambitious is a shadcn/ui theme built around a red primary color (#7a3343) with muted light red accents (#d5cdcd). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#7a3343) on a neutral background (#080204).

Color palette

TokenLightDark
Background
#ffffffwhite
#080204black
Foreground
#040102black
#faf5f6whitesmoke
Card
#ffffffwhite
#080204black
Card foreground
#040102black
#faf5f6whitesmoke
Popover
#ffffffwhite
#080204black
Popover foreground
#040102black
#faf5f6whitesmoke
Primary
#7a3343brown
#7a3343brown
Primary foreground
#f6e9eclinen
#f6e9eclinen
Secondary
#e3e3e3gainsboro
#161313black
Secondary foreground
#4a4a4adarkslategray
#b4a7aadarkgray
Muted
#f4e7e7linen
#180b0eblack
Muted foreground
#493636darkslategray
#c9b6basilver
Accent
#d5cdcdlightgrey
#2f2225darkslategray
Accent foreground
#3d3434darkslategray
#ccb8bcsilver
Destructive
#831907maroon
#ed2e0corangered
Destructive foreground
#fcc9c0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7a3343brown
#7a3343brown

Contrast

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

Light mode
Text on background20.78:1AAA
Text on card20.78:1AAA
Primary button7.44:1AAA
Secondary button6.90:1AA
Muted text9.31:1AAA
Accent7.75:1AAA
Destructive6.76:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.04:1AAA
Primary button7.44:1AAA
Secondary button7.96:1AAA
Muted text9.93:1AAA
Accent8.07:1AAA
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.084 0.013 2.182);
  --muted: oklch(0.937 0.014 17.414);
  --muted-foreground: oklch(0.355 0.028 18.534);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.084 0.013 2.182);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.084 0.013 2.182);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.424 0.1 8.888);
  --primary-foreground: oklch(0.946 0.014 2.473);
  --secondary: oklch(0.916 0 180);
  --secondary-foreground: oklch(0.409 0 190.305);
  --accent: oklch(0.856 0.008 17.316);
  --accent-foreground: oklch(0.333 0.013 17.816);
  --destructive: oklch(0.398 0.143 32.141);
  --destructive-foreground: oklch(0.878 0.059 29.862);
  --ring: oklch(0.424 0.1 8.888);
  --chart-1: oklch(0.424 0.1 8.888);
  --chart-2: oklch(0.916 0 180);
  --chart-3: oklch(0.856 0.008 17.316);
  --chart-4: oklch(0.939 0 180);
  --chart-5: oklch(0.424 0.107 9.493);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.018 2.197);
  --foreground: oklch(0.974 0.006 2.239);
  --muted: oklch(0.171 0.024 5.764);
  --muted-foreground: oklch(0.793 0.023 2.838);
  --popover: oklch(0.105 0.018 2.197);
  --popover-foreground: oklch(0.974 0.006 2.239);
  --card: oklch(0.105 0.018 2.197);
  --card-foreground: oklch(0.974 0.006 2.239);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.424 0.1 8.888);
  --primary-foreground: oklch(0.946 0.014 2.473);
  --secondary: oklch(0.19 0.005 2.852);
  --secondary-foreground: oklch(0.74 0.016 2.641);
  --accent: oklch(0.27 0.021 4.101);
  --accent-foreground: oklch(0.8 0.023 2.847);
  --destructive: oklch(0.612 0.228 31.733);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.424 0.1 8.888);
  --chart-1: oklch(0.424 0.1 8.888);
  --chart-2: oklch(0.19 0.005 2.852);
  --chart-3: oklch(0.27 0.021 4.101);
  --chart-4: oklch(0.223 0.007 2.953);
  --chart-5: oklch(0.424 0.107 9.493);
}