apple v1.0 for shadcn/ui

apple v1.0 is a shadcn/ui theme built around a vivid blue primary color (#007aff) with muted light indigo accents (#f2f2f7). The light mode uses an indigo-tinted background (#f5f5f7). Dark mode keeps the vivid blue primary (#0a84ff) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f5f5f7whitesmoke
#000000black
Foreground
#000000black
#fdfdfdwhite
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#1c1c1eblack
Popover foreground
#000000black
#f2f2f7whitesmoke
Primary
#007affdodgerblue
#0a84ffdodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ffffffwhite
#1c1c1eblack
Secondary foreground
#000000black
#ffffffwhite
Muted
#e5e5ealavender
#161618black
Muted foreground
#000000black
#fdfdfdwhite
Accent
#f2f2f7whitesmoke
#2c2c2edarkslategray
Accent foreground
#000000black
#ffffffwhite
Destructive
#ff453atomato
#f24c36tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e5ealavender
#161617black
Input
#e5e5ealavender
#161617black
Ring
#007affdodgerblue
#0a84ffdodgerblue

Contrast

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

Light mode
Text on background19.28:1AAA
Text on card21.00:1AAA
Primary button4.01:1AA Large
Secondary button21.00:1AAA
Muted text16.72:1AAA
Accent18.81:1AAA
Destructive3.40:1AA Large
Dark mode
Text on background20.64:1AAA
Text on card21.00:1AAA
Primary button3.64:1AA Large
Secondary button17.01:1AAA
Muted text17.76:1AAA
Accent13.93:1AAA
Destructive3.58:1AA Large

CSS variables

Paste this into your globals.css to use apple v1.0 in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.971 0.003 286.35);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.923 0.007 286.267);
  --muted-foreground: oklch(0 0 0);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.923 0.007 286.267);
  --input: oklch(0.923 0.007 286.267);
  --primary: oklch(0.603 0.218 257.42);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.963 0.007 286.274);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.663 0.224 28.292);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.603 0.218 257.42);
  --chart-1: oklch(0.73 0.194 147.443);
  --chart-2: oklch(0.865 0.177 90.382);
  --chart-3: oklch(0.659 0.172 263.904);
  --chart-4: oklch(0.529 0.191 278.337);
  --chart-5: oklch(0.65 0.238 17.899);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0 180);
  --muted: oklch(0.201 0.004 286.039);
  --muted-foreground: oklch(0.994 0 180);
  --popover: oklch(0.227 0.004 286.091);
  --popover-foreground: oklch(0.963 0.007 286.274);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.201 0.002 286.221);
  --input: oklch(0.201 0.002 286.221);
  --primary: oklch(0.624 0.206 255.484);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.227 0.004 286.091);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.294 0.004 286.177);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.648 0.207 30.78);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.624 0.206 255.484);
  --chart-1: oklch(0.77 0.224 144.965);
  --chart-2: oklch(0.885 0.181 94.786);
  --chart-3: oklch(0.817 0.119 227.748);
  --chart-4: oklch(0.556 0.203 278.151);
  --chart-5: oklch(0.65 0.238 17.899);
}