{"id":20721110,"url":"https://github.com/francoisromain/postcss-typescale","last_synced_at":"2025-08-09T08:32:17.672Z","repository":{"id":8191406,"uuid":"57082978","full_name":"francoisromain/postcss-typescale","owner":"francoisromain","description":"A PostCSS plugin to set type.","archived":false,"fork":false,"pushed_at":"2022-12-03T12:39:23.000Z","size":999,"stargazers_count":6,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T12:53:26.885Z","etag":null,"topics":["postcss","postcss-plugin","postcss-typescale","typescale"],"latest_commit_sha":null,"homepage":"http://francoisromain.github.io/postcss-typescale/","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/francoisromain.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":"2016-04-25T23:30:02.000Z","updated_at":"2021-01-06T18:15:15.000Z","dependencies_parsed_at":"2023-01-13T15:00:45.239Z","dependency_job_id":null,"html_url":"https://github.com/francoisromain/postcss-typescale","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/francoisromain/postcss-typescale","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francoisromain%2Fpostcss-typescale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francoisromain%2Fpostcss-typescale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francoisromain%2Fpostcss-typescale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francoisromain%2Fpostcss-typescale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/francoisromain","download_url":"https://codeload.github.com/francoisromain/postcss-typescale/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francoisromain%2Fpostcss-typescale/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266117211,"owners_count":23879028,"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":["postcss","postcss-plugin","postcss-typescale","typescale"],"created_at":"2024-11-17T03:25:29.187Z","updated_at":"2025-07-20T11:31:53.824Z","avatar_url":"https://github.com/francoisromain.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postcss-typescale\n\n[![npm version][npm-img]][npm] [![Build Status][ci-img]][ci] [![Dependency Status][dep-img]][dep]\n\n[francoisromain.github.io/postcss-typescale][github.io]\n\nA [PostCSS] plugin to set type based on a [typographic scale](http://type-scale.com).\n\n[github.io]: http://francoisromain.github.io/postcss-typescale\n[postcss]: https://github.com/postcss/postcss\n[ci-img]: https://travis-ci.org/francoisromain/postcss-typescale.svg\n[ci]: https://travis-ci.org/francoisromain/postcss-typescale\n[npm-img]: https://badge.fury.io/js/postcss-typescale.svg\n[npm]: https://badge.fury.io/js/postcss-typescale\n[dep-img]: https://david-dm.org/francoisromain/postcss-typescale.svg\n[dep]: https://david-dm.org/francoisromain/postcss-typescale\n\n---\n\n## Examples\n\n```css\n@typescale {\n  scale: 1.25;\n  font-size: 1rem;\n  line-height: 1.5rem;\n}\n\n.xxl {\n  typescale: 3 2;\n}\n\n.xl {\n  typescale: 2 1.5;\n}\n\n.l {\n  typescale: 1 1.5;\n}\n\n.m {\n  typescale: 0 1;\n}\n\n.s {\n  typescale: -1 1;\n}\n\n.xs {\n  typescale: -2 0.5;\n}\n```\n\n01: [input](https://github.com/francoisromain/postcss-typescale/blob/gh-pages/test/src/01.css), [output](https://github.com/francoisromain/postcss-typescale/blob/gh-pages/test/dist/01.css), [markup](https://github.com/francoisromain/postcss-typescale/blob/gh-pages/test/01.html), [demo](https://francoisromain.github.io/postcss-typescale/test/01.html)\n\n02: [input](https://github.com/francoisromain/postcss-typescale/blob/gh-pages/test/src/02.css), [output](https://github.com/francoisromain/postcss-typescale/blob/gh-pages/test/dist/02.css), [markup](https://github.com/francoisromain/postcss-typescale/blob/gh-pages/test/02.html), [demo](https://francoisromain.github.io/postcss-typescale/test/02.html)\n\n---\n\n## Installation\n\nInstall the [npm package](https://www.npmjs.com/package/postcss-typescale):\n\n```bash\nnpm install postcss postcss-typescale --save-dev\n```\n\nRequire with PossCSS:\n\n```js\npostcss([require('postcss-typescale')]);\n```\n\nSee [PostCSS docs](https://github.com/postcss/postcss#usage) to setup with Gulp, Grunt, Webpack, npm scripts…\n\n---\n\n### Configuration (optional)\n\nGlobal settings (and default values):\n\n```css\n@typescale ([name]) {\n  scale: 1.25; /* typographic scale */\n  font-size: 1rem; /* default font size */\n  line-height: 1.5rem; /* baseline grid */\n}\n```\n\n- _name_ (optional): custom identifier that allows multiple scales. If not provided, the _default_ settings are overwritten.\n- _scale_: typographic scale.\n- _font-size_: default font size (at _index_ 0).\n- _line-height_: baseline grid. Relative to the font-size if set to 1 without unit.\n\n---\n\n## Usage\n\n```css\n.[your-style] {\n  typescale: ([name]) [index] ([line-height-fraction]);\n}\n```\n\n- _name_ (optional, default = _default_): string identifier referring to the settings. If not provided, the rule refers to the _default_ settings.\n- _index_: null or positive or negative integer defining the font-size. font-size = _settings font-size_ \\* _scale_ \u003csup\u003e_index_\u003c/sup\u003e.\n- _line-height-fraction_ (optional, default = 1): float or fraction defining the line-height. line-height = _settings line-height_ \\* _line-height-fraction_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancoisromain%2Fpostcss-typescale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrancoisromain%2Fpostcss-typescale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancoisromain%2Fpostcss-typescale/lists"}