Year for shadcn/ui

Year is a shadcn/ui theme built around a vivid deep orange primary color (#181001) with vivid deep blue accents (#010918). The light mode uses a neutral background (#fefdfb). Dark mode keeps the vivid deep orange primary (#181001) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefdfbsnow
#000000black
Foreground
#080602black
#ffffffwhite
Card
#fdfbf6snow
#030303black
Card foreground
#040301black
#ffffffwhite
Popover
#fefdfbsnow
#000000black
Popover foreground
#080602black
#ffffffwhite
Primary
#181001black
#181001black
Primary foreground
#d9910dgoldenrod
#d9910dgoldenrod
Secondary
#010918black
#010918black
Secondary foreground
#568ef5cornflowerblue
#568ef5cornflowerblue
Muted
#f0f2f4whitesmoke
#0b0c0fblack
Muted foreground
#4d5666dimgray
#99a2b2darkgray
Accent
#010918black
#010918black
Accent foreground
#568ef5cornflowerblue
#568ef5cornflowerblue
Destructive
#6f300csaddlebrown
#e76418chocolate
Destructive foreground
#f7cdb5peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#181001black
#181001black

Contrast

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

Light mode
Text on background19.91:1AAA
Text on card19.94:1AAA
Primary button7.18:1AAA
Secondary button6.23:1AA
Muted text6.58:1AA
Accent6.23:1AA
Destructive6.83:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.18:1AAA
Secondary button6.23:1AA
Muted text7.60:1AAA
Accent6.23:1AA
Destructive6.22:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 83.058);
  --foreground: oklch(0.123 0.013 89.072);
  --muted: oklch(0.96 0.004 263.047);
  --muted-foreground: oklch(0.45 0.029 262.819);
  --popover: oklch(0.994 0.003 83.058);
  --popover-foreground: oklch(0.123 0.013 89.072);
  --card: oklch(0.989 0.006 83.061);
  --card-foreground: oklch(0.097 0.011 89.072);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.18 0.033 85.231);
  --primary-foreground: oklch(0.712 0.149 73.599);
  --secondary: oklch(0.141 0.037 254.47);
  --secondary-foreground: oklch(0.658 0.165 261.641);
  --accent: oklch(0.141 0.037 254.47);
  --accent-foreground: oklch(0.658 0.165 261.641);
  --destructive: oklch(0.39 0.1 46.029);
  --destructive-foreground: oklch(0.879 0.058 51.746);
  --ring: oklch(0.18 0.033 85.231);
  --chart-1: oklch(0.18 0.033 85.231);
  --chart-2: oklch(0.141 0.037 254.47);
  --chart-3: oklch(0.141 0.037 254.47);
  --chart-4: oklch(0.172 0.053 258.516);
  --chart-5: oklch(0.18 0.034 85.357);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.155 0.006 262.937);
  --muted-foreground: oklch(0.711 0.026 262.951);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.18 0.033 85.231);
  --primary-foreground: oklch(0.712 0.149 73.599);
  --secondary: oklch(0.141 0.037 254.47);
  --secondary-foreground: oklch(0.658 0.165 261.641);
  --accent: oklch(0.141 0.037 254.47);
  --accent-foreground: oklch(0.658 0.165 261.641);
  --destructive: oklch(0.657 0.18 44.616);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.18 0.033 85.231);
  --chart-1: oklch(0.18 0.033 85.231);
  --chart-2: oklch(0.141 0.037 254.47);
  --chart-3: oklch(0.141 0.037 254.47);
  --chart-4: oklch(0.172 0.053 258.516);
  --chart-5: oklch(0.18 0.034 85.357);
}