Skip to content

Color Palettes

Termeh provides a comprehensive set of functions to generate and manipulate color palettes. These functions allow you to create consistent, accessible, and visually appealing color variations based on HSL color ranges.

Palette

Generates a color variant based on a base color and a variant string. Variants typically range from 50 (brightest) to 900 (darkest).

Signature:

scss
@function palette($color: COLOR, $variant: STRING): COLOR;

Example:

scss
$primary200: termeh.palette(#3498db, "200");
$primary700: termeh.palette(#3498db, "700");
Available Variants
KeyDescription
50Brightest variant
100Very light variant
200Light variant
300Moderately light variant
400Slightly light / base-adjacent
500Base / Original color
600Slightly dark / base-adjacent
700Moderately dark variant
800Dark variant
900Darkest variant