Sleepy C64 NTSC for shadcn/ui

Sleepy C64 NTSC is a shadcn/ui theme built around a vivid blue primary color (#547ff8) with vivid blue accents (#547ff8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#547ff8) on an indigo-tinted background (#1a1a33).

Color palette

TokenLightDark
Background
#ffffffwhite
#1a1a33midnightblue
Foreground
#02050dblack
#f9fafaghostwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#020309black
#fcfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#02050dblack
#f9fafaghostwhite
Primary
#547ff8cornflowerblue
#547ff8cornflowerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#f8547flightcoral
#f8547flightcoral
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5e1e2gainsboro
#4a5870dimgray
Muted foreground
#534146darkslategray
#b3b3b3darkgray
Accent
#547ff8cornflowerblue
#547ff8cornflowerblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ef4444tomato
#ed4545tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f1f2f4whitesmoke
#1f2937darkslategray
Input
#f1f2f4whitesmoke
#1f2937darkslategray
Ring
#547ff8cornflowerblue
#547ff8cornflowerblue

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card20.15:1AAA
Primary button3.62:1AA Large
Secondary button3.20:1AA Large
Muted text7.32:1AAA
Accent3.64:1AA Large
Destructive3.76:1AA Large
Dark mode
Text on background16.20:1AAA
Text on card20.16:1AAA
Primary button3.62:1AA Large
Secondary button3.20:1AA Large
Muted text3.41:1AA Large
Accent3.64:1AA Large
Destructive3.79:1AA Large

CSS variables

Paste this into your globals.css to use Sleepy C64 NTSC in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.117 0.022 260.58);
  --muted: oklch(0.913 0.004 358.924);
  --muted-foreground: oklch(0.396 0.026 0.564);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.117 0.022 260.58);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.102 0.019 260.161);
  --border: oklch(0.96 0.003 270.096);
  --input: oklch(0.96 0.003 270.096);
  --primary: oklch(0.629 0.186 266.143);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.678 0.201 8.191);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.628 0.187 266.375);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.637 0.208 25.326);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.629 0.186 266.143);
  --chart-1: oklch(0.629 0.186 266.143);
  --chart-2: oklch(0.678 0.201 8.191);
  --chart-3: oklch(0.628 0.187 266.375);
  --chart-4: oklch(0.698 0.186 6.814);
  --chart-5: oklch(0.627 0.192 265.991);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.232 0.048 282.033);
  --foreground: oklch(0.984 0.001 270.112);
  --muted: oklch(0.459 0.042 260.108);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.001 270.112);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 270.116);
  --border: oklch(0.279 0.03 256.848);
  --input: oklch(0.279 0.03 256.848);
  --primary: oklch(0.629 0.186 266.143);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.678 0.201 8.191);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.628 0.187 266.375);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.634 0.204 25.157);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.628 0.187 266.375);
  --chart-1: oklch(0.629 0.186 266.143);
  --chart-2: oklch(0.678 0.201 8.191);
  --chart-3: oklch(0.628 0.187 266.375);
  --chart-4: oklch(0.698 0.186 6.814);
  --chart-5: oklch(0.627 0.192 265.991);
}