From the course: Web Development with Elm

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Type safe CSS with elm-css

Type safe CSS with elm-css - Elm Tutorial

From the course: Web Development with Elm

Type safe CSS with elm-css

- [Instructor] This video is about Type Safe CSS with elm-css. We're gonna take a look at elm-css and I'm gonna show you how you can integrate elm-css into your application. Elm-css is distributed both via npm and Elm Package Manager and we're gonna have to install the elm-css package from npm so we can compile the stylesheets. And also we're going to have to install elm-css into our app as an dependency so we can use all of these helpers that allow us to write the stylesheets. Let's go ahead and do that. First I'm gonna go ahead and install elm-css as a global dependency from npm to get the CLI tool from compilation of the stylesheets. Okay, and I'm gonna install the packages. This package is developed by Richard Feldman so I'm gonna use his GitHub handle to namespace the package name. First I'm gonna install elm-css. And also I'm gonna need another package called elm-css helpers. And now I'm actually ready to start working with elm-css. First I'm gonna go ahead and import the new…

Contents