From 133f8efb77ba1891cfe13622e1561f2ad2bdddeb Mon Sep 17 00:00:00 2001 From: Attila Greguss Date: Thu, 10 Oct 2024 11:21:29 +0100 Subject: [PATCH] amend comment --- tailwind.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailwind.config.js b/tailwind.config.js index 180465a..d23e21a 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -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)}%)` +