Skip to content

Support function contrast -> ref.: http://lesscss.org/#-color-functions #330

@kaystrobach

Description

@kaystrobach

In the official docs there is a function called contrast, would be pretty cool if you would support that function ;) - it allows to invert colors easily :D

contrast(@color1, @darkcolor, @lightcolor);
// return @darkcolor if @color1 is >50% luma (i.e. is a light color),
// otherwise return @lightcolor

ref.: http://lesscss.org/#-color-functions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions