Skip to Main Content
Sass and Compass in Action
book

Sass and Compass in Action

by Natalie Weizenbaum, Chris Eppstein, Brandon Mathis, Wynn Netherland
July 2013
Intermediate to advanced content levelIntermediate to advanced
240 pages
7h 5m
English
Manning Publications
Content preview from Sass and Compass in Action

Appendix B. Getting started with Compass

B.1. Create a new project

To start using Compass in a new project, open up your terminal and run the following:

$ compass create my-project

This will create the my-project directory if it doesn’t already exist and fill it with the following files:

my-project/
  config.rb
  - sass/
    - ie.scss
    - print.scss
    - screen.scss
  - stylesheets/
    - ie.css
    - print.css
    - screen.css

If you don’t pass a directory to the compass create command, it’ll use your current directory.

In config.rb, you’ll make changes to Compass configurations like asset locations and compression level (more on that in a moment). The sass directory contains some starter stylesheets that you can edit, rename, or toss out completely, but this is where ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Introducing Dart Sass: A Practical Introduction to the Replacement for Sass, Built on Dart

Introducing Dart Sass: A Practical Introduction to the Replacement for Sass, Built on Dart

Alex Libby
Mastering Sass

Mastering Sass

Luke Watts
Jump Start Sass

Jump Start Sass

Hugo Giraudel, Miriam Suzanne

Publisher Resources

ISBN: 9781617290145Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link