Device for shadcn/ui

Device is a shadcn/ui theme built around a vivid cyan primary color (#1299d3) with vivid orange accents (#d34c12). The light mode uses a neutral background (#f6fbfd). Dark mode keeps the vivid cyan primary (#1299d3) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#f6fbfdghostwhite
#020303black
Foreground
#041015black
#ffffffwhite
Card
#f6fbfdghostwhite
#020303black
Card foreground
#041015black
#ffffffwhite
Popover
#f6fbfdghostwhite
#020303black
Popover foreground
#041015black
#ffffffwhite
Primary
#1299d3dodgerblue
#1299d3dodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d34c12chocolate
#d34c12chocolate
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f3eeeclinen
#130e0cblack
Muted foreground
#4f4845darkslategray
#bab3b0darkgray
Accent
#d34c12chocolate
#d34c12chocolate
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9e1e05firebrick
#e42c07orangered
Destructive foreground
#feded7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1299d3dodgerblue
#1299d3dodgerblue

Contrast

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

Light mode
Text on background18.52:1AAA
Text on card18.52:1AAA
Primary button3.20:1AA Large
Secondary button4.35:1AA Large
Muted text7.80:1AAA
Accent4.35:1AA Large
Destructive6.27:1AA
Dark mode
Text on background20.66:1AAA
Text on card20.66:1AAA
Primary button3.20:1AA Large
Secondary button4.35:1AA Large
Muted text9.28:1AAA
Accent4.35:1AA Large
Destructive4.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.006 225.05);
  --foreground: oklch(0.165 0.022 225.368);
  --muted: oklch(0.953 0.006 44.92);
  --muted-foreground: oklch(0.407 0.011 44.723);
  --popover: oklch(0.986 0.006 225.05);
  --popover-foreground: oklch(0.165 0.022 225.368);
  --card: oklch(0.986 0.006 225.05);
  --card-foreground: oklch(0.165 0.022 225.368);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.646 0.134 235.083);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.595 0.181 39.434);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.595 0.181 39.434);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.455 0.166 32.431);
  --destructive-foreground: oklch(0.925 0.037 31.169);
  --ring: oklch(0.646 0.134 235.083);
  --chart-1: oklch(0.646 0.134 235.083);
  --chart-2: oklch(0.595 0.181 39.434);
  --chart-3: oklch(0.595 0.181 39.434);
  --chart-4: oklch(0.624 0.19 39.348);
  --chart-5: oklch(0.651 0.137 235.621);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.005 221.584);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.169 0.009 44.519);
  --muted-foreground: oklch(0.772 0.009 44.859);
  --popover: oklch(0.093 0.005 221.584);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.093 0.005 221.584);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.646 0.134 235.083);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.595 0.181 39.434);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.595 0.181 39.434);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.593 0.221 32.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.646 0.134 235.083);
  --chart-1: oklch(0.646 0.134 235.083);
  --chart-2: oklch(0.595 0.181 39.434);
  --chart-3: oklch(0.595 0.181 39.434);
  --chart-4: oklch(0.624 0.19 39.348);
  --chart-5: oklch(0.651 0.137 235.621);
}