You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See attached example for how to setup elm-css with lamdera.
First install elm-css through lamdera.
lamdera install rtfeldman/elm-css
Then modify your Frontend.elm file (as of Lamdera 1.0)
-- Additional ImportsimportCssimportCss.GlobalimportHtml.StyledasHtmlexposing (..)
importHtml.Styled.AttributesasAttr-- Remove existing Html imports-- snip-- snipview:Model->Browser.DocumentFrontendMsgview model ={ title ="", body =[Html.toUnstyled <|Html.div [Attr.css [Css.backgroundColor (Css.rgb 100255100)]][ text "Hello World!"]]}
I'm quite new to elm. I was wondering if I could use elm-css with lamdera. Has anyone tried it?
The text was updated successfully, but these errors were encountered: