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 ...

Get Sass and Compass in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.