{"id":13528022,"url":"https://github.com/ianrose/typesettings","last_synced_at":"2025-10-09T06:43:48.068Z","repository":{"id":14119419,"uuid":"16824413","full_name":"ianrose/typesettings","owner":"ianrose","description":"A Sass or Stylus toolkit that sets type in Ems based on modular scale, vertical rhythm, and responsive ratio based headlines.","archived":false,"fork":false,"pushed_at":"2022-12-11T20:29:07.000Z","size":520,"stargazers_count":386,"open_issues_count":12,"forks_count":27,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-10-02T05:36:15.134Z","etag":null,"topics":["baseline","sass","scale","scss","stylus","typography","vertical-rhythm"],"latest_commit_sha":null,"homepage":"https://www.typesettings.io","language":"SCSS","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/ianrose.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-14T02:16:34.000Z","updated_at":"2025-09-26T13:41:01.000Z","dependencies_parsed_at":"2022-08-19T07:51:48.859Z","dependency_job_id":null,"html_url":"https://github.com/ianrose/typesettings","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/ianrose/typesettings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianrose%2Ftypesettings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianrose%2Ftypesettings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianrose%2Ftypesettings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianrose%2Ftypesettings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ianrose","download_url":"https://codeload.github.com/ianrose/typesettings/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianrose%2Ftypesettings/sbom","scorecard":{"id":478608,"data":{"date":"2025-08-11","repo":{"name":"github.com/ianrose/typesettings","commit":"21b95f4b3e6e4765d9ec62f4db46304b9e1b9264"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"35 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r8f7-9pfq-mjmv","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-7mwh-4pqv-wmr8","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T15:57:42.123Z","repository_id":14119419,"created_at":"2025-08-19T15:57:42.123Z","updated_at":"2025-08-19T15:57:42.123Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000848,"owners_count":26082951,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["baseline","sass","scale","scss","stylus","typography","vertical-rhythm"],"created_at":"2024-08-01T06:02:10.331Z","updated_at":"2025-10-09T06:43:48.036Z","avatar_url":"https://github.com/ianrose.png","language":"SCSS","funding_links":[],"categories":["SCSS"],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/dt/typesettings.svg)]() [![GitHub release](https://img.shields.io/github/release/ianrose/typesettings.svg)]() [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/ianrose/typesettings/master/LICENSE) [![Gitter](https://badges.gitter.im/ianrose/typesettings.svg)](https://gitter.im/ianrose/typesettings?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n\nTypesettings\n============\n\nSet your type in Ems with modular scale, vertical rhythm, and responsive ratio based headlines using Sass. **Why create another type toolkit in Sass?** I wanted to and I couldn't find exactly what I was looking for. Typesettings uses techniques from many different amazing tools while trying to keep it simple.\n\n * Its only dependency is Sass\n * It uses Ems not REMs or pixels\n * Handles all the math for Ems including the compounding\n * It maintains vertical rhythm with pixel based borders using padding set in Ems\n * It comes with a default 6px baseline to maintain rhythm on all block elements\n * It relies more on using Sass functions combined with vanilla CSS rules rather than mixins to style\n * It uses modular scale values to set font-size\n * It has optional default type styles that includes settings for adjusting headlines based on screen width\n\n## How to setup\n\nThere are four ways you can download Typesettings.\n\n* [Download the latest release](https://github.com/ianrose/typesettings/releases/latest)\n* Clone the repo: `git clone https://github.com/ianrose/typesettings.git`\n* Install with [Bower](http://bower.io/): `bower install typesettings --save`\n* Install with [npm](https://www.npmjs.com): `npm install typesettings --save`\n  * Check out [Eyeglass](https://github.com/sass-eyeglass/eyeglass)\n\nTo start using Typesettings `@import` the `_typesettings.scss` partial into your Sass project after your CSS reset.\n\nThere is also the bundled single file versions. For example, using Typesettings on [Codepen](https://codepen.io/ianrose/pen/wDids) or you are looking to simply copy and paste Typesettings into your project. You can also start by `@import` the `_typsettings.bundle.scss` into your Sass project after your CSS reset.\n\n```scss\n @import \"path/your-reset\";\n\n // Your settings for Typesettings :)\n $font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n $font-serif: Georgia, 'Times New Roman', serif;\n $font-mono: 'Lucida Console', Monaco, monospace;\n $text-color: #000;\n $base-vertical-unit: 6px;\n $base-line-multi: 4;\n $base-font-size: 16px;\n $ms-ratio: 1.414;\n $paragraph-indent: true;\n $paragraph-justify: true;\n $load-typesetted: true;\n $global-init: false; // By default set to false, loaded with typesetted\n\n @import \"path/typesettings\"; // Here is the _typesettings.scss partial\n\n @import \"path/your-styles\";\n```\n\n### Advanced Usage\n\nYou have the ability to easily import Typesettings' mixins, functions, and internal variables separately and use them how you see fit within your project. For example:\n\n```scss\n @import \"path/your-reset\";\n\n // Your settings for Typesettings :)\n $font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n $font-serif: Georgia, 'Times New Roman', serif;\n $font-mono: 'Lucida Console', Monaco, monospace;\n $text-color: #000;\n $base-vertical-unit: 6px;\n $base-line-multi: 4;\n $base-font-size: 16px;\n $ms-ratio: 1.414;\n\n // Import only the functionality of Typesettings you want\n @import \"path/typesettings/settings\";\n @import \"path/typesettings/internal\";\n @import \"path/typesettings/functions\";\n @import \"path/typesettings/mixins\";\n\n @include typesettingsInit();\n\n @import \"path/your-styles\";\n```\n\n## How to use\n\nAfter Typesettings is setup in your project the default type styles should be looking good. However I bet you want to use modular scale and vertical rhythm in the rest of your project. Here is an example of how to do that:\n\nThe Scss:\n\n```scss\n// This example is using Typesettings' default settings\n// [1] 3 times the baseline grid value for margin-bottom.\n// The second argument is the context font-size. In this case it is 1 step down in\n// the modular scale.\n//\n// [2] Using an optional mixin, a 2px border bottom is set with padding bottom\n// set to 3 times the baseline grid with 2px subtracted. By subtracting the 2px from\n// the padding bottom, vertical rhythm is maintained.\n//\n// [3] Using an optional mixin, the line-height is set to 3 * baseline grid. Then\n// the font-size is passed using our modular scale value.\n.your-module {\n   margin-bottom: emRhythm(3, $ms-down1); // [1]\n   border-color: #000;\n   border-style: solid;\n   @include rhythmBorderBottom(2px, 3, $ms-down1); // [2]\n   @include setType(3, $ms-down1); // [3]\n}\n```\n\nThe outputted CSS:\n\n```css\n.your-module {\n    margin-bottom: 1.59075em; /* 18px */\n    border-color: #000;\n    border-style: solid;\n    border-bottom-width: 2px;\n    padding-bottom: 1.414em; /* 16px */\n    font-size: 0.70721em;\n    line-height: 1.59075; /* 18px (Okay, not pixel perfect, 17.9999999999px) */\n}\n```\n\nYou can also look at the [source code](https://github.com/ianrose/typesettings-site) of the document site to see how it was made using Typesettings.\n\n## Requirements\n\nSass or Stylus, that's it.\n\n## Precision\n\nTypesettings uses relative units and many of the values outputted are a result of dividing and multiplying. So a computed pixel value like `17.999999px` will sometimes happen.\n\n## Thanks and Resources\n\n* [@johngerom](https://github.com/johngerome): [Stylus version](https://github.com/ianrose/typesettings/blob/master/_typesettings.styl)\n* [Type-scale.com](http://type-scale.com/)\n* [Typeplate](https://github.com/typeplate/typeplate.github.io)\n* [Typecsset](https://github.com/csswizardry/typecsset)\n* [Compass](https://github.com/chriseppstein/compass)\n* [Sassaparilla](http://sass.fffunction.co/)\n\nPlease ask questions on [Gitter](https://gitter.im/ianrose/typesettings?utm_source=share-link\u0026utm_medium=link\u0026utm_campaign=share-link) and use [GitHub issues](https://github.com/ianrose/typesettings/issues) for bugs.\n\n## License\n\n[The MIT License (MIT)](https://github.com/ianrose/typesettings/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianrose%2Ftypesettings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianrose%2Ftypesettings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianrose%2Ftypesettings/lists"}