Midnight Borealis

Aurora borealis effect with animated streaks creating a midnight sky gradient.

Main Features of Midnight Borealis

How to Use Midnight Borealis in Next.js

Installation Guide for Midnight Borealis

Props

Customize the component with these props

PropertyTypeDefaultDescription
backgroundColor
string#0f172aBackground color
conicGradientColors
string#1e293b 0deg, #0f172a 120deg, #334155 240deg, #1e293b 360degConic gradient colors
conicOpacity
number0.6Conic gradient opacity
waveCount
number4Number of waves
waveColor1
string#4ade80First wave color
waveColor2
string#818cf8Second wave color
waveWidth
string200%Wave width
waveHeight
string400pxWave height
waveBlur
string60pxWave blur
waveBaseTop
number20Base wave top position percentage
waveTopIncrement
number15Wave top increment
waveRotation
number-10Wave rotation angle
waveTranslateX
string[]['-20%', '0%', '-20%']Wave X translation
waveScaleY
number[][1, 1.5, 1]Wave Y scale animation
waveBaseDuration
number10Base wave animation duration
radialGradientFrom
stringtransparentRadial gradient start color
radialGradientTo
string#020617Radial gradient end color
grainOpacity
number0.2Grain overlay opacity
grainBaseFrequency
string0.65Grain base frequency
grainOctaves
number3Grain octaves
title
stringBorealisTitle text
className
stringAdditional CSS classes

When to Use

Perfect for nature-themed landing pages, night-mode experiences, and Next.js sites that want a mysterious, boreal aesthetic. Use this React component for an aurora borealis simulation with animated light streaks and deep midnight gradients.

Best Practices

Follow React best practices by pairing this with dark, high-contrast typography. Maintain scalable component architecture by using this as a thematic backdrop for specific narrative sections. Optimize for performance by managing the `waveCount` for mobile users.

Why This Component Matters in Modern UI Development

Aurora visuals create a sense of scale and natural beauty. This production-ready component helpsคุณ build an interface that feels atmospheric and 'alive', improving user retention through visual wonder.

Frequently Asked Questions

QCan I adjust the aurora colors?

Yes, you can set the primary and secondary wave colors (e.g., green and purple) to match specific boreal sightings.

QHow many waves are there?

You can control the intensity of the aurora by adjusting the `waveCount` prop, adding more layers for a richer, more active sky.

QIs the movement smooth?

Yes, it uses Framer Motion gradients and transforms to ensure the 'light' flows across the screen with natural, wave-like motion.

Midnight Borealis - Mesh Gradients & CSS Backgrounds | Uilora