Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can elm-css be used in Elm files? #83

Closed
kittykatattack opened this issue Feb 25, 2016 · 4 comments
Closed

Can elm-css be used in Elm files? #83

kittykatattack opened this issue Feb 25, 2016 · 4 comments

Comments

@kittykatattack
Copy link

Hello!

Just a quick question: is elm-css intended to be a stand-alone, or can it be used in Elm files as a substitute for Html.Attributes?

@igrep
Copy link

igrep commented Feb 26, 2016

I'm not sure this is officially supported, but https://github.com/rtfeldman/elm-css/blob/master/src/Html/CssHelpers.elm seems to help you.
I learned by searching this repository with "Attribute".

@rtfeldman
Copy link
Owner

Not for all attributes, but yeah, that's the idea - you import the helpers and then they shadow id, class, and classList with drop-in replacements that work with your union types and/or namespaces.

@kittykatattack
Copy link
Author

Thanks, I will try that!
I'm doing my first big production Elm app, and the only headache has been the silent failure of CSS code.
This library will really help :)

@rtfeldman
Copy link
Owner

Since this has been answered, I'm gonna close it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants