Derick Montague | d415d97 | 2019-11-27 17:26:29 -0600 | [diff] [blame] | 1 | // Functions for getting colors from custom maps |
| 2 | // Bootstrap has a gray function and colors, but we have |
| 3 | // added new theme colors and helper functions. Using |
| 4 | // get-{color}($key: "100") because using the color name only |
| 5 | // {color}(key: "100"} convention that bootstrap does caused |
| 6 | // the compilation to fail for blue, red, and green. |
| 7 | // |
| 8 | // https://getbootstrap.com/docs/4.0/getting-started/theming/#functions |
| 9 | |
| 10 | // Blues |
| 11 | @function get-blue($key: "100") { |
| 12 | @return map-get($blues, $key); |
| 13 | } |
| 14 | |
| 15 | // Reds |
| 16 | @function get-red($key: "100") { |
| 17 | @return map-get($reds, $key); |
| 18 | } |
| 19 | |
| 20 | // Greens |
| 21 | @function get-green($key: "100") { |
| 22 | @return map-get($greens, $key); |
| 23 | } |
| 24 | |
| 25 | // Yellows |
| 26 | @function get-yellow($key: "100") { |
| 27 | @return map-get($yellows, $key); |
| 28 | } |
| 29 | |
| 30 | // Teals |
| 31 | @function get-teal($key: "200") { |
| 32 | @return map-get($teals, $key); |
| 33 | } |