Skip to main content
Lumidot includes 20 built-in color variants, each optimized for vibrant, eye-catching animations with automatic glow effects.

Using Color Variants

Set the color using the variant prop:
<Lumidot variant="blue" />      // Default
<Lumidot variant="emerald" />
<Lumidot variant="fuchsia" />

All Color Variants

Amber

<Lumidot variant="amber" />
Hex: #fcd34d

Orange

<Lumidot variant="orange" />
Hex: #fdba74

Red

<Lumidot variant="red" />
Hex: #fca5a5

Rose

<Lumidot variant="rose" />
Hex: #fda4af

Pink

<Lumidot variant="pink" />
Hex: #f9a8d4

Yellow

<Lumidot variant="yellow" />
Hex: #fde047

Color Reference Table

VariantHex CodeCategory
amber#fcd34dWarm
blue#93c5fdCool
cyan#67e8f9Cool
emerald#6ee7b7Cool
fuchsia#f0abfcPurple/Violet
green#86efacCool
indigo#a5b4fcPurple/Violet
lime#bef264Cool
orange#fdba74Warm
pink#f9a8d4Warm
purple#d8b4fePurple/Violet
red#fca5a5Warm
rose#fda4afWarm
sky#7dd3fcCool
slate#cbd5e1Neutral
teal#5eead4Cool
violet#c4b5fdPurple/Violet
white#ffffffNeutral
black#000000Neutral
yellow#fde047Warm

How Glow Works

Each color variant includes an automatic glow effect that enhances visibility and creates depth:
// Default glow (8px)
<Lumidot variant="emerald" glow={8} />

// Subtle glow
<Lumidot variant="emerald" glow={4} />

// Intense glow
<Lumidot variant="emerald" glow={16} />

// No glow
<Lumidot variant="emerald" glow={0} />
The glow color is automatically calculated by brightening the base color by 50% and adding transparency. This ensures consistent, harmonious glow effects across all variants.

Color Psychology

Choose colors that align with your use case:

Action & Urgency

Red, Orange, YellowUse for critical operations, warnings, or time-sensitive actions.

Success & Completion

Green, Emerald, TealUse for successful operations, confirmations, or completed tasks.

Information & Trust

Blue, Sky, CyanUse for informational states, data loading, or neutral processes.

Premium & Creative

Purple, Violet, Fuchsia, PinkUse for premium features, creative tools, or special experiences.

Dark vs Light Backgrounds

Most colors work beautifully on dark backgrounds. Recommended variants:
// High contrast, vibrant
<Lumidot variant="cyan" />
<Lumidot variant="emerald" />
<Lumidot variant="fuchsia" />
<Lumidot variant="yellow" />

// Soft, elegant
<Lumidot variant="blue" />
<Lumidot variant="purple" />
<Lumidot variant="rose" />

// Neutral
<Lumidot variant="white" glow={12} />
<Lumidot variant="slate" glow={10} />

Custom Colors

If you need a custom color not included in the built-in variants, you can override the color using CSS custom properties:
<Lumidot 
  variant="blue" 
  style={{
    '--lumidot-color': '#ff6b35',
    '--lumidot-glow': '0 0 3.2px #ff6b35, 0 0 8px #ffa89060'
  } as React.CSSProperties}
/>
When using custom colors, you’ll need to manually define the glow effect to match your color.

Programmatic Access

You can import the COLORS constant to access color values programmatically:
import { COLORS } from 'lumidot';

console.log(COLORS.emerald); // '#6ee7b7'
console.log(COLORS.fuchsia); // '#f0abfc'

// Use in your own components
const buttonColor = COLORS.blue;

Next Steps

Patterns

Explore all 36 animation patterns

Customization

Learn about scale, glow, duration, and direction