About Refraction
Refraction is a live, animated Spectra gradient background in #6a3cff, #2f8bff, #2fe0c8, #ffd23f and #ff4a3d. Tune it in the browser, then install it in React with one shadcn command. Free and MIT licensed.
Like the rest of Spectra, it shows thin arcs of light splitting into their spectrum.
It is a dark background, so white headlines and buttons read cleanly on top: hero sections, dark-mode landing pages, launch pages and app splash screens.
The spectrum shader draws it live on the GPU, with WebGPU where the browser has it and WebGL2 otherwise, in a seamless loop. It leans toward the pointer and drifts as the page scrolls.
- Look
- Dark background
- Colours
- #6a3cff
- #2f8bff
- #2fe0c8
- #ffd23f
- #ff4a3d
- Collection
- Spectra
- More in Spectra
- AfterhoursGlassworkPetal ArcAqua ThreadChroma ArcGold Thread