Camera for shadcn/ui

Camera is a shadcn/ui theme built around a teal primary color (#6ac8b4) with yellow accents (#c8b46a). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#6ac8b4) on a teal-tinted background (#050a09).

Color palette

TokenLightDark
Background
#fbfefdwhite
#050a09black
Foreground
#020807black
#f6f8f8whitesmoke
Card
#f6fdfcmintcream
#070d0cblack
Card foreground
#010403black
#f9fbfamintcream
Popover
#f6fdfcmintcream
#070d0cblack
Popover foreground
#010403black
#f9fbfamintcream
Primary
#6ac8b4mediumaquamarine
#6ac8b4mediumaquamarine
Primary foreground
#000000black
#000000black
Secondary
#b46ac8mediumorchid
#b46ac8mediumorchid
Secondary foreground
#000000black
#000000black
Muted
#eaddeelavender
#1e1122black
Muted foreground
#56495adimgray
#b2a5b6darkgray
Accent
#c8b46adarkkhaki
#c8b46adarkkhaki
Accent foreground
#000000black
#000000black
Destructive
#942d0asaddlebrown
#ea4710orangered
Destructive foreground
#fcded4antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6ac8b4mediumaquamarine
#6ac8b4mediumaquamarine

Contrast

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

Light mode
Text on background19.91:1AAA
Text on card20.03:1AAA
Primary button10.52:1AAA
Secondary button5.82:1AA
Muted text6.45:1AA
Accent10.15:1AAA
Destructive6.28:1AA
Dark mode
Text on background18.68:1AAA
Text on card18.81:1AAA
Primary button10.52:1AAA
Secondary button5.82:1AA
Muted text7.71:1AAA
Accent10.15:1AAA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 181.961);
  --foreground: oklch(0.124 0.013 181.991);
  --muted: oklch(0.914 0.026 318.881);
  --muted-foreground: oklch(0.426 0.031 318.863);
  --popover: oklch(0.99 0.008 181.854);
  --popover-foreground: oklch(0.099 0.011 181.991);
  --card: oklch(0.99 0.008 181.854);
  --card-foreground: oklch(0.099 0.011 181.991);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.769 0.095 177.813);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.641 0.155 318.663);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.77 0.097 94.394);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.45 0.144 36.608);
  --destructive-foreground: oklch(0.923 0.036 39.317);
  --ring: oklch(0.769 0.095 177.813);
  --chart-1: oklch(0.769 0.095 177.813);
  --chart-2: oklch(0.641 0.155 318.663);
  --chart-3: oklch(0.77 0.097 94.394);
  --chart-4: oklch(0.667 0.144 318.719);
  --chart-5: oklch(0.775 0.1 177.55);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.009 182.019);
  --foreground: oklch(0.978 0.002 182.01);
  --muted: oklch(0.204 0.037 318.776);
  --muted-foreground: oklch(0.739 0.027 318.877);
  --popover: oklch(0.153 0.011 180.623);
  --popover-foreground: oklch(0.986 0.001 182.029);
  --card: oklch(0.153 0.011 180.623);
  --card-foreground: oklch(0.986 0.001 182.029);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.769 0.095 177.813);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.641 0.155 318.663);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.77 0.097 94.394);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.626 0.207 36.04);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.769 0.095 177.813);
  --chart-1: oklch(0.769 0.095 177.813);
  --chart-2: oklch(0.641 0.155 318.663);
  --chart-3: oklch(0.77 0.097 94.394);
  --chart-4: oklch(0.667 0.144 318.719);
  --chart-5: oklch(0.775 0.1 177.55);
}