Stylish for shadcn/ui

Stylish is a shadcn/ui theme built around a vivid orange primary color (#f8995d) with vivid blue accents (#5dbdf8). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the vivid orange primary (#f8995d) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#fdf9f7snow
#040201black
Foreground
#100904black
#faf7f4whitesmoke
Card
#fcf6f3floralwhite
#070503black
Card foreground
#0c0703black
#fcf9f8snow
Popover
#fcf6f3floralwhite
#070503black
Popover foreground
#0c0703black
#fcf9f8snow
Primary
#f8995dsandybrown
#f8995dsandybrown
Primary foreground
#220e01black
#220e01black
Secondary
#5dbdf8cornflowerblue
#5dbdf8cornflowerblue
Secondary foreground
#011622black
#011622black
Muted
#e7eff3lavender
#0c1318black
Muted foreground
#61676bdimgray
#949a9edarkgray
Accent
#5dbdf8cornflowerblue
#5dbdf8cornflowerblue
Accent foreground
#011622black
#011622black
Destructive
#750e0amaroon
#d31912firebrick
Destructive foreground
#f9bbb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8995dsandybrown
#f8995dsandybrown

Contrast

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

Light mode
Text on background18.90:1AAA
Text on card18.75:1AAA
Primary button8.57:1AAA
Secondary button8.86:1AAA
Muted text4.91:1AA
Accent8.86:1AAA
Destructive7.02:1AAA
Dark mode
Text on background19.37:1AAA
Text on card19.44:1AAA
Primary button8.57:1AAA
Secondary button8.86:1AAA
Muted text6.56:1AA
Accent8.86:1AAA
Destructive5.35:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.005 54.438);
  --foreground: oklch(0.147 0.018 59.98);
  --muted: oklch(0.947 0.01 234.666);
  --muted-foreground: oklch(0.51 0.01 234.792);
  --popover: oklch(0.977 0.007 54.403);
  --popover-foreground: oklch(0.133 0.016 62.969);
  --card: oklch(0.977 0.007 54.403);
  --card-foreground: oklch(0.133 0.016 62.969);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.769 0.137 51.331);
  --primary-foreground: oklch(0.191 0.043 55.514);
  --secondary: oklch(0.764 0.124 238.627);
  --secondary-foreground: oklch(0.189 0.038 236.984);
  --accent: oklch(0.764 0.124 238.627);
  --accent-foreground: oklch(0.189 0.038 236.984);
  --destructive: oklch(0.362 0.137 28.642);
  --destructive-foreground: oklch(0.847 0.072 20.954);
  --ring: oklch(0.769 0.137 51.331);
  --chart-1: oklch(0.769 0.137 51.331);
  --chart-2: oklch(0.764 0.124 238.627);
  --chart-3: oklch(0.764 0.124 238.627);
  --chart-4: oklch(0.784 0.114 237.894);
  --chart-5: oklch(0.771 0.141 51.165);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.092 0.008 61.084);
  --foreground: oklch(0.977 0.005 54.437);
  --muted: oklch(0.183 0.015 235.994);
  --muted-foreground: oklch(0.683 0.009 234.703);
  --popover: oklch(0.116 0.01 61.084);
  --popover-foreground: oklch(0.985 0.003 54.461);
  --card: oklch(0.116 0.01 61.084);
  --card-foreground: oklch(0.985 0.003 54.461);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.769 0.137 51.331);
  --primary-foreground: oklch(0.191 0.043 55.514);
  --secondary: oklch(0.764 0.124 238.627);
  --secondary-foreground: oklch(0.189 0.038 236.984);
  --accent: oklch(0.764 0.124 238.627);
  --accent-foreground: oklch(0.189 0.038 236.984);
  --destructive: oklch(0.552 0.216 29.021);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.769 0.137 51.331);
  --chart-1: oklch(0.769 0.137 51.331);
  --chart-2: oklch(0.764 0.124 238.627);
  --chart-3: oklch(0.764 0.124 238.627);
  --chart-4: oklch(0.784 0.114 237.894);
  --chart-5: oklch(0.771 0.141 51.165);
}