HUD, Colors & Icons
chroma.js
Build and inspect color ramps in JavaScript for legends, terrain and heatmaps.
Free · Open source · BSD-3-Clause (code); Apache-2.0 (ColorBrewer palettes)
Choose sequential, diverging or categorical color schemes for map layers and data overlays.
Treat the type of data as the starting point. Use a sequential ramp for an ordered range such as elevation, a diverging ramp for signed departures from a reference and a categorical palette for distinct classes.
Pick a scheme, set a clear data domain and check the swatches at their real size on the HUD. The module’s code uses ISC. Follow the included ColorBrewer notice when using its schemes.
Official site and license checked .