-
-
Notifications
You must be signed in to change notification settings - Fork 81
/
index.html
33 lines (22 loc) · 1.13 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!doctype html>
<link rel="stylesheet" href="s.css" />
<h1>Tests for <a href="../">recipes</a>/color</h1>
<ul>
<li><a href="scheme">scheme</a></li>
</ul>
<p class="doc">
A series of functions/mixins which assist in dynamic color manipulation.
Created by <a href="http://www.davidkaneda.com">David Kaneda</a>.
</p>
<p class="doc">
By default, Sass comes with a <code>lightness()</code> function, which returns the expected value from the HSLa system of colors. To properly judge readability, though, we have to look at perceived brightness. This class adds a <code>brightness()</code> function to Sass, as well as <code>luminosity()</code> so we can easily generate a readable text color from the background.<br><br>
The sample below shows the lightness value (all are the same), but will show the brightness value as you mouse over the examples.
</p>
<div class="swatch1"></div>
<div class="swatch2"></div>
<div class="swatch3"></div>
<div class="swatch4"></div>
<div class="swatch5"></div>
<h2>Black & White helper</h2>
<div class="black-white">black-white</div>
<div class="black-white-transparente">black-white-transparente</div>