There’s contrast
function, e.g.:
li {
color: contrast(@bodyBackground,
lighten(@bodyBackground, 13%),
darken(@bodyBackground, 13%));
}
More Related Contents:
- Loop over an array of name value pairs in LESS
- How to use if statements in LESS
- Multiple properties are getting treated as separate arguments in mixins
- Arrays with Less
- Conditionally setting one variable’s value based on another
- Why I can see Less instead of CSS in a browser [closed]
- Twitter Bootstrap Customization Best Practices [closed]
- Disable LESS-CSS Overwriting calc() [duplicate]
- Loop through array of variable names in Less
- Is there a SASS.js? Something like LESS.js?
- Using variables in property names in LESS (dynamic properties / property name interpolation)
- How to thematize in lesscss
- Double border with different color [duplicate]
- import .css file into .less file
- What does an “&” before a pseudo element in CSS mean?
- LessCss dynamic variables based on ancestor class
- Defining Variable Variables using LESS CSS
- How to use bootstrap with 16 or 24 columns
- Compile a referenced LESS file into CSS with PHP automatically
- Twitter’s Bootstrap 3 grid, changing breakpoint and removing padding
- LESS CSS: abusing the & Operator when nesting?
- How to add different CSS style to every nth element, depending on n using LESS
- LESS: Unrecognized input error when using Bootstrap
- LESS mixin a variable class name
- LESS CSS nesting classes
- Less CSS: Mixins with Variable Number of Arguments
- Prefixing all selectors for twitter bootstrap in less
- Media Query grouping instead of multiple scattered media queries that match
- Less and Bootstrap: how to use a span3 (or spanX [any number]) class as a mixin?
- Font awesome not working in Firefox