rtfeldman/elm-css

Document how to introduce elm-css to an existing project

開放

#388 建立於 2018年3月27日

 (3 則留言) (3 個反應) (0 位負責人)Elm (198 個分叉)github user discovery
help wanted

倉庫指標

星標
 (1,259 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Hello,

Currently I have a project that heavily uses Html, Html.Attributes and Html.Events. We have different html elements with class attributes and we have bunch of css files in the project which are getting bigger and bigger.

I wanted to introduce elm-css to the project and I was willing to have different styles in different files and able to import them to our existing elements. I am also using some external packages that generate Html elements.

Here is my question:

Do I have to replace each element's Html imports with Html.Styled ones? And what should I do when I have incompatiblity that generate Type Mismatch? For example when I use Html.Styled.Map, I got error because the plugin that generates element is using only Html, not Html.Styled.

Thank you very much.

貢獻者指南