Infinite for shadcn/ui

Infinite is a shadcn/ui theme built around a teal primary color (#41d894) with near-white accents (#eaebeb). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#41d894) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#ffffffwhite
#030705black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#030705black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#030705black
Popover foreground
#000000black
#ffffffwhite
Primary
#41d894mediumaquamarine
#41d894mediumaquamarine
Primary foreground
#0d3f29darkslategray
#0d3f29darkslategray
Secondary
#eaebeblavender
#1f2824darkslategray
Secondary foreground
#4e5552darkslategray
#b4c5besilver
Muted
#dde4e1gainsboro
#1b221fblack
Muted foreground
#5a7267dimgray
#8da59adarkseagreen
Accent
#eaebeblavender
#1f2824darkslategray
Accent foreground
#4e5552darkslategray
#b4c5besilver
Destructive
#b42808firebrick
#f54a24orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#41d894mediumaquamarine
#41d894mediumaquamarine

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.51:1AA
Secondary button6.41:1AA
Muted text4.02:1AA Large
Accent6.41:1AA
Destructive6.45:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button6.51:1AA
Secondary button8.38:1AAA
Muted text6.16:1AA
Accent8.38:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.912 0.008 167.56);
  --muted-foreground: oklch(0.53 0.034 165.928);
  --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.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.787 0.16 159.218);
  --primary-foreground: oklch(0.33 0.067 159.35);
  --secondary: oklch(0.94 0.002 167.754);
  --secondary-foreground: oklch(0.442 0.01 167.202);
  --accent: oklch(0.94 0.002 167.754);
  --accent-foreground: oklch(0.442 0.01 167.202);
  --destructive: oklch(0.504 0.18 32.995);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.787 0.16 159.218);
  --chart-1: oklch(0.787 0.16 159.218);
  --chart-2: oklch(0.94 0.002 167.754);
  --chart-3: oklch(0.94 0.002 167.754);
  --chart-4: oklch(0.963 0.001 167.777);
  --chart-5: oklch(0.795 0.165 158.853);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.01 167.957);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.244 0.011 166.465);
  --muted-foreground: oklch(0.701 0.032 166.503);
  --popover: oklch(0.121 0.01 167.957);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.01 167.957);
  --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.787 0.16 159.218);
  --primary-foreground: oklch(0.33 0.067 159.35);
  --secondary: oklch(0.268 0.015 166.145);
  --secondary-foreground: oklch(0.809 0.022 167.053);
  --accent: oklch(0.268 0.015 166.145);
  --accent-foreground: oklch(0.809 0.022 167.053);
  --destructive: oklch(0.649 0.213 33.791);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.787 0.16 159.218);
  --chart-1: oklch(0.787 0.16 159.218);
  --chart-2: oklch(0.268 0.015 166.145);
  --chart-3: oklch(0.268 0.015 166.145);
  --chart-4: oklch(0.301 0.018 166.058);
  --chart-5: oklch(0.795 0.165 158.853);
}