/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-af8d194 | Cube Dev Team */
//#region src/tasty/utils/process-tokens.ts
const devMode = process.env.NODE_ENV !== "production";
/**
* Convert HSL to RGB (sRGB).
* Algorithm from: https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB_alternative
* Same as used in CSS Color 4 spec.
*
* @param h - Hue in degrees (0-360)
* @param s - Saturation (0-1)
* @param l - Lightness (0-1)
* @returns RGB values in 0-255 range (may have fractional values)
*/
function hslToRgbValues(h, s, l) {
	const a = s * Math.min(l, 1 - l);
	const f = (n) => {
		const k = (n + h / 30) % 12;
		return l - a * Math.max(-1, Math.min(k - 3, 9 - k, 1));
	};
	return [
		f(0) * 255,
		f(8) * 255,
		f(4) * 255
	];
}

//#endregion
export { hslToRgbValues };
//# sourceMappingURL=process-tokens.js.map