{"id":16583698,"url":"https://github.com/aloisdeniel/sleek_typography","last_synced_at":"2025-10-29T07:32:46.472Z","repository":{"id":56839579,"uuid":"250168094","full_name":"aloisdeniel/sleek_typography","owner":"aloisdeniel","description":"Flexible way of customizing text.","archived":false,"fork":false,"pushed_at":"2020-03-27T15:37:34.000Z","size":741,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T23:41:15.535Z","etag":null,"topics":["flutter","font","text","typography"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/aloisdeniel.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":"2020-03-26T05:19:32.000Z","updated_at":"2024-05-30T08:51:06.000Z","dependencies_parsed_at":"2022-08-29T05:00:48.290Z","dependency_job_id":null,"html_url":"https://github.com/aloisdeniel/sleek_typography","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/aloisdeniel%2Fsleek_typography","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdeniel%2Fsleek_typography/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdeniel%2Fsleek_typography/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdeniel%2Fsleek_typography/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aloisdeniel","download_url":"https://codeload.github.com/aloisdeniel/sleek_typography/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238791894,"owners_count":19531027,"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":["flutter","font","text","typography"],"created_at":"2024-10-11T22:42:53.112Z","updated_at":"2025-10-29T07:32:46.092Z","avatar_url":"https://github.com/aloisdeniel.png","language":"Dart","funding_links":["https://www.buymeacoffee.com/aloisdeniel"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/aloisdeniel/sleek_typography/raw/master/sleek_typography_logo.png\" width=\"100%\"\u003e\n\n\u003cp\u003e\n  \u003ca href=\"https://pub.dartlang.org/packages/sleek_typography\"\u003e\u003cimg src=\"https://img.shields.io/pub/v/sleek_typography.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.buymeacoffee.com/aloisdeniel\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000\u0026amp;style=flat\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nFlexible way of customizing text.\n\n\u003cimg height=\"82\" src=\"https://github.com/aloisdeniel/sleek_typography/raw/master/images/examples.png\"\u003e\n\n## Install\n\nAdd the dependency to your `pubspec.yaml` :\n\n```yaml\ndependencies:\n    sleek_typography: \u003cversion\u003e\n```\n\n## Quick start\n\n```dart\n Column(\n    children: \u003cWidget\u003e[\n        SleekText(\"Basic\", style: SleekTextStyle.bold5()),\n        SleekText(\"Style\", style: SleekTextStyle.subtitle4()),\n        SleekContent.small(\n            child: Column(\n                children: \u003cWidget\u003e[\n                    SleekText(\"Title\", style: SleekTextStyle.title()),\n                    SleekText(\"Body\", style: SleekTextStyle.body()),\n                    SleekText(\"Link\", style: SleekTextStyle.link()),\n                ],\n            ),\n        ),\n    ],\n)\n```\n\n## Usage\n\n### Defining global typography\n\nYou can define four kind of presets :\n* Sizes (`1` to `10`) : font sizes\n* Weights (`light`, `normal`, `medium`, `bold`) : font weights\n* Families (`primary`, `secondary`, `monospace`, `code`) : font families\n* Styles (`none`,`caption`,`code`,`blockquote`,`body`,`link`,`button`,`subtitle`,`title`) : a set of common styling option combinaisons.\n\n```dart\nSleekTypography(\n    data: SleekTypographyData(\n        sizes: \u003csee example\u003e\n        weights: \u003csee example\u003e\n        families: \u003csee example\u003e\n        styles: \u003csee example\u003e\n    ),\n    child: \u003cyour app\u003e,\n)\n```\n\nFor a complete definition example, see [the default definition](lib/src/typography_data_fallback.dart).\n\n\n### Updating global typography\n\nTypography can be updated from wherever in the tree. This may be usefull to be responsive : adapting content size when `MediaQuery.size` changes for example.\n\n```dart\nSleekTypography.update(context, SleekTypographyData(\n        sizes: \u003csee example\u003e\n        weights: \u003csee example\u003e\n        families: \u003csee example\u003e\n        styles: \u003csee example\u003e\n    ),\n);\n```\n\n### Widgets\n\n#### Text\n\n```dart\nSleekText(\"hello\" style: SleekStyle.normal())\n```\n\n##### Basic \n\nBasic types let you choose a combination of a weight and a size.\n\n###### Normal\n\n![image](https://github.com/aloisdeniel/sleek_typography/raw/master/images/normal.png)\n\n```dart\nSleekText(\"hello\" style: SleekStyle.normal3())\n```\n\n###### Medium\n\n![image](https://github.com/aloisdeniel/sleek_typography/raw/master/images/medium.png)\n\n```dart\nSleekText(\"hello\" style: SleekStyle.medium3())\n```\n\n###### Bold\n\n![image](https://github.com/aloisdeniel/sleek_typography/raw/master/images/bold.png)\n\n```dart\nSleekText(\"hello\" style: SleekStyle.bold3())\n```\n\n###### Light\n\n![image](https://github.com/aloisdeniel/sleek_typography/raw/master/images/light.png)\n\n```dart\nSleekText(\"hello\" style: SleekStyle.light3())\n```\n\n##### Predefined styles\n\nEach predefined style has **6 levels** and are defined by a combination of size, weight or even a widget builder around. They are built to be coherent with corresponding levels (for example, a title will always have a bigger font than a body for a corresponding level).\n\n###### Body\n\n![image](https://github.com/aloisdeniel/sleek_typography/raw/master/images/body.png)\n\n```dart\nSleekText(\"hello\" style: SleekStyle.body3())\n```\n\n###### Title\n\n![image](https://github.com/aloisdeniel/sleek_typography/raw/master/images/title.png)\n\n```dart\nSleekText(\"hello\" style: SleekStyle.title3())\n```\n\n###### Subtitle\n\n![image](https://github.com/aloisdeniel/sleek_typography/raw/master/images/subtitle.png)\n\n```dart\nSleekText(\"hello\" style: SleekStyle.subtitle3())\n```\n\n###### Link\n\n![image](https://github.com/aloisdeniel/sleek_typography/raw/master/images/link.png)\n\n```dart\nSleekText(\"hello\" style: SleekStyle.link3())\n```\n\n###### Blockquote\n\n![image](https://github.com/aloisdeniel/sleek_typography/raw/master/images/blockquote.png)\n\n```dart\nSleekText(\"hello\" style: SleekStyle.blockquote3())\n```\n\n###### Code\n\n![image](https://github.com/aloisdeniel/sleek_typography/raw/master/images/code.png)\n\n```dart\nSleekText(\"hello\" style: SleekStyle.code3())\n```\n\n###### Caption\n\n![image](https://github.com/aloisdeniel/sleek_typography/raw/master/images/caption.png)\n\n```dart\nSleekText(\"hello\" style: SleekStyle.caption3())\n```\n\n#### Content\n\nContent let you define a default predefined level for all its descendants.\n\n###### Small\n\n![image](https://github.com/aloisdeniel/sleek_typography/raw/master/images/content_small.png)\n\n```dart\nSleekContent.small(\n    child: Column(\n        children: \u003cWidget\u003e[\n            SleekText(\"title\" style: SleekStyle.title()),\n            SleekText(\"body\" style: SleekStyle.body()),\n            SleekText(\"caption\" style: SleekStyle.caption()),\n        ]\n    )\n)\n```\n\n###### Normal\n\n![image](https://github.com/aloisdeniel/sleek_typography/raw/master/images/content_normal.png)\n\n\n```dart\nSleekContent.normal(\n    child: Column(\n        children: \u003cWidget\u003e[\n            SleekText(\"title\" style: SleekStyle.title()),\n            SleekText(\"body\" style: SleekStyle.body()),\n            SleekText(\"caption\" style: SleekStyle.caption()),\n        ]\n    )\n)\n```\n\n###### Big\n\n![image](https://github.com/aloisdeniel/sleek_typography/raw/master/images/content_big.png)\n\n\n```dart\nSleekContent.big(\n    child: Column(\n        children: \u003cWidget\u003e[\n            SleekText(\"title\" style: SleekStyle.title()),\n            SleekText(\"body\" style: SleekStyle.body()),\n            SleekText(\"caption\" style: SleekStyle.caption()),\n        ]\n    )\n)\n```\n\n## Thanks\n\nThanks to the [bulma](https://bulma.io) framework team for the inspiration.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloisdeniel%2Fsleek_typography","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faloisdeniel%2Fsleek_typography","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloisdeniel%2Fsleek_typography/lists"}