Trained for shadcn/ui

Trained is a shadcn/ui theme built around a deep yellow primary color (#3c3d1f) with deep purple accents (#3d1f3c). The light mode uses a neutral background (#fefefb). Dark mode keeps the deep yellow primary (#3c3d1f) on a yellow-tinted background (#0b0b04).

Color palette

TokenLightDark
Background
#fefefbwhite
#0b0b04black
Foreground
#040401black
#fbfbf9snow
Card
#fefefbwhite
#0b0b04black
Card foreground
#040401black
#fbfbf9snow
Popover
#fefefbwhite
#0b0b04black
Popover foreground
#040401black
#fbfbf9snow
Primary
#3c3d1fdarkslategray
#3c3d1fdarkslategray
Primary foreground
#d8d9b5palegoldenrod
#d8d9b5palegoldenrod
Secondary
#1f3c3ddarkslategray
#1f3c3ddarkslategray
Secondary foreground
#b5d8d9lightblue
#b5d8d9lightblue
Muted
#dbeff0lavender
#0f2324black
Muted foreground
#4a4a4adarkslategray
#b5b5b5silver
Accent
#3d1f3cdarkslategray
#3d1f3cdarkslategray
Accent foreground
#d9b5d8thistle
#d9b5d8thistle
Destructive
#a22107firebrick
#f75a3btomato
Destructive foreground
#fee2ddmistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3c3d1fdarkslategray
#3c3d1fdarkslategray

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 button7.76:1AAA
Secondary button7.81:1AAA
Muted text7.43:1AAA
Accent7.92:1AAA
Destructive6.24:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.04:1AAA
Primary button7.76:1AAA
Secondary button7.81:1AAA
Muted text7.96:1AAA
Accent7.92:1AAA
Destructive6.48:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 107.995);
  --foreground: oklch(0.106 0.018 110.218);
  --muted: oklch(0.938 0.021 199.311);
  --muted-foreground: oklch(0.409 0 190.305);
  --popover: oklch(0.995 0.003 107.995);
  --popover-foreground: oklch(0.106 0.018 110.218);
  --card: oklch(0.995 0.003 107.995);
  --card-foreground: oklch(0.106 0.018 110.218);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.349 0.046 110.231);
  --primary-foreground: oklch(0.875 0.048 108.917);
  --secondary: oklch(0.333 0.034 198.492);
  --secondary-foreground: oklch(0.856 0.037 199.061);
  --accent: oklch(0.292 0.064 328.253);
  --accent-foreground: oklch(0.815 0.062 327.177);
  --destructive: oklch(0.463 0.168 32.46);
  --destructive-foreground: oklch(0.934 0.031 31.141);
  --ring: oklch(0.349 0.046 110.231);
  --chart-1: oklch(0.349 0.046 110.231);
  --chart-2: oklch(0.333 0.034 198.492);
  --chart-3: oklch(0.292 0.064 328.253);
  --chart-4: oklch(0.368 0.039 198.476);
  --chart-5: oklch(0.354 0.05 110.373);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.017 109.633);
  --foreground: oklch(0.987 0.003 107.992);
  --muted: oklch(0.24 0.026 198.468);
  --muted-foreground: oklch(0.773 0 180);
  --popover: oklch(0.147 0.017 109.633);
  --popover-foreground: oklch(0.987 0.003 107.992);
  --card: oklch(0.147 0.017 109.633);
  --card-foreground: oklch(0.987 0.003 107.992);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.349 0.046 110.231);
  --primary-foreground: oklch(0.875 0.048 108.917);
  --secondary: oklch(0.333 0.034 198.492);
  --secondary-foreground: oklch(0.856 0.037 199.061);
  --accent: oklch(0.292 0.064 328.253);
  --accent-foreground: oklch(0.815 0.062 327.177);
  --destructive: oklch(0.672 0.197 33.207);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.349 0.046 110.231);
  --chart-1: oklch(0.349 0.046 110.231);
  --chart-2: oklch(0.333 0.034 198.492);
  --chart-3: oklch(0.292 0.064 328.253);
  --chart-4: oklch(0.368 0.039 198.476);
  --chart-5: oklch(0.354 0.05 110.373);
}