App UI kits › Halation › Curves

Curves

A tone curve drawn on the photo’s own histogram: drag or add points per channel, with contrast, fade and matte presets.

Curves is a screen from Halation, an app ui kit with 13 screens: A pro camera and film editor where the histogram, focus peaking and film looks are worked out from the real photo. Price: $5 for the whole pack.

Built with: monotone spline, per channel, presets.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Curves props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosLXPhotos
shotstringthe shot to edit, from the kit's roll
onCancel() => void
onDone(edit: LXParams & { rotate: number; aspect: string }) => void

Methods on the ref

Use it in React

import HalationCurves from './HalationCurves';

<HalationCurves />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Halation

Good for: Camera app.