Qix-/color

lighten and darken should be absolute

Open

#53 创建于 2015年2月16日

在 GitHub 查看
 (18 评论) (13 反应) (0 负责人)JavaScript (316 fork)batch import
bughelp wantedpr welcome

仓库指标

Star
 (4,637 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Hey,

in LESS and SASS the darken nand lighten function increase by an absolute amount. Example here: https://github.com/less/less.js/blob/fb5280f16f124e5062634a22be2f3c99e650d0a4/lib/less/functions/color.js#L163

This is a bit confusing because in color.js e.g. `color('#000000').lighten(1)' is still black.

I am not sure though if it would be better to change the function or create a new one like lightenAbsolute.

Best, Finn

贡献者指南