Join John Riviello for an in-depth discussion in this video Manage node-sass extensions with Eyeglass, part of CSS to Sass: Converting an Existing Site.
- One thought you may have had…as we were adding tools like include media and bourbon.…Is that adding Sass tools with node-sass…requires a bit of setup that seems slightly cumbersome…since you have to install them…and then figure out what path to add…to the include paths in our grunt file.…And you'd be right to think that.…To solve that Chris Eppstein, the creator of Compass,…the popular Ruby Sass framework,…has created a system similar to Compass…for node-sass called Eyeglass.…In this lesson, I'll show you how to install Eyeglass,…configure it, as well as find other Eyeglass modules…to easily drop into your node-sass projects.…
To get started using Eyeglass,…you first have to install from npm.…So let's open up our terminal.…And run npm install eyeglass…dash dash save dash dev…Once that installs let's go to Sublime Text…and open up our grunt file.…Now at the top of the grunt file…after our path variable,…let's create a variable for Eyeglass.…
And we'll require Eyeglass here.…Eyeglass works by wrapping the node-sass options…
In these Sass tutorials, students will learn the benefits of libSass over the original Ruby Sass, and set up a Sass-friendly development environment with Node.js and Grunt. A unique aspect of this course is learning how to handle challenges specific to integrating Sass with an existing website, such as new debugging workflows and the variables and mixins worth the effort to define. Author John Riviello also introduces a few Sass tools that speed up media query handling, automatic browser prefixing, and sprite generation. At the end of the course, he shows how your setup work pays off, styling a whole new section of the practice site in just 15 minutes.
- Deciding between Ruby Sass or libSass
- Installing Node.js and Grunt-Sass
- Converting CSS to SCSS
- Creating core variables and mixins
- Abstracting units and values
- Applying advanced mixins
- Generating image sprites with eyeglass-spriting
- Creating high-DPI sprites
- Building new styles
Skill Level Intermediate
Design the Web: Pie Charts with CSSwith Chris Converse25m 29s Beginner
1. Getting Started
2. Creating Core Variables and Mixins
3. Useful Sass Tools
Use a mixin library4m 58s
4. Applying What We've Learned
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.