Repository: mrmrs/colors Branch: main Commit: 5da3127136d5 Files: 16 Total size: 22.1 KB Directory structure: gitextract_aovdupsj/ ├── .gitignore ├── .npmignore ├── LICENSE.md ├── README.md ├── alfred/ │ └── clrs.cc.alfredworkflow ├── assets/ │ ├── clrs.cc.clr │ ├── colors-css.aco │ ├── colors-css.ase │ └── colors-css.gpl ├── css/ │ └── colors.css ├── index.html ├── js/ │ └── colors.js ├── package.json └── src/ ├── _skins.css ├── _variables.css └── colors.css ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ node_modules/ ================================================ FILE: .npmignore ================================================ bower.json node_modules ================================================ FILE: LICENSE.md ================================================ # License The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # [colors.css 3.0.0](http://clrs.cc/) Better default colors for the web. A collection of skin classes for faster prototyping and nicer looking sites. [Customize your own defaults here.](https://components.ai/theme/DIgsnuGL20I1ZwsNP3YY) #### Stats 903 | 85 | 85 ---|---|--- bytes | selectors | declarations ## Installation #### With [npm](https://npmjs.com) ``` npm install --save-dev colors.css ``` #### With Git ``` git clone https://github.com/tachyons-css/colors.css ``` ## Usage #### Using with [PostCSS](https://github.com/postcss/postcss) Import the css module ```css @import "colors.css"; ``` Then process the CSS using the [`tachyons-cli`](https://github.com/tachyons-css/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 { border-color: #FFFFFF; } .border--gray { border-color: #AAAAAA; } .border--silver { border-color: #DDDDDD; } .border--black { border-color: #111111; } /* Fills for SVG */ .fill-navy { fill: #001F3F; } .fill-blue { fill: #0074D9; } .fill-aqua { fill: #7FDBFF; } .fill-teal { fill: #39CCCC; } .fill-olive { fill: #3D9970; } .fill-green { fill: #2ECC40; } .fill-lime { fill: #01FF70; } .fill-yellow { fill: #FFDC00; } .fill-orange { fill: #FF851B; } .fill-red { fill: #FF4136; } .fill-fuchsia { fill: #F012BE; } .fill-purple { fill: #B10DC9; } .fill-maroon { fill: #85144B; } .fill-white { fill: #FFFFFF; } .fill-gray { fill: #AAAAAA; } .fill-silver { fill: #DDDDDD; } .fill-black { fill: #111111; } /* Strokes for SVG */ .stroke-navy { stroke: #001F3F; } .stroke-blue { stroke: #0074D9; } .stroke-aqua { stroke: #7FDBFF; } .stroke-teal { stroke: #39CCCC; } .stroke-olive { stroke: #3D9970; } .stroke-green { stroke: #2ECC40; } .stroke-lime { stroke: #01FF70; } .stroke-yellow { stroke: #FFDC00; } .stroke-orange { stroke: #FF851B; } .stroke-red { stroke: #FF4136; } .stroke-fuchsia { stroke: #F012BE; } .stroke-purple { stroke: #B10DC9; } .stroke-maroon { stroke: #85144B; } .stroke-white { stroke: #FFFFFF; } .stroke-gray { stroke: #AAAAAA; } .stroke-silver { stroke: #DDDDDD; } .stroke-black { stroke: #111111; } ``` ### More Open Source Color Systems - [LCH - Natural](https://components.ai/theme/LSFBhQYkSnSDqZ1qzJjN) - [LCH - B-Spline](https://components.ai/theme/eVFeV340xXtXCv4Ne3Wx) - [LCH - Linear](https://components.ai/theme/XIM7Jo6uxkBEgnfbqrxK) - [LCH - Monotone](https://components.ai/theme/5t1N11PUhqqsxmLudFpY) - [LAB - Natural](https://components.ai/theme/A2zudJ4qzc4bLoUVBAZ3) - [LAB - B-Spline](https://components.ai/theme/N9DlRkNZZagzZJTDi4Wr) - [LAB - Linear](https://components.ai/theme/Jg0GRCvBLm6RbjeOCzLs) - [LAB - Monotone](https://components.ai/theme/LZ23GsXttzH7Q3Y0OIHM) - [RGB - Natural](https://components.ai/theme/K4C98oSFrgkCLOoQhXbJ) - [RGB - B-Spline](https://components.ai/theme/IDL04FzjDpCEOg5NiW6i) - [RGB - Linear](https://components.ai/theme/eab3gpmHglpIYDIUEYcl) - [RGB - Monotone](https://components.ai/theme/3RD5FJ1wOaGAjmV2WE2j) ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request ## Authors * [mrmrs](http://mrmrs.cc) * [johno](http://johnotander.com) ## License MIT ================================================ FILE: assets/colors-css.gpl ================================================ GIMP Palette Name: colors.css Columns: 4 # 0 31 63 Navy 0 116 217 Blue 127 219 255 Aqua 57 204 204 Teal 61 153 112 Olive 46 204 64 Green 1 255 112 Lime 255 220 0 Yellow 255 133 27 Orange 255 65 54 Red 133 20 75 Maroon 240 18 190 Fuchsia 177 13 201 Purple 17 17 17 Black 170 170 170 Gray 221 221 221 Silver 255 255 255 White ================================================ FILE: css/colors.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 { border-color: #FFFFFF; } .border--gray { border-color: #AAAAAA; } .border--silver { border-color: #DDDDDD; } .border--black { border-color: #111111; } /* Fills for SVG */ .fill-navy { fill: #001F3F; } .fill-blue { fill: #0074D9; } .fill-aqua { fill: #7FDBFF; } .fill-teal { fill: #39CCCC; } .fill-olive { fill: #3D9970; } .fill-green { fill: #2ECC40; } .fill-lime { fill: #01FF70; } .fill-yellow { fill: #FFDC00; } .fill-orange { fill: #FF851B; } .fill-red { fill: #FF4136; } .fill-fuchsia { fill: #F012BE; } .fill-purple { fill: #B10DC9; } .fill-maroon { fill: #85144B; } .fill-white { fill: #FFFFFF; } .fill-gray { fill: #AAAAAA; } .fill-silver { fill: #DDDDDD; } .fill-black { fill: #111111; } /* Strokes for SVG */ .stroke-navy { stroke: #001F3F; } .stroke-blue { stroke: #0074D9; } .stroke-aqua { stroke: #7FDBFF; } .stroke-teal { stroke: #39CCCC; } .stroke-olive { stroke: #3D9970; } .stroke-green { stroke: #2ECC40; } .stroke-lime { stroke: #01FF70; } .stroke-yellow { stroke: #FFDC00; } .stroke-orange { stroke: #FF851B; } .stroke-red { stroke: #FF4136; } .stroke-fuchsia { stroke: #F012BE; } .stroke-purple { stroke: #B10DC9; } .stroke-maroon { stroke: #85144B; } .stroke-white { stroke: #FFFFFF; } .stroke-gray { stroke: #AAAAAA; } .stroke-silver { stroke: #DDDDDD; } .stroke-black { stroke: #111111; } ================================================ FILE: index.html ================================================ Colors

Examples

Backgrounds

NAVY

#001f3f

BLUE

#0074d9

AQUA

#7fdbff

TEAL

#39cccc

OLIVE

#3d9970

GREEN

#2ecc40

LIME

#01ff70

YELLOW

#ffdc00

ORANGE

#ff851b

RED

#ff4136

MAROON

#85144b

FUCHSIA

#f012be

PURPLE

#b10dc9

WHITE

#ffffff

SILVER

#dddddd

GRAY

#aaaaaa

BLACK

#111111

Text

BLUE

#0074d9

AQUA

#7fdbff

TEAL

#39cccc

OLIVE

#3d9970

GREEN

#2ecc40

LIME

#01ff70

YELLOW

#ffdc00

ORANGE

#ff851b

RED

#ff4136

MAROON

#85144b

FUCHSIA

#f012be

PURPLE

#b10dc9

BLACK

#111111

GRAY

#aaaaaa

SILVER

#dddddd

WHITE

#ffffff

================================================ FILE: js/colors.js ================================================ (function() { var colors = { aqua: '#7fdbff', blue: '#0074d9', lime: '#01ff70', navy: '#001f3f', teal: '#39cccc', olive: '#3d9970', green: '#2ecc40', red: '#ff4136', maroon: '#85144b', orange: '#ff851b', purple: '#b10dc9', yellow: '#ffdc00', fuchsia: '#f012be', gray: '#aaaaaa', white: '#ffffff', black: '#111111', silver: '#dddddd' }; if(typeof module !== 'undefined' && typeof module.exports !== 'undefined') { module.exports = colors; } else { window.colors = colors; } })(); ================================================ FILE: package.json ================================================ { "name": "colors.css", "version": "3.0.2", "main": "js/colors.js", "style": "css/colors.css", "homepage": "http://clrs.cc", "description": "Better default colors for the web. A collection of skin classes for faster prototyping and nicer looking sites.", "keywords": [ "colors", "design", "a11y", "postcss", "palette", "css", "oocss" ], "devDependencies": { "tachyons-cli": "^1.3.0" }, "repository": { "type": "git", "url": "http://github.com/mrmrs/colors.git" }, "bugs": { "url": "http://github.com/mrmrs/colors/issues", "email": "hi@mrmrs.cc" }, "author": { "name": "@mrmrs", "email": "hi@mrmrs.cc", "url": "http://mrmrs.cc" }, "contributors": [ { "name": "@mrmrs", "email": "hi@mrmrs.cc" }, { "name": "@ilanbiala" }, { "name": "@kdrdgn", "url": "http://www.twitter.com/kdrdgn" }, { "name": "@tenmilestereo", "url": "http://www.lewiscowper.com" }, { "name": "@nschonni", "email": "nschonni@gmail.com", "url": "http://wet-boew.github.io/" }, { "name": "SiR-DanieL" }, { "name": "@enyo", "email": "m@tias.me", "url": "http://colorglare.com" } ], "engines": { "node": ">=0.10.22" }, "scripts": { "start": "tachyons src/colors.css > css/colors.css && tachyons src/colors.css --minify > css/colors.min.css && tachyons src/colors.css --generate-docs --package=../../package.json > readme.md" }, "license": "MIT" } ================================================ FILE: src/_skins.css ================================================ /* SKINS - Backgrounds - Colors - Border colors - SVG fills - SVG Strokes */ /* Backgrounds */ .bg-navy { background-color: var(--navy); } .bg-blue { background-color: var(--blue); } .bg-aqua { background-color: var(--aqua); } .bg-teal { background-color: var(--teal); } .bg-olive { background-color: var(--olive); } .bg-green { background-color: var(--green); } .bg-lime { background-color: var(--lime); } .bg-yellow { background-color: var(--yellow); } .bg-orange { background-color: var(--orange); } .bg-red { background-color: var(--red); } .bg-fuchsia { background-color: var(--fuchsia); } .bg-purple { background-color: var(--purple); } .bg-maroon { background-color: var(--maroon); } .bg-white { background-color: var(--white); } .bg-gray { background-color: var(--gray); } .bg-silver { background-color: var(--silver); } .bg-black { background-color: var(--black); } /* Colors */ .navy { color: var(--navy); } .blue { color: var(--blue); } .aqua { color: var(--aqua); } .teal { color: var(--teal); } .olive { color: var(--olive); } .green { color: var(--green); } .lime { color: var(--lime); } .yellow { color: var(--yellow); } .orange { color: var(--orange); } .red { color: var(--red); } .fuchsia { color: var(--fuchsia); } .purple { color: var(--purple); } .maroon { color: var(--maroon); } .white { color: var(--white); } .silver { color: var(--silver); } .gray { color: var(--gray); } .black { color: var(--black); } /* 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: var(--navy); } .border--blue { border-color: var(--blue); } .border--aqua { border-color: var(--aqua); } .border--teal { border-color: var(--teal); } .border--olive { border-color: var(--olive); } .border--green { border-color: var(--green); } .border--lime { border-color: var(--lime); } .border--yellow { border-color: var(--yellow); } .border--orange { border-color: var(--orange); } .border--red { border-color: var(--red); } .border--fuchsia { border-color: var(--fuchsia); } .border--purple { border-color: var(--purple); } .border--maroon { border-color: var(--maroon); } .border--white { border-color: var(--white); } .border--gray { border-color: var(--gray); } .border--silver { border-color: var(--silver); } .border--black { border-color: var(--black); } /* Fills for SVG */ .fill-navy { fill: var(--navy); } .fill-blue { fill: var(--blue); } .fill-aqua { fill: var(--aqua); } .fill-teal { fill: var(--teal); } .fill-olive { fill: var(--olive); } .fill-green { fill: var(--green); } .fill-lime { fill: var(--lime); } .fill-yellow { fill: var(--yellow); } .fill-orange { fill: var(--orange); } .fill-red { fill: var(--red); } .fill-fuchsia { fill: var(--fuchsia); } .fill-purple { fill: var(--purple); } .fill-maroon { fill: var(--maroon); } .fill-white { fill: var(--white); } .fill-gray { fill: var(--gray); } .fill-silver { fill: var(--silver); } .fill-black { fill: var(--black); } /* Strokes for SVG */ .stroke-navy { stroke: var(--navy); } .stroke-blue { stroke: var(--blue); } .stroke-aqua { stroke: var(--aqua); } .stroke-teal { stroke: var(--teal); } .stroke-olive { stroke: var(--olive); } .stroke-green { stroke: var(--green); } .stroke-lime { stroke: var(--lime); } .stroke-yellow { stroke: var(--yellow); } .stroke-orange { stroke: var(--orange); } .stroke-red { stroke: var(--red); } .stroke-fuchsia { stroke: var(--fuchsia); } .stroke-purple { stroke: var(--purple); } .stroke-maroon { stroke: var(--maroon); } .stroke-white { stroke: var(--white); } .stroke-gray { stroke: var(--gray); } .stroke-silver { stroke: var(--silver); } .stroke-black { stroke: var(--black); } ================================================ FILE: src/_variables.css ================================================ /* VARIABLES - Cool - Warm - Gray Scale */ :root { --aqua: #7FDBFF; --blue: #0074D9; --navy: #001F3F; --teal: #39CCCC; --green: #2ECC40; --olive: #3D9970; --lime: #01FF70; --yellow: #FFDC00; --orange: #FF851B; --red: #FF4136; --fuchsia: #F012BE; --purple: #B10DC9; --maroon: #85144B; --white: #FFFFFF; --silver: #DDDDDD; --gray: #AAAAAA; --black: #111111; } ================================================ FILE: src/colors.css ================================================ /* COLORS Better default colors for the web */ @import './_variables'; @import './_skins';