Overview

Night Sky UI Kit

Three animated React components for dark, night-sky themed websites: a star cursor, a twinkling starfield, and a soft aurora glow.

Aurora Glow

Night Sky UI Kit

Components

Requirements

  • React 18 or newer. Works in Next.js (client components) and Vite.
  • TypeScript source with typed props. No other dependencies.
  • Canvas-based. Animation pauses when the tab is hidden.
  • Respects reduced motion: the cursor turns off and backgrounds draw one still frame.

Installation

Setup
// 1. Copy the files you need into your project
components/night-sky-kit/color.ts
components/night-sky-kit/StarCursor.tsx
components/night-sky-kit/NightSky.tsx
components/night-sky-kit/AuroraGlow.tsx

// 2. Render them
import { AuroraGlow } from './components/night-sky-kit/AuroraGlow'
import { NightSky } from './components/night-sky-kit/NightSky'
import { StarCursor } from './components/night-sky-kit/StarCursor'

Get the kit

All three components with full source, typed props, and usage examples. Each component can also be bought on its own from its page.

Buy the kit