blog/themes/embark/source/css/00-functions/_functions.get-font-size.scss

13 lines
273 B
SCSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/// Font size
/// Get the size of a font
/// @group Font
/// @param {string} $key
@function get-font-size($key) {
@if map-has-key($fontSize, $key) {
@return map-get($fontSize, $key);
}
@warn "The key #{$key} is not in the map $fontSize";
@return null;
}