{"id":13397279,"url":"https://github.com/oddbird/accoutrement-color","last_synced_at":"2025-10-07T13:20:54.667Z","repository":{"id":22613486,"uuid":"25955808","full_name":"oddbird/accoutrement-color","owner":"oddbird","description":"Color helpers","archived":false,"fork":false,"pushed_at":"2018-04-04T16:29:06.000Z","size":1141,"stargazers_count":32,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-01T20:50:04.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oddbird.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-30T05:15:15.000Z","updated_at":"2024-03-03T03:38:16.000Z","dependencies_parsed_at":"2022-08-24T13:30:57.992Z","dependency_job_id":null,"html_url":"https://github.com/oddbird/accoutrement-color","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/oddbird/accoutrement-color","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Faccoutrement-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Faccoutrement-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Faccoutrement-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Faccoutrement-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oddbird","download_url":"https://codeload.github.com/oddbird/accoutrement-color/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Faccoutrement-color/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263863643,"owners_count":23521629,"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-07-30T18:01:14.862Z","updated_at":"2025-10-07T13:20:49.632Z","avatar_url":"https://github.com/oddbird.png","language":"CSS","funding_links":[],"categories":["CSS"],"sub_categories":[],"readme":"Accoutrement-Color\n==================\n\n**Sass color-palette management by [OddBird][oddbird]…**\n\n- Organize all your colors into a single map, or set of maps\n- Document color relationships directly in the code\n- Automate [WCAG-appropriate][wcag] contrast checking\n- Generate color-palette documentation with [Herman][Herman]\n\n[oddbird]: http://oddbird.net/\n[wcag]: http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef\n\nOddBird's Accoutrement toolkits are designed around the idea\nthat code should be meaningful to both humans and machines –\nopening the door for automation,\nwhile improving or maintaining readability.\nThese tools integrate with [Herman][Herman],\nour automated living pattern-library generator\nbuilt on [SassDoc][SassDoc].\n\n[Herman]: http://oddbird.net/herman/\n[SassDoc]: http://sassdoc.com/\n\n\n**Other Accoutrement include…**\n\n- [Init](http://oddbird.net/accoutrement-init/)\n  provides lightweight browser-normalization.\n- [Scale](http://oddbird.net/accoutrement-scale/)\n  helps manage scale patterns like font-sizes, margins, and gutters.\n- [Type](http://oddbird.net/accoutrement-type/)\n  provides webfont management tools,\n  and other typography helpers.\n- [Layout](http://oddbird.net/accoutrement-layout/)\n  provides layout utilities such as\n  box-sizing, intrinsic ratios, z-index management,\n  named media-queries, and a clearfix.\n\n\nQuick Start: Colors\n-------------------\n\nInstall the package with npm or yarn:\n\n```bash\nnpm install accoutrement-color\nyarn add accoutrement-color\n```\n\nImport the library:\n\n```scss\n@import '\u003cpath-to\u003e/accoutrement-color/sass/color';\n```\n\nEstablish your color palette:\n\n```scss\n$colors: (\n  // set explicit colors\n  'brand-pink': hsl(330, 85%, 62%),\n  'brand-light': #ddf,\n  'brand-dark': #224,\n\n  // reference existing colors\n  'background': 'brand-light',\n  'border': 'brand-dark',\n\n  // make adjustments as needed, using color functions\n  'link': 'brand-pink' ('shade': 25%, 'desaturate': 15%),\n);\n```\n\nAccess your colors from anywhere:\n\n```scss\n.example {\n  border-color: color('border');\n}\n```\n\nYou can also define your colors in smaller maps,\nand then add them to the global `$colors` variable\nusing the `merge-color()` function,\nor `add-colors()` mixin.\n\n```scss\n$brand: (\n  'brand-pink': hsl(330, 85%, 62%),\n  'brand-light': #ddf,\n  'brand-dark': #224,\n);\n\n$patterns: (\n  'background': 'brand-light',\n  'border': 'brand-dark',\n  'link': 'brand-pink' ('shade': 25%),\n);\n\n// merge everything into the main $colors map…\n@include add-colors($brand, $patterns);\n```\n\nWe'll also help you calculate WCAG-appropriate color contrasts:\n\n```scss\na:hover {\n  // set a background, and get well-contrasted text\n  @include contrasted('link');\n\n  // or return a contrasting color for use anywhere…\n  border-color: contrast('background');\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddbird%2Faccoutrement-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foddbird%2Faccoutrement-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddbird%2Faccoutrement-color/lists"}