From 56720b09333917807f2bd324a3e3fb3118586b86 Mon Sep 17 00:00:00 2001 From: lee-chase Date: Mon, 7 Dec 2015 18:36:42 +0000 Subject: [PATCH] Alpha color doc --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1224b7b..4022be4 100644 --- a/README.md +++ b/README.md @@ -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,6 +34,7 @@ Returns the specified color from the specified color palette // |---------------|---------------|----------| // // | Color Palette | String | Yes | // // | Color Tone | String/Number | Optional | // +// | Color Alpha | Number | Optional | // // ------------------------------------------ // ////////////////////////////////////////////////// @@ -41,6 +42,10 @@ 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