Coffeekraken.io 0.0.1

s-font-family

Return the font-family string or a registered font

Name Type Description Status Default
$name { String } The name of the registered font required

Return { String } The corresponding font-family property to set in your css

Example

    // register a font
@include s-setup((
        fonts : (
            myCoolFont : (
                font-family : 'Helvetica Neue',
                font-weight : 'bold',
                // etc...
            ),
            // other fonts...
        )
));

// apply the font
.my-cool-element {
        font-family : s-font-family(myCoolFont);
        // font-family : 'Helvetica Neue';
}

Author : Olivier Bossel olivier.bossel@gmail.com