By participating in this project, you agree to abide by the thoughtbot code of conduct.
We welcome pull requests from everyone. Here’s a quick guide:
- Fork the repository and clone to your machine.
- Run
bundle install
. - Make sure the tests pass:
bundle exec rake
. - Make your change, following our style guide (below). Write tests. Make sure
the tests pass:
bundle exec rake
. - Write a good commit message. Push to your fork and submit a pull request. If Hound catches style violations, fix them.
- Wait for us. We try to at least comment on pull requests within one week. We may suggest changes.
Bourbon uses Sass’s SCSS syntax and aligns to thoughtbot’s style guides. High-level notes:
- Use two-space indentation (no tabs).
- Use double quotation marks.
- Use hyphens when naming things:
hide-visually
rather thanhide_visually
orhideVisually
. - Use one space between property and value:
width: 20px
rather thanwidth:20px
. - Names should be descriptive and aim for clarity over brevity:
$all-text-inputs-hover
rather than$inputshover
or$alltxthvr
. - Order CSS declarations alphabetically.
- No trailing whitespace.
We use SassDoc to document Bourbon. Annotations should be ordered:
@link
@see
@type
@argument
@content
@property
@return
@example
@require
@access
@since
@author
@deprecated
@todo