{"id":26601809,"url":"https://github.com/wadie/ngx-font-size","last_synced_at":"2025-04-09T16:41:50.236Z","repository":{"id":39995415,"uuid":"255509780","full_name":"wadie/ngx-font-size","owner":"wadie","description":"An Angular component for web accessibility that allows the visitor to toggle between font sizes on the app.","archived":false,"fork":false,"pushed_at":"2023-01-10T12:20:35.000Z","size":1909,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T02:05:38.863Z","etag":null,"topics":["angular","angular-components","font-size","npm-package"],"latest_commit_sha":null,"homepage":"https://npmjs.org/package/ngx-font-size","language":"TypeScript","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/wadie.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":"2020-04-14T04:27:27.000Z","updated_at":"2024-12-11T15:51:13.000Z","dependencies_parsed_at":"2023-02-08T18:30:31.129Z","dependency_job_id":null,"html_url":"https://github.com/wadie/ngx-font-size","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wadie%2Fngx-font-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wadie%2Fngx-font-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wadie%2Fngx-font-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wadie%2Fngx-font-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wadie","download_url":"https://codeload.github.com/wadie/ngx-font-size/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248069018,"owners_count":21042604,"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":["angular","angular-components","font-size","npm-package"],"created_at":"2025-03-23T18:42:32.482Z","updated_at":"2025-04-09T16:41:50.206Z","avatar_url":"https://github.com/wadie.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngx-font-size [![npm version](http://img.shields.io/npm/v/ngx-font-size.svg)](https://npmjs.org/package/ngx-font-size) [![StackBlitz](https://img.shields.io/badge/stackblitz-online-orange.svg)](https://stackblitz.com/edit/ngx-font-size)\n\n\u003e An Angular component for web accessibility that allows the visitor to toggle between font sizes on the app. \n\n## Available options\n\n`mdSize` is set to be the default font size.\n\nOption | Description\n:---:|---\niconColor | The color of the toggle icons.\nselectedColor | The color of the selected icon.\nlgSize | A string that represents the *large* font size in px/rem/...\nmdSize | A string that represents the *medium* font size in px/rem/...\nsmSize | A string that represents the *small* font size in px/rem/...\n\n## Install\n\n```bash\n$ npm install ngx-font-size --save\n```\n\n## Usage\n\nFrom your Angular `AppModule`:\n\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { AppComponent } from './app.component';\n\n// Import the library\nimport { NgxFontSizeModule } from 'ngx-font-size';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    NgxFontSizeModule // \u003c-- Add this line\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\nOnce the library is imported, you can use its component in your Angular application:\n\n```xml\n\u003c!-- You can now use NgxFontSize component in app.component.html --\u003e\n\u003ch1\u003e\n  {{title}}\n\u003c/h1\u003e\n\u003cngx-font-size\n    [iconColor]=iconColor\n    [selectedColor]=\"'#247AFD'\"\n    [lgSize]=\"'1.15rem'\"\n    [mdSize]=\"'1.05rem'\"\n    [smSize]=\"'15px'\"\n\u003e\u003c/ngx-font-size\u003e\n```\n\n[StackBlitz Demo](https://stackblitz.com/edit/ngx-font-size)\n\n## License\n\nMIT © [Wadie](https://github.com/wadie)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwadie%2Fngx-font-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwadie%2Fngx-font-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwadie%2Fngx-font-size/lists"}