global-v1 for shadcn/ui

global-v1 is a shadcn/ui theme built around a vivid red primary color (#f1745b) with muted light red accents (#dec9c4). The light mode uses a neutral background (#fefcfb). Dark mode switches to a vivid green primary (#eafe7c) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fefcfbsnow
#030202black
Foreground
#150705black
#fdfcfcsnow
Card
#fcf8f8snow
#070404black
Card foreground
#110604black
#ffffffwhite
Popover
#fcf8f8snow
#070404black
Popover foreground
#110604black
#ffffffwhite
Primary
#f1745bcoral
#eafe7ckhaki
Primary foreground
#170602black
#170602black
Secondary
#e6dddbgainsboro
#33320bblack
Secondary foreground
#543f3bdarkslategray
#fcffc2lemonchiffon
Muted
#f3edeclinen
#130d0cblack
Muted foreground
#413f3edarkslategray
#c1bebesilver
Accent
#dec9c4lightgrey
#4e3e3bdarkslategray
Accent foreground
#482e28darkslategray
#e2dbd9gainsboro
Destructive
#c44703chocolate
#e25103orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eae7e6linen
#272220black
Input
#eae7e6linen
#272220black
Ring
#f1745bcoral
#f1745bcoral

Contrast

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

Light mode
Text on background19.24:1AAA
Text on card18.99:1AAA
Primary button6.92:1AA
Secondary button7.29:1AAA
Muted text9.06:1AAA
Accent7.78:1AAA
Destructive4.95:1AA
Dark mode
Text on background20.22:1AAA
Text on card20.43:1AAA
Primary button17.83:1AAA
Secondary button12.62:1AAA
Muted text10.43:1AAA
Accent7.35:1AAA
Destructive3.87:1AA Large

CSS variables

Paste this into your globals.css to use global-v1 in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 31.048);
  --foreground: oklch(0.151 0.026 35.599);
  --muted: oklch(0.951 0.007 31.056);
  --muted-foreground: oklch(0.369 0.003 31.058);
  --popover: oklch(0.983 0.004 31.051);
  --popover-foreground: oklch(0.139 0.022 36.855);
  --card: oklch(0.983 0.004 31.051);
  --card-foreground: oklch(0.139 0.022 36.855);
  --border: oklch(0.929 0.004 31.051);
  --input: oklch(0.929 0.004 31.051);
  --primary: oklch(0.7 0.159 32.801);
  --primary-foreground: oklch(0.15 0.036 39.367);
  --secondary: oklch(0.903 0.01 31.066);
  --secondary-foreground: oklch(0.389 0.031 31.417);
  --accent: oklch(0.851 0.025 31.124);
  --accent-foreground: oklch(0.33 0.04 31.764);
  --destructive: oklch(0.563 0.172 40.938);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.7 0.159 32.801);
  --chart-1: oklch(0.7 0.159 32.801);
  --chart-2: oklch(0.903 0.01 31.066);
  --chart-3: oklch(0.851 0.025 31.124);
  --chart-4: oklch(0.928 0.008 31.059);
  --chart-5: oklch(0.701 0.165 32.867);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.006 33.969);
  --foreground: oklch(0.992 0.001 31.046);
  --muted: oklch(0.166 0.01 31.301);
  --muted-foreground: oklch(0.804 0.002 31.049);
  --popover: oklch(0.112 0.008 33.969);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.112 0.008 33.969);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.256 0.008 31.139);
  --input: oklch(0.256 0.008 31.139);
  --primary: oklch(0.956 0.156 116.695);
  --primary-foreground: oklch(0.15 0.036 39.367);
  --secondary: oklch(0.309 0.057 107.866);
  --secondary-foreground: oklch(0.983 0.078 110.089);
  --accent: oklch(0.382 0.023 31.288);
  --accent-foreground: oklch(0.896 0.009 31.062);
  --destructive: oklch(0.625 0.193 40.586);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.7 0.159 32.801);
  --chart-1: oklch(0.7 0.159 32.801);
  --chart-2: oklch(0.298 0.006 31.088);
  --chart-3: oklch(0.382 0.023 31.288);
  --chart-4: oklch(0.328 0.007 31.09);
  --chart-5: oklch(0.701 0.165 32.867);
}