compass/doc-src/content/help/tutorials/getting_started.markdown
2011-04-28 10:13:38 -04:00

1.2 KiB

title layout crumb classnames
Getting Started tutorial Getting Started
tutorial

Getting Started

Installing Ruby

Windows Mac, Linx, *inx

Installing Compass

Once Ruby is installed open your terminal and run the following:

  1. gem update --system
  2. gem install compass

Creating your first Compass project

Stand Alone

See the install page for more details

To create a new Compass stand alone project run compass create <project_name> You should see the following output:

directory my_project/
directory my_project/sass/
directory my_project/stylesheets/
   create my_project/config.rb 
   create my_project/sass/screen.scss 
   create my_project/sass/print.scss 
   create my_project/sass/ie.scss 
   create my_project/stylesheets/ie.css 
   create my_project/stylesheets/print.css 
   create my_project/stylesheets/screen.css

Rails

  1. Goto your rails root directory cd <rails_dorectory>
  2. Run the compass initalizer command compass init rails .

Starting the Compass watcher

To start the compass watcher run compass watch from your projects root directory