SCSS Mixin: Calculate color contrast between foreground and background color

1
2
/// Mixin that calculates if text needs to be light or dark, depending on the background color passed.
/// Color brightness is determined by the following formula:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.