rtfeldman/elm-css

Document how to introduce elm-css to an existing project

Ouverte

#388 ouverte le 27 mars 2018

 (3 commentaires) (3 réactions) (0 personne assignée)Elm (198 forks)github user discovery
help wanted

Métriques du dépôt

Stars
 (1 259 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur