Global styles that are responsible for the visualas / aesthetic of the elm-antd components. You must call defaultStyles
or createThemedStyles
at the root of your Elm project.
createThemedStyles : Ant.Theme.Theme -> Html msg
Creates a global stylesheet based on a custom Theme. See Ant.Theme documentation for more info on Theme
and creating themes.
You must call createThemedStyles
at the root of your Elm project!
div []
[ Ant.Css.createThemedStyles theme
-- This button will now be themed according to the primaryColor color you chose!
, Btn.toHtml <| button "Hello, elm-antd!"
]
defaultStyles : Html msg
The default stylesheet that adheres to the Antd specification.
You must call defaultStyles
at the root of your Elm project!
div []
[ Ant.Css.defaultTheme
-- This button will now be themed according to the primaryColor color you chose!
, Btn.toHtml <| button "Hello, elm-antd!"
]