amend comment

This commit is contained in:
Attila Greguss
2024-10-10 11:21:29 +01:00
parent b4f6e2fd7a
commit 133f8efb77

View File

@ -3,7 +3,7 @@ const colors = require('tailwindcss/colors')
const makePrimaryColor =
l =>
({ opacityValue }) => {
// we convert the passed in lightness value to a multiplier relative to 50% (full color)
// we convert the passed in lightness value to be relative to 50% (full saturation)
let finalLightness = (l - 50);
return (
`hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) ${finalLightness > 0 ? "+" : "-"} ${Math.abs(finalLightness)}%)` +