Number for shadcn/ui

Number is a shadcn/ui theme built around a light yellow primary color (#f0f1da) with light indigo accents (#dbdaf1). The light mode uses a neutral background (#fefefb). Dark mode keeps the light yellow primary (#f0f1da) on a neutral background (#070703).

Color palette

TokenLightDark
Background
#fefefbwhite
#070703black
Foreground
#000000black
#fbfcf8snow
Card
#fcfcf7snow
#0b0b04black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fefefbwhite
#070703black
Popover foreground
#000000black
#fbfcf8snow
Primary
#f0f1dabeige
#f0f1dabeige
Primary foreground
#24250eblack
#24250eblack
Secondary
#dbdaf1lavender
#dbdaf1lavender
Secondary foreground
#2e2b6emidnightblue
#2e2b6emidnightblue
Muted
#e5e5eblavender
#14141ablack
Muted foreground
#484757darkslategray
#a9a8b8darkgray
Accent
#dbdaf1lavender
#dbdaf1lavender
Accent foreground
#2e2b6emidnightblue
#2e2b6emidnightblue
Destructive
#d94602orangered
#fd5c12orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0f1dabeige
#f0f1dabeige

Contrast

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

Light mode
Text on background20.73:1AAA
Text on card20.46:1AAA
Primary button13.56:1AAA
Secondary button9.09:1AAA
Muted text7.21:1AAA
Accent9.09:1AAA
Destructive4.34:1AA Large
Dark mode
Text on background19.53:1AAA
Text on card19.37:1AAA
Primary button13.56:1AAA
Secondary button9.09:1AAA
Muted text7.86:1AAA
Accent9.09:1AAA
Destructive6.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 108.77);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.923 0.009 288.522);
  --muted-foreground: oklch(0.405 0.026 287.454);
  --popover: oklch(0.995 0.003 108.77);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.007 108.832);
  --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.95 0.03 109.278);
  --primary-foreground: oklch(0.256 0.038 111.309);
  --secondary: oklch(0.897 0.031 288.064);
  --secondary-foreground: oklch(0.334 0.113 280.589);
  --accent: oklch(0.897 0.031 288.064);
  --accent-foreground: oklch(0.334 0.113 280.589);
  --destructive: oklch(0.598 0.193 38.409);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.95 0.03 109.278);
  --chart-1: oklch(0.95 0.03 109.278);
  --chart-2: oklch(0.897 0.031 288.064);
  --chart-3: oklch(0.897 0.031 288.064);
  --chart-4: oklch(0.928 0.021 288.28);
  --chart-5: oklch(0.952 0.032 109.315);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.015 110.26);
  --foreground: oklch(0.989 0.004 108.79);
  --muted: oklch(0.193 0.014 287.318);
  --muted-foreground: oklch(0.737 0.023 288.13);
  --popover: oklch(0.128 0.015 110.26);
  --popover-foreground: oklch(0.989 0.004 108.79);
  --card: oklch(0.147 0.017 110.37);
  --card-foreground: oklch(0.994 0.002 108.749);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.95 0.03 109.278);
  --primary-foreground: oklch(0.256 0.038 111.309);
  --secondary: oklch(0.897 0.031 288.064);
  --secondary-foreground: oklch(0.334 0.113 280.589);
  --accent: oklch(0.897 0.031 288.064);
  --accent-foreground: oklch(0.334 0.113 280.589);
  --destructive: oklch(0.68 0.208 39.828);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.95 0.03 109.278);
  --chart-1: oklch(0.95 0.03 109.278);
  --chart-2: oklch(0.897 0.031 288.064);
  --chart-3: oklch(0.897 0.031 288.064);
  --chart-4: oklch(0.928 0.021 288.28);
  --chart-5: oklch(0.952 0.032 109.315);
}