This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Nri.Stylers

Helper module for working with fonts

makeFont : Css.FontSize a -> Css.ColorValue b -> Style

takes a size and a color and creates a font

module Nri.Stylers exposing (makeFont)

{-| Helper module for working with fonts

@docs makeFont

-}

import Css exposing (..)
import Nri.Fonts


{-|
takes a size and a color and creates a font
-}
makeFont : Css.FontSize a -> Css.ColorValue b -> Style
makeFont size fontColor =
    Css.batch
        [ Nri.Fonts.baseFont
        , fontSize size
        , color fontColor
        ]