<commit_before># Sass with compass
Cli container already contains `ruby`, `bundler`.

**Create Gemfile in theme folder**

Example:
```ruby
source "https://rubygems.org"
gem 'sass', '~>3.4.0'
gem 'compass'
gem 'bootstrap-sass', '~>3.2.0'
```

**Every developer runs `bundle install` to pull necessary gem dependencies**

This command should be run in the folder with Gemfile:
> fin exec bundle install

There are two folder (`.bundle`, `.bundler`) and a file (`Gemfile.lock`) will be created.
Please add this directories (`.bundle`/`.bundler`) to `.gitignore`

**Compile sass**

Please run in the theme folder:
> fin exec bundle exec compass compile

This is very important, do not run `compass compile` directly, run it via `bundle exec` so the proper gem versions are used (defined in the Gemfile).
Also you can run watcher to keep your CSS files up to date as changes are made:
> fin exec bundle exec compass watch<commit_msg>Update sass.md<commit_after># Sass with compass
Cli container already contains `ruby`, `bundler`.

## Create Gemfile in theme folder

Example:
```ruby
source "https://rubygems.org"
gem 'sass', '~>3.4.0'
gem 'compass'
gem 'bootstrap-sass', '~>3.2.0'
```

## Install tools

**Every developer runs `bundle install` to pull necessary gem dependencies**

This command should be run in the folder with Gemfile:

```
fin exec bundle install
```

There are two folder (`.bundle`, `.bundler`) and a file (`Gemfile.lock`) will be created.
Please add this directories (`.bundle`/`.bundler`) to `.gitignore`

## Compile SASS

Run in the theme folder:

```
fin exec bundle exec compass compile
```

This is important not run `compass compile` directly, but run it via `bundle exec` so that proper gem versions were used (defined in the Gemfile).

## Compass watcher

You can run watcher to keep your CSS files up to date as changes are made:

```
fin exec bundle exec compass watch --poll
```
{'fraction_non_alphanumeric': 0.11379129522810698, 'fraction_numerical': 0.006292606187729418, 'mean_word_length': 4.514450867052023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6382875', 'n_tokens_mistral': 581, 'n_tokens_neox': 558, 'n_words': 270}