Action for shadcn/ui

Action is a shadcn/ui theme built around a light red primary color (#eddee0) with light blue accents (#dee0ed). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#eddee0) on a neutral background (#070304).

Color palette

TokenLightDark
Background
#ffffffwhite
#070304black
Foreground
#140608black
#faf5f6whitesmoke
Card
#fcfcfcsnow
#0b0506black
Card foreground
#100406black
#fcf8f9snow
Popover
#fcfcfcsnow
#0b0506black
Popover foreground
#100406black
#fcf8f9snow
Primary
#eddee0gainsboro
#eddee0gainsboro
Primary foreground
#63363ddarkolivegreen
#63363ddarkolivegreen
Secondary
#e0eddegainsboro
#e0eddegainsboro
Secondary foreground
#142112black
#142112black
Muted
#dfe9dcgainsboro
#182316black
Muted foreground
#575c57dimgray
#a4a8a3darkgray
Accent
#dee0edlavender
#dee0edlavender
Accent foreground
#363d63darkslategray
#363d63darkslategray
Destructive
#782608saddlebrown
#f26836tomato
Destructive foreground
#fac9b7peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eddee0gainsboro
#eddee0gainsboro

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.71:1AAA
Primary button7.58:1AAA
Secondary button13.82:1AAA
Muted text5.48:1AA
Accent7.99:1AAA
Destructive6.80:1AA
Dark mode
Text on background18.99:1AAA
Text on card19.22:1AAA
Primary button7.58:1AAA
Secondary button13.82:1AAA
Muted text6.78:1AA
Accent7.99:1AAA
Destructive6.81:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.028 8.46);
  --muted: oklch(0.924 0.021 140.497);
  --muted-foreground: oklch(0.469 0.01 140.498);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.133 0.024 7.179);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.133 0.024 7.179);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.913 0.017 5.931);
  --primary-foreground: oklch(0.391 0.066 9.906);
  --secondary: oklch(0.933 0.024 140.491);
  --secondary-foreground: oklch(0.231 0.034 140.347);
  --accent: oklch(0.91 0.018 276.988);
  --accent-foreground: oklch(0.372 0.066 274.146);
  --destructive: oklch(0.39 0.121 37.829);
  --destructive-foreground: oklch(0.875 0.062 40.932);
  --ring: oklch(0.913 0.017 5.931);
  --chart-1: oklch(0.913 0.017 5.931);
  --chart-2: oklch(0.933 0.024 140.491);
  --chart-3: oklch(0.91 0.018 276.988);
  --chart-4: oklch(0.953 0.017 140.504);
  --chart-5: oklch(0.912 0.019 5.98);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.012 5.798);
  --foreground: oklch(0.973 0.006 5.609);
  --muted: oklch(0.239 0.028 140.368);
  --muted-foreground: oklch(0.728 0.009 140.512);
  --popover: oklch(0.124 0.013 5.81);
  --popover-foreground: oklch(0.982 0.004 5.554);
  --card: oklch(0.124 0.013 5.81);
  --card-foreground: oklch(0.982 0.004 5.554);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.913 0.017 5.931);
  --primary-foreground: oklch(0.391 0.066 9.906);
  --secondary: oklch(0.933 0.024 140.491);
  --secondary-foreground: oklch(0.231 0.034 140.347);
  --accent: oklch(0.91 0.018 276.988);
  --accent-foreground: oklch(0.372 0.066 274.146);
  --destructive: oklch(0.681 0.182 39.363);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.913 0.017 5.931);
  --chart-1: oklch(0.913 0.017 5.931);
  --chart-2: oklch(0.933 0.024 140.491);
  --chart-3: oklch(0.91 0.018 276.988);
  --chart-4: oklch(0.953 0.017 140.504);
  --chart-5: oklch(0.912 0.019 5.98);
}