{"id":18496486,"url":"https://github.com/oddbird/accoutrement-type","last_synced_at":"2025-04-08T22:32:15.161Z","repository":{"id":22615721,"uuid":"25958091","full_name":"oddbird/accoutrement-type","owner":"oddbird","description":"Font helpers","archived":false,"fork":false,"pushed_at":"2024-01-29T16:36:47.000Z","size":1316,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-29T18:48:44.502Z","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,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"oddbird","open_collective":"oddbird-open-source"}},"created_at":"2014-10-30T06:35:46.000Z","updated_at":"2019-01-20T04:39:02.000Z","dependencies_parsed_at":"2024-04-16T01:26:10.227Z","dependency_job_id":"a0e288a9-7ef3-40e3-92df-4ef8e73835e6","html_url":"https://github.com/oddbird/accoutrement-type","commit_stats":{"total_commits":55,"total_committers":3,"mean_commits":"18.333333333333332","dds":"0.10909090909090913","last_synced_commit":"97ea08607d10a4187b83a78f40494a24912376f9"},"previous_names":["oddbird/accoutrement-fonts"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Faccoutrement-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Faccoutrement-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Faccoutrement-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Faccoutrement-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oddbird","download_url":"https://codeload.github.com/oddbird/accoutrement-type/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182424,"owners_count":20897381,"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-11-06T13:29:40.556Z","updated_at":"2025-04-08T22:32:15.128Z","avatar_url":"https://github.com/oddbird.png","language":"CSS","funding_links":["https://github.com/sponsors/oddbird","https://opencollective.com/oddbird-open-source"],"categories":[],"sub_categories":[],"readme":"Accoutrement-Type\n=================\n\nSass typography and webfont helpers\nby [OddBird][oddbird].\nGather all your fonts into a single map,\naccess them by name,\nand easily import the webfonts.\nAlso includes helpers for accessibility\nand pseudo-elements.\n\n[oddbird]: http://oddbird.net/\n\n\nMore Accoutrement Tools\n-----------------------\n\n- [Init](http://oddbird.net/accoutrement-init/)\n  provides light-weight browser-normalization.\n- [Color](http://oddbird.net/accoutrement-color/)\n  provides color-palette management and contrast-ratio utilities.\n- [Scale](http://oddbird.net/accoutrement-scale/)\n  helps manage scale patterns like font-sizes, margins, and gutters.\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\n-----------\n\nInstall the package with npm or yarn:\n\n```bash\nnpm install accoutrement-type\nyarn add accoutrement-type\n```\n\nImport the library:\n\n```scss\n@import '\u003cpath-to\u003e/accoutrement-type/sass/type';\n```\n\nConfigure your font settings:\n\n```scss\n// Define what webfont formats need importing\n$font-formats: 'woff' 'ttf';\n\n// Set the a path to your fonts directory\n$font-path: '../fonts/';\n\n$fonts: (\n  // describe locally-hosted font files for import and access\n  'heading': (\n    'name': 'maven',\n    'stack': ('helvetica', 'arial', sans-serif),\n    'normal': 'maven/maven_pro_regular-webfont',\n    'bold': 'maven/maven_pro_bold-webfont',\n  ),\n\n  // describe CDN fonts for access\n  'body': (\n    'name': 'Source Sans Pro',\n    'stack': ('Helvetica Neue', 'Helvetica', 'Arial', sans-serif),\n  ),\n\n  // provide aliases for any font you need\n  'alias': 'body', // create aliases when useful\n);\n```\n\nImport one font at a time with `font-face()`\nor all your local webfonts with `import-webfonts()`:\n\n```scss\n// Import one font by configuration key, with custom formats\n@include font-face('body', 'otf' 'svg');\n\n// Import all local fonts\n@include import-webfonts;\n```\n\nSet your font-family anywhere,\nusing the semantic names you defined earlier:\n\n```scss\nhtml {\n  @include font-family('body');\n}\n\nh1, h2, h3 {\n  @include font-family('heading');\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddbird%2Faccoutrement-type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foddbird%2Faccoutrement-type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddbird%2Faccoutrement-type/lists"}