Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Alpha color doc
Browse files Browse the repository at this point in the history
lee-chase committed Dec 7, 2015
1 parent 42d0feb commit 56720b0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ With the color palette imported you will now have access to two functions:

Returns the specified color from the specified color palette

#### `color($palette, [$tone: 'core'])`
#### `color($palette, [$tone: 'core'], $alpha)`

```scss
//////////////////////////////////////////////////
@@ -34,13 +34,18 @@ Returns the specified color from the specified color palette
// |---------------|---------------|----------| //
// | Color Palette | String | Yes | //
// | Color Tone | String/Number | Optional | //
// | Color Alpha | Number | Optional | //
// ------------------------------------------ //
//////////////////////////////////////////////////

background: color('blue', 80); // #1d3649
background: color('blue', 8); // #1d3649
background: color('blue', 'core'); // #4178be
background: color('blue'); // #4178be
-- with an alpha
background: color('blue', 80, $alpha: 0.5); // rgba(29, 54, 73, 0.5)
background: color('blue', $alpha: 0.5); // rgba(65, 120, 190, 0.5)

```

### Color Tint

0 comments on commit 56720b0

Please sign in to comment.