Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thoughtbot/bitters
Add a dash of pre-defined style to your Bourbon.
https://github.com/thoughtbot/bitters
bitters bourbon bourbon-family css sass scaffold scaffold-styles scss
Last synced: 19 days ago
JSON representation
Add a dash of pre-defined style to your Bourbon.
- Host: GitHub
- URL: https://github.com/thoughtbot/bitters
- Owner: thoughtbot
- License: mit
- Created: 2013-02-11T18:24:43.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2021-09-24T16:02:48.000Z (about 3 years ago)
- Last Synced: 2024-05-22T01:03:06.993Z (6 months ago)
- Topics: bitters, bourbon, bourbon-family, css, sass, scaffold, scaffold-styles, scss
- Language: HTML
- Homepage: https://thoughtbot.com
- Size: 5.64 MB
- Stars: 1,391
- Watchers: 73
- Forks: 142
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
## Scaffold styles, variables and structure for web projects.
Bitters helps designers start projects faster by defining a basic set of CSS and Sass
variables, default element style and project structure. It’s been specifically
designed for use within web applications. Bitters should live in your project’s
root Sass directory and we *encourage* you to modify and extend it to meet your
project's needs.Bitters is made to work alongside a CSS reset or style-normalizer; not replace
one. We like to use [Normalize].[Normalize]: https://github.com/necolas/normalize.css/
### Helpful Links
- [Change log](CHANGELOG.md)
- [Twitter](https://twitter.com/bourbonsass)
- [Stack Overflow](https://stackoverflow.com/questions/tagged/bitters)## Table of Contents
- [Requirements](#requirements)
- [Installation](#installation)
- [Using Bitters](#using-bitters)
- [Command Line Interface](#command-line-interface)
- [Contributing](#contributing)
- [License](#license)
- [About](#about)## Requirements
- [Sass] 3.4+ or [LibSass] 3.3+
- Ruby 1.9.3+ (required to install Bitters from the command line)[Sass]: https://github.com/sass/sass
[LibSass]: https://github.com/sass/libsass## Installation
1. Install the Bitters gem using the [RubyGems] package manager:
```bash
gem install bitters
```1. Install the Bitters library into the current directory by running the
following command at the command-line. If you’re using Ruby on Rails, run the
command in `app/assets/stylesheets`:```bash
bitters install
```A `base` directory will be generated which contains all of the Bitters
files.1. Import Bitters in your `application.css.scss` or main manifest
file. All additional stylesheets should be imported below Bitters.```scss
@import "base/base";
```1. Once Bitters is set up, you can begin to import your styles
below them.```scss
@import "base/base";
@import "my-project-styles";
…
```[RubyGems]: https://rubygems.org
## Using Bitters
### Sass structure & default style
The Bitters directory (`base/`) should contain styles for all the basic elements
used throughout the project. Add code to the existing files or add new files.
Customize Bitters for your site as you see fit.### Variables
This houses all variables that are used, or will be used, in more than one file
in your site.### Typography
All type is based on a `font-size` of `100%`, set on the `html` element.
### Lists
All lists have stripped out styles. No bullets, no left padding.
### Forms
Adds basic styles all form elements. The variables at the top of the file all
inherit from the variables file but make it really easy to be overridden.### Buttons
Basic style for `button` and `input[type="submit"]`. Base button styles can be
changed by modifying the styles applied to `button` as well as `[type='button']`,
`[type='reset']`, and `[type='submit']` in the `base/_buttons.scss` file.## Command Line Interface
```bash
bitters [options]
```### Options
| Option | Description |
| :---------------- | :------------------------ |
| `-h`, `--help` | Show help |
| `-v`, `--version` | Show the version number |
| `--path` | Specify a custom path |
| `--force` | Force install (overwrite) |### Commands
| Command | Description |
| :---------------- | :---------------------------------------------------- |
| `bitters install` | Install Bitters into the current directory |
| `bitters reset` | Reset Bitters |
| `bitters remove` | Removes Bitters from the current directory |
| `bitters help` | Show help |
| `bitters version` | Show the version number |## Contributing
See the [contributing] document. Thank you, [contributors]!
[contributing]: CONTRIBUTING.md
[contributors]: https://github.com/thoughtbot/bitters/graphs/contributors## License
Bitters is copyright © 2013-2019 [thoughtbot, inc.][thoughtbot] It is free
software, and may be redistributed under the terms specified in the [license].[license]: LICENSE.md
## About
Bitters is maintained by the thoughtbot design team. It is funded by
[thoughtbot, inc.][thoughtbot] and the names and logos for thoughtbot are
trademarks of thoughtbot, inc.[![thoughtbot][thoughtbot-logo]][thoughtbot]
We love open-source software! See [our other projects][community] or
[hire us][hire] to design, develop, and grow your product.[thoughtbot]: https://thoughtbot.com?utm_source=github
[thoughtbot-logo]: http://presskit.thoughtbot.com/images/thoughtbot-logo-for-readmes.svg
[community]: https://thoughtbot.com/community?utm_source=github
[hire]: https://thoughtbot.com/hire-us?utm_source=github