We, the maintainers of Bourbon, would like you to know what to expect when interacting with this project's repo.
As a user of Bourbon, you can expect care to be put into official releases.
The maintainers cannot guarantee that the master
branch will have the same
API forever.
If you review pull requests or comment on issues, you are expected to abide by our code of conduct.
As a contributor, submitting a pull request or opening an issue, you can expect an initial response from a maintainer within two weeks. The maintainers cannot guarantee that we will accept all feature requests, and may fix bugs in ways other than how the contributor suggests. You are expected to abide by our code of conduct.
As a maintainer, you can merge pull requests (even your own) at any time. Maintainers are encouraged to request code review from others at thoughtbot or any relevant peers. You are expected to abide by our code of conduct.
Only members of thoughtbot may be maintainers.
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 stylelint to lint our CSS and Sass. It's configuration can
be found in .stylelintrc.json
. You can run stylelint from the command line via
npm run stylelint
, or integrate it with your text editor.
We use SassDoc to document Bourbon. Annotations should be ordered:
@link
@see
@type
@argument
@content
@property
@return
@example
@require
@access
@since
@author
@deprecated
@todo