CSS utility classes for branding
253 | 23 | 26 |
---|---|---|
bytes | selectors | declarations |
With npm
npm install --save-dev branding
git clone https://github.com/tachyons-css/branding
Using with PostCSS
Import the css module
@import "branding";
Then process the CSS using the tachyons-cli
$ npm i -g tachyons-cli
$ tachyons-cli path/to/css-file.css > dist/t.css
The built CSS is located in the css
directory. It contains an unminified and minified version.
You can either cut and paste that css or link to it directly in your html.
<link rel="stylesheet" href="path/to/module/css/branding">
The source CSS files can be found in the src
directory.
Running $ npm start
will process the source CSS and place the built CSS in the css
directory.
.primary { color: #07c; }
.bg-primary { background-color: #07c; }
.border-primary { border-color: #07c; }
.secondary { color: #001f3f; }
.bg-secondary { background-color: #001f3f; }
.border-secondary { border-color: #001f3f; }
.tertiary { color: #FFDC00; }
.bg-tertiary { background-color: #FFDC00; }
.border-tertiary { border-color: #FFDC00; }
.primary-contrast { color: #fff; }
.bg-primary-contrast { background-color: #fff; }
.border-primary-contrast { border-color: #fff; }
.secondary-contrast { color: #fff; }
.bg-secondary-contrast { background-color: #fff; }
.border-secondary-contrast { border-color: #fff; }
.tertiary-contrast { color: #444; }
.bg-tertiary-contrast { background-color: #444; }
.border-tertiary-contrast { border-color: #444; }
.bg-header { background-color: #fafafa; }
.header { color: #444; }
body { background-color: #fff; color: #444; }
a { color: #07c; text-decoration: none; }
a:hover { color: #07a; text-decoration: underline; }
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
MIT