{"id":20730375,"url":"https://github.com/philipbordallo/postcss-system-monospace","last_synced_at":"2025-04-23T22:01:11.305Z","repository":{"id":47282257,"uuid":"171095204","full_name":"philipbordallo/postcss-system-monospace","owner":"philipbordallo","description":"Monospace fonts from your operating system","archived":false,"fork":false,"pushed_at":"2021-09-06T00:25:42.000Z","size":309,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T00:16:28.884Z","etag":null,"topics":["css","font-family","monospace","postcss"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/philipbordallo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-02-17T07:43:38.000Z","updated_at":"2022-01-06T08:36:56.000Z","dependencies_parsed_at":"2022-09-26T18:11:22.057Z","dependency_job_id":null,"html_url":"https://github.com/philipbordallo/postcss-system-monospace","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipbordallo%2Fpostcss-system-monospace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipbordallo%2Fpostcss-system-monospace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipbordallo%2Fpostcss-system-monospace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipbordallo%2Fpostcss-system-monospace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philipbordallo","download_url":"https://codeload.github.com/philipbordallo/postcss-system-monospace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250522299,"owners_count":21444511,"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":["css","font-family","monospace","postcss"],"created_at":"2024-11-17T05:11:22.713Z","updated_at":"2025-04-23T22:01:11.112Z","avatar_url":"https://github.com/philipbordallo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS System Monospace [\u003cimg src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS\" width=\"90\" height=\"90\" align=\"right\"\u003e][postcss]\n\u003e Monospace fonts from your operating system\n\n[![NPM Version][npm-img]][npm-url]\n[![Dependency Status][david-img]][david-url]\n\nMost systems have their own monospace font which `font-family: monospace` does not observe. This [PostCSS][postcss] plugin gives the ability to use the client system's monospace font via CSS.\n\n```css\n/* input */\n.example {\n  font-family: system-monospace;\n}\n```\n\n\n```css\n/* output */\n.example {\n  font-family: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n}\n```\n\nCheck out the \u003ca href=\"https://philipbordallo.github.io/postcss-system-monospace/\"\u003evisual test\u003c/a\u003e.\n\n## Install \n\n```sh\n# npm\nnpm install --save-dev postcss postcss-system-monospace\n\n# or yarn\nyarn add --dev postcss postcss-system-monospace\n```\n\n\n## Usage\n\nAdd it to your PostCSS work-flow, [whatever way you choose to](https://github.com/postcss/postcss#usage).\n\n```js\n// Using a postcss.config.js\nconst systemMonospace = require('postcss-system-monospace');\n\nmodule.exports = {\n  plugins: [\n    systemMonospace\n  ]\n};\n\n```\n\nThen use the font-family name `system-monospace` where ever needed.\n```css\n.code {\n  font-family: system-monospace;\n}\n```\n\n\n## Fonts\n\n| name | system |\n| --- | --- |\n`SFMono-Regular` | macOS\n`Menlo` | macOS \u0026 iOS\n`Monaco` | macOS\n`Consolas` | Windows\n`Liberation Mono` | Linux\n`Courier New` | _fallback_\n`monospace` | _fallback_\n\n\n## Credits\n- Nick Galbreath for his articles on operating system monospace fonts and their use with CSS, [CSS System Font Stack Monospace v1](https://www.client9.com/css-system-font-stack-monospace-v1/) \u0026 [CSS System Font Stack Monospace v2](https://www.client9.com/css-system-font-stack-monospace-v2/)\n\n\n## [License](./LICENSE) ##\n\n\n[david-img]: https://img.shields.io/david/philipbordallo/postcss-system-monospace.svg\n[david-url]: https://david-dm.org/philipbordallo/postcss-system-monospace\n\n[npm-img]: https://img.shields.io/npm/v/postcss-system-monospace.svg\n[npm-url]: https://www.npmjs.com/package/postcss-system-monospace\n\n[postcss]: https://github.com/postcss/postcss\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilipbordallo%2Fpostcss-system-monospace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilipbordallo%2Fpostcss-system-monospace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilipbordallo%2Fpostcss-system-monospace/lists"}