mirror of
https://github.com/imfing/hextra.git
synced 2025-07-05 16:27:27 -04:00
amend comment
This commit is contained in:
@ -3,7 +3,7 @@ const colors = require('tailwindcss/colors')
|
|||||||
const makePrimaryColor =
|
const makePrimaryColor =
|
||||||
l =>
|
l =>
|
||||||
({ opacityValue }) => {
|
({ 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);
|
let finalLightness = (l - 50);
|
||||||
return (
|
return (
|
||||||
`hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) ${finalLightness > 0 ? "+" : "-"} ${Math.abs(finalLightness)}%)` +
|
`hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) ${finalLightness > 0 ? "+" : "-"} ${Math.abs(finalLightness)}%)` +
|
||||||
|
Reference in New Issue
Block a user