mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-24 06:02:36 +03:00
add mediumBodyGray
This commit is contained in:
parent
69b5307b06
commit
6689dcc862
@ -1,5 +1,5 @@
|
||||
module Nri.Ui.Text.V5 exposing
|
||||
( caption, mediumBody, smallBody, smallBodyGray
|
||||
( caption, mediumBody, mediumBodyGray, smallBody, smallBodyGray
|
||||
, ugMediumBody, ugSmallBody
|
||||
, Attribute, noBreak, css
|
||||
, noWidow
|
||||
@ -48,7 +48,7 @@ API. See the Nri.Ui.Heading.V2 docs for details.
|
||||
|
||||
## Paragraph styles
|
||||
|
||||
@docs caption, mediumBody, smallBody, smallBodyGray
|
||||
@docs caption, mediumBody, mediumBodyGray, smallBody, smallBodyGray
|
||||
|
||||
|
||||
## User-authored content blocks:
|
||||
@ -142,6 +142,13 @@ mediumBody attributes content =
|
||||
content
|
||||
|
||||
|
||||
{-| `mediumBody`, but with a lighter gray color than the default.
|
||||
-}
|
||||
mediumBodyGray : List Attribute -> List (Html msg) -> Html msg
|
||||
mediumBodyGray attributes content =
|
||||
mediumBody (css [ Css.color gray45 ] :: attributes) content
|
||||
|
||||
|
||||
{-| This is some small body copy.
|
||||
-}
|
||||
smallBody : List Attribute -> List (Html msg) -> Html msg
|
||||
|
Loading…
Reference in New Issue
Block a user