docs / atmospheres / kajastus
Kajastus
the glow spreading along the horizon, arrived overhead: a curved roof of folded light arching over the viewport and running off past both edges, bright where a fold turns and you look through more of it. a corridor of low density runs through the middle, so header type keeps its ground.
intensity · roomrsc · client
provenance
authored in usvalayer
atmospheresintensity
room · the whole environment. nothing competes with itcomposition
behind a hero or a full section, children in normal flow above itthe header type sits in the corridor, not on top of the foldsnever on a ground it cannot outshine. on savi it renders nothingone vault per page. it is the room, nothing else competesthe most expensive of the eight to draw. give it a page worth the cost, and do not pair it with a second moving fielda11y
the canvas isaria-hidden and pointer-transparent · reduced motion paints one still frame · with no WebGL2 the canvas never mountsjest-axedependencies
ogl · atmospheres-core from the same packagelive demo · try it out
under the vault
the field thins into a corridor where the type sits, so the words keep their ground
customize
speedray and fold drift rate
opacityvault strength, 0 to 1
modedark grounds emit, light grounds stain
lowgreen low and distant, reads accent-alt
highviolet climbing the folds, reads accent
starthe cold field behind, reads ink
corridordepth of the low-density cut for the type
starscold field behind, 0 for a clean sky
advanced16
pitchhow far the eye tilts up, radians
curvecurvature of the ceiling, arches the edges down
foldhow far the ribbon meanders across the sky
foldScalewavelength of the meander, smaller is longer
warpone-axis domain warp so folds stay folds
offsetwhere the ribbon sits relative to the eye
widththickness of the sheet
detailacross-ribbon detail, along is 8x this
thresholdcuts the noise floor that keeps the frame empty
driftlateral drift of the fine structure
rayFreqvertical wavelength of the streaming rays
raySpeedhow fast the rays run up the ribbon
fardistance extinction and the horizon AA budget
exposurebrightness of the field
corridorYvertical centre of the corridor, -1 to 1
corridorHcorridor height
usage
import { Kajastus } from "@usva-ui/react/atmospheres/kajastus";
<Kajastus
speed={1}
>
<Hero />
</Kajastus>props
| prop | type | default | notes |
|---|---|---|---|
| children | ReactNode | — | rendered above the vault, in normal flow. |
| speed | number | 1 | rate of the streaming rays and the fold drift. |
| opacity | number | 1 | overall strength, 0 to 1. |
| mode | "emissive" | "absorptive" | resolved bg | forces the blend. by default a dark ground emits and a light ground stains. |
| colors | { low?; high?; star? } | accent-alt · accent · ink | the altitude ramp: green low and distant, violet climbing the folds, cold stars behind. omitted stops read their token. |
| params | Partial<KajastusParams> | KAJASTUS_DEFAULTS | the field itself: pitch, curve, fold, foldScale, warp, offset, width, detail, threshold, drift, rayFreq, raySpeed, far, exposure, stars, and the corridor cut (corridor, corridorY, corridorH) that keeps the type on real negative space. |
get it
bun add @usva-ui/reactusage
import { Kajastus } from "@usva-ui/react/atmospheres/kajastus";
<Kajastus className="min-h-svh">
<Hero />
</Kajastus>