Repeat for shadcn/ui

Repeat is a shadcn/ui theme built around a light teal primary color (#d8eee8) with light yellow accents (#eee8d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#d8eee8) on a teal-tinted background (#04100d).

Color palette

TokenLightDark
Background
#ffffffwhite
#04100dblack
Foreground
#010403black
#ffffffwhite
Card
#ffffffwhite
#04100dblack
Card foreground
#010403black
#ffffffwhite
Popover
#ffffffwhite
#04100dblack
Popover foreground
#010403black
#ffffffwhite
Primary
#d8eee8gainsboro
#d8eee8gainsboro
Primary foreground
#0e201bblack
#0e201bblack
Secondary
#e8d8eelavender
#e8d8eelavender
Secondary foreground
#562d67darkslateblue
#562d67darkslateblue
Muted
#f3f1f3whitesmoke
#0d0c0eblack
Muted foreground
#4b484cdarkslategray
#b6b3b7silver
Accent
#eee8d8antiquewhite
#eee8d8antiquewhite
Accent foreground
#201b0eblack
#201b0eblack
Destructive
#d54b10chocolate
#ef6125chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d8eee8gainsboro
#d8eee8gainsboro

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button13.93:1AAA
Secondary button7.86:1AAA
Muted text8.03:1AAA
Accent13.98:1AAA
Destructive4.31:1AA Large
Dark mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button13.93:1AAA
Secondary button7.86:1AAA
Muted text9.40:1AAA
Accent13.98:1AAA
Destructive6.40:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.014 177.88);
  --muted: oklch(0.961 0.002 316.602);
  --muted-foreground: oklch(0.405 0.008 316.548);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.1 0.014 177.88);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.1 0.014 177.88);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.931 0.025 176.932);
  --primary-foreground: oklch(0.226 0.026 173.657);
  --secondary: oklch(0.901 0.034 316.499);
  --secondary-foreground: oklch(0.377 0.105 315.557);
  --accent: oklch(0.931 0.022 88.925);
  --accent-foreground: oklch(0.223 0.024 88.781);
  --destructive: oklch(0.598 0.184 39.133);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.931 0.025 176.932);
  --chart-1: oklch(0.931 0.025 176.932);
  --chart-2: oklch(0.901 0.034 316.499);
  --chart-3: oklch(0.931 0.022 88.925);
  --chart-4: oklch(0.928 0.024 316.532);
  --chart-5: oklch(0.932 0.026 176.873);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.16 0.02 175.194);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.156 0.004 316.54);
  --muted-foreground: oklch(0.77 0.007 316.582);
  --popover: oklch(0.16 0.02 175.194);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.16 0.02 175.194);
  --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.931 0.025 176.932);
  --primary-foreground: oklch(0.226 0.026 173.657);
  --secondary: oklch(0.901 0.034 316.499);
  --secondary-foreground: oklch(0.377 0.105 315.557);
  --accent: oklch(0.931 0.022 88.925);
  --accent-foreground: oklch(0.223 0.024 88.781);
  --destructive: oklch(0.666 0.188 40.74);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.931 0.025 176.932);
  --chart-1: oklch(0.931 0.025 176.932);
  --chart-2: oklch(0.901 0.034 316.499);
  --chart-3: oklch(0.931 0.022 88.925);
  --chart-4: oklch(0.928 0.024 316.532);
  --chart-5: oklch(0.932 0.026 176.873);
}