noredink-ui/styleguide-app/Examples/Fonts.elm

48 lines
1.2 KiB
Elm
Raw Normal View History

2020-04-01 02:00:29 +03:00
module Examples.Fonts exposing (example, State, Msg)
2018-03-17 01:27:38 +03:00
{-|
2020-04-01 02:00:29 +03:00
@docs example, State, Msg
2018-03-17 01:27:38 +03:00
-}
import Category exposing (Category(..))
2020-03-31 23:33:05 +03:00
import Example exposing (Example)
2018-03-17 01:27:38 +03:00
import Html.Styled as Html
import Html.Styled.Attributes exposing (css)
import Nri.Ui.Fonts.V1 as Fonts
import Nri.Ui.Heading.V2 as Heading
2018-03-17 01:27:38 +03:00
{-| -}
2020-04-01 02:00:29 +03:00
type alias State =
()
{-| -}
type alias Msg =
()
{-| -}
example : Example State Msg
2018-03-17 01:27:38 +03:00
example =
2019-05-03 19:56:43 +03:00
{ name = "Nri.Ui.Fonts.V1"
2020-03-31 23:33:05 +03:00
, categories = List.singleton Text
, state = ()
, update = \_ state -> ( state, Cmd.none )
, subscriptions = \_ -> Sub.none
, view =
\_ ->
[ Heading.h3 [] [ Html.text "baseFont" ]
, Html.p [ css [ Fonts.baseFont ] ]
[ Html.text "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz" ]
, Heading.h3 [] [ Html.text "quizFont" ]
, Html.p [ css [ Fonts.quizFont ] ]
[ Html.text "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz" ]
, Heading.h3 [] [ Html.text "ugFont" ]
, Html.p [ css [ Fonts.ugFont ] ]
[ Html.text "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz" ]
]
2018-03-17 01:27:38 +03:00
}