How is your experience with the OutSystems Community?
chromajs
Reactive icon

ChromaJS

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 19 November 2025
 by 
0.0
 (0 ratings)
chromajs

ChromaJS

Details
This asset integrates the chroma.js library into OutSystems, enabling advanced color manipulation such as color conversion, palette generation, gradients, and contrast calculations directly in Reactive and Web apps.
Read more

With chroma.js, this asset supports a wide range of color operations, including color conversions between multiple color spaces, perceptual interpolation, contrast evaluation for accessibility, and the creation of responsive color scales for dashboards and UI theming.

Color Creation & Multiple Color Spaces

  • Create and convert colors across several color models, including:
  • RGB, HSL, HSV
  • Perceptual spaces: Lab, LCH, OKLab, OKLCH
  • CMYK and CSS named colors

You can create colors directly in these spaces (e.g., chroma.lab() or chroma.lch()) and read or modify individual channels using .get() and .set().

Scales & Gradients

Generate continuous or discrete color scales using:

  • chroma.scale(colors) for interpolation between one or more colors
  • Multiple interpolation modes (rgb, lrgb, lab, lch, etc.)
  • Lightness correction via .correctLightness()
  • Gamma correction to redistribute tone using .gamma()
  • .domain(values) to map numeric ranges to colors
  • .classes(n) to create stepped palettes for categorical data
  • .nodata(color) for handling missing values


You can also read all the documentation: https://gka.github.io/chroma.js/

Release notes (1.0.0)
License (1.0.0)
Reviews (0)
Team
Other assets in this category