Nice for shadcn/ui

Nice is a shadcn/ui theme built around a deep cyan primary color (#061318) with deep orange accents (#180b06). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#061318) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#ffffffwhite
#020303black
Foreground
#040d10black
#f9fafbghostwhite
Card
#fcfcfcsnow
#030607black
Card foreground
#030a0cblack
#fcfdfdwhite
Popover
#fcfcfcsnow
#030607black
Popover foreground
#030a0cblack
#fcfdfdwhite
Primary
#061318black
#061318black
Primary foreground
#75bedbskyblue
#75bedbskyblue
Secondary
#180b06black
#180b06black
Secondary foreground
#db9275darksalmon
#db9275darksalmon
Muted
#ddd7d4gainsboro
#2b2422darkslategray
Muted foreground
#52433ddarkslategray
#c2b3adsilver
Accent
#180b06black
#180b06black
Accent foreground
#db9275darksalmon
#db9275darksalmon
Destructive
#5d2509maroon
#d75514chocolate
Destructive foreground
#f6bea2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#061318black
#061318black

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.52:1AAA
Primary button9.08:1AAA
Secondary button7.67:1AAA
Muted text6.60:1AA
Accent7.67:1AAA
Destructive7.37:1AAA
Dark mode
Text on background19.77:1AAA
Text on card19.95:1AAA
Primary button9.08:1AAA
Secondary button7.67:1AAA
Muted text7.49:1AAA
Accent7.67:1AAA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.15 0.016 221.798);
  --muted: oklch(0.883 0.008 43.047);
  --muted-foreground: oklch(0.396 0.024 42.709);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.135 0.014 218.606);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.135 0.014 218.606);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.178 0.022 224.841);
  --primary-foreground: oklch(0.766 0.084 225.3);
  --secondary: oklch(0.169 0.025 44.13);
  --secondary-foreground: oklch(0.727 0.098 42.341);
  --accent: oklch(0.169 0.025 44.13);
  --accent-foreground: oklch(0.727 0.098 42.341);
  --destructive: oklch(0.342 0.091 43.466);
  --destructive-foreground: oklch(0.845 0.076 47.804);
  --ring: oklch(0.178 0.022 224.841);
  --chart-1: oklch(0.178 0.022 224.841);
  --chart-2: oklch(0.169 0.025 44.13);
  --chart-3: oklch(0.169 0.025 44.13);
  --chart-4: oklch(0.204 0.036 42.085);
  --chart-5: oklch(0.179 0.023 224.866);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.006 219.6);
  --foreground: oklch(0.985 0.002 223.148);
  --muted: oklch(0.268 0.011 42.812);
  --muted-foreground: oklch(0.778 0.02 42.92);
  --popover: oklch(0.117 0.008 219.6);
  --popover-foreground: oklch(0.993 0.001 223.139);
  --card: oklch(0.117 0.008 219.6);
  --card-foreground: oklch(0.993 0.001 223.139);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.178 0.022 224.841);
  --primary-foreground: oklch(0.766 0.084 225.3);
  --secondary: oklch(0.169 0.025 44.13);
  --secondary-foreground: oklch(0.727 0.098 42.341);
  --accent: oklch(0.169 0.025 44.13);
  --accent-foreground: oklch(0.727 0.098 42.341);
  --destructive: oklch(0.612 0.177 41.837);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.178 0.022 224.841);
  --chart-1: oklch(0.178 0.022 224.841);
  --chart-2: oklch(0.169 0.025 44.13);
  --chart-3: oklch(0.169 0.025 44.13);
  --chart-4: oklch(0.204 0.036 42.085);
  --chart-5: oklch(0.179 0.023 224.866);
}