{"id":15321880,"url":"https://github.com/codehakase/colors","last_synced_at":"2025-10-09T08:31:58.378Z","repository":{"id":86391968,"uuid":"25694051","full_name":"codehakase/colors","owner":"codehakase","description":"Smarter defaults for colors on the web.","archived":false,"fork":true,"pushed_at":"2014-10-21T13:58:06.000Z","size":811,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-02T09:13:28.051Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://clrs.cc","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mrmrs/colors","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codehakase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-24T15:10:15.000Z","updated_at":"2014-10-24T14:26:07.000Z","dependencies_parsed_at":"2023-02-26T15:35:30.548Z","dependency_job_id":null,"html_url":"https://github.com/codehakase/colors","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehakase%2Fcolors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehakase%2Fcolors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehakase%2Fcolors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehakase%2Fcolors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codehakase","download_url":"https://codeload.github.com/codehakase/colors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235807660,"owners_count":19047985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T09:13:24.065Z","updated_at":"2025-10-09T08:31:53.059Z","avatar_url":"https://github.com/codehakase.png","language":null,"readme":"# COLORS\n\n## Better colors for the web.\n\nView the project page at [http://clrs.cc](http://clrs.cc \"Colors: Better colors for the web.\")\n\n## What is this?\n\nA simple color palette for the web. Let's be honest, out of the box, the color strings that css provides aren't... the tops.\nThis is a set of sass/less/stylus/css variables and css classes that can help fix that with just 647B of minified and gzipped css.\n\n(Uncompressed is just 888B)\n\ncolors.css provides utilities to apply backgrounds, text-color, border colors for both html and svg elements. \n\n# Example\n\n```scss\n.blue {         color: $blue; }\n.bg-blue {      background-color: $blue; }\n.border--blue { border-color: $blue; }\n.fill-blue {    fill: $blue; }\n.stroke-blue {  stroke: $blue; }\n```\n\n## Install colors.css\n\nYou can get the code a few different ways\n\nDownload a zip from this page\n\nClone / fork the repo through git\n```bash\ngit clone git@github.com:mrmrs/colors.git\n```\n\nInstall [through npm](https://www.npmjs.org/package/colors.css)\n```bash\nnpm install --save-dev colors.css\n```\n\nInstall the [ruby gem](http://rubygems.org/gems/clrs)\n```\ngem install clrs\n```\n\n### Using the css\nSimply copy colors.css to your css directory and include the file like so in the head of your html document\n\n```html\n\u003clink rel=\"stylesheet\" href=\"css/colors.css\"\u003e\n```\n\n### Using sass, stylus, less, and myth\n\nIf you'd like to customize colors.css to your liking, you can edit the source in a variety of flavors.\nColors uses [gulp](http://gulpjs.com \"GulpJs - A sweet js taskrunner\") as a taskrunner.\nThere are individual gulp tasks for each preprocessor*\nEach gulp task also comes with automatic vendor prefix support, csslint output, and livereload updates\nbuilt in.\nIt's pretty sweet.\n\nFirst run\n\n```bash\nnpm install -g gulp\n```\n\nThen\n\n```bash\nnpm install\n```\n\nOnce that is complete you can use any preprocessor like so\n\nRecompile everything imported in ./sass/colors.scss to css/colors.css\neverytime a file in the ./sass directory is updated\n```bash\ngulp sass\n```\n\nRecompile everything imported in ./stylus/colors.styl to ./css/colors.css\neverytime a file in the ./stylus directory is updated\n```bash\ngulp stylus\n```\n\nRecompile myth/colors.css to css/colors.css everytime myth/colors.css is updated\n```bash\ngulp myth\n```\n\nIf you would like to minify ./css/colors.css to .css/colors.min.css you can just run\n```bash\ngulp minify\n```\n\n* Except for less which doesn't seem well supported with gulp yet. Hopefully we can\nbetter support less soon.\n\n## Directory structure\n```\n\n    colors/\n          ├── README.md\n          ├── bower.json\n          ├── coffee\n          │   └── colors.coffee\n          ├── css\n          │   ├── colors.css\n          │   └── colors.min.css\n          ├── gulpfile.js\n          ├── index.html\n          ├── js\n          │   └── colors.js\n          ├── less\n          │   ├── _skins.less\n          │   ├── _variables.less\n          │   └── colors.less\n          ├── myth\n          │   └── colors.css\n          ├── package.json\n          ├── sass\n          │   ├── _skins.scss\n          │   ├── _variables.scss\n          │   └── colors.scss\n          ├── site.css\n          └── stylus\n              ├── colors.styl\n              ├── skins.styl\n              └── variables.styl\n\n```\n\n# Author\n[MRMRS](http://mrmrs.cc \"Adam Morse - Designer + Developer in SF\")\n\n\n# License\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 @mrmrs\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodehakase%2Fcolors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodehakase%2Fcolors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodehakase%2Fcolors/lists"}