+0
日增长
9,436
stars
508
forks
190
watchers
81
prs
53
issues
4
releases
README
colors.css 3.0.0
Better default colors for the web. A collection of skin classes for faster prototyping and nicer looking sites.
Customize your own defaults here.
Stats
903 | 85 | 85
---|---|---
bytes | selectors | declarations
Installation
With npm
npm install --save-dev colors.css
With Git
git clone https://github.com/tachyons-css/colors.css
Usage
Using with PostCSS
Import the css module
css
@import "colors.css";
Then process the CSS using the tachyons-cli
sh
$ npm i -g tachyons-cli
$ tachyons-cli path/to/css-file.css dist/t.css
Using the 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.
html
Development
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.
The CSS
css
/
COLORS
Better default colors for the web
/
/
VARIABLES
- Cool
- Warm
- Gray Scale
/
/
SKINS
- Backgrounds
- Colors
- Border colors
- SVG fills
- SVG Strokes
/
/ Backgrounds /
.bg-navy { background-color: 001F3F; }
.bg-blue { background-color: 0074D9; }
.bg-aqua { background-color: 7FDBFF; }
.bg-teal { background-color: 39CCCC; }
.bg-olive { background-color: 3D9970; }
.bg-green { background-color: 2ECC40; }
.bg-lime { background-color: 01FF70; }
.bg-yellow { background-color: FFDC00; }
.bg-orange { background-color: FF851B; }
.bg-red { background-color: FF4136; }
.bg-fuchsia { background-color: F012BE; }
.bg-purple { background-color: B10DC9; }
.bg-maroon { background-color: 85144B; }
.bg-white { background-color: FFFFFF; }
.bg-gray { background-color: AAAAAA; }
.bg-silver { background-color: DDDDDD; }
.bg-black { background-color: 111111; }
/ Colors /
.navy { color: 001F3F; }
.blue { color: 0074D9; }
.aqua { color: 7FDBFF; }
.teal { color: 39CCCC; }
.olive { color: 3D9970; }
.green { color: 2ECC40; }
.lime { color: 01FF70; }
.yellow { color: FFDC00; }
.orange { color: FF851B; }
.red { color: FF4136; }
.fuchsia { color: F012BE; }
.purple { color: B10DC9; }
.maroon { color: 85144B; }
.white { color: FFFFFF; }
.silver { color: DDDDDD; }
.gray { color: AAAAAA; }
.black { color: 111111; }
/ Border colors
Use with another border utility that sets border-width and style
i.e .border { border-width: 1px); border-style: solid); }
/
.border--navy { border-color: 001F3F; }
.border--blue { border-color: 0074D9; }
.border--aqua { border-color: 7FDBFF; }
.border--teal { border-color: 39CCCC; }
.border--olive { border-color: 3D9970; }
.border--green { border-color: 2ECC40; }
.border--lime { border-color: 01FF70; }
.border--yellow { border-color: FFDC00; }
.border--orange { border-color: FF851B; }
.border--red { border-color: FF4136; }
.border--fuchsia { border-color: F012BE; }
.border--purple { border-color: B10DC9; }
.border--maroon { border-color: 85144B; }
.border--white { bordeTop issues
#67Add contributors to project page4 comments · 2015-01-20#66Add colors to CDN and provide link on project page3 comments · 2015-01-20#84Automate generation of a11y examples0 comments · 2015-12-01#65Create swatch for Sketch0 comments · 2015-01-20
Latest release
The Future is Here 3.0.0 2015-12-26!giphy-2 Postcss is the future. In the spirit of the year coming to a close, I'm updating this project to represent what is to come in the world of front-end development. The project is less monolithic now. Before - the main repo contained all of the pre-processor partials along with a complicated gulpfile. Now the main build system is just using posts and everything runs with a simple npm start. There are dedicated modules for sass, less, and stylus. Myth has been deprecated. The repo is a lot more simple now. Simple takes time and thought. But I think it's better. Happy Holidays.