{"id":21250127,"url":"https://github.com/yet3/tailwindcss-fluid-text","last_synced_at":"2026-05-15T12:33:27.617Z","repository":{"id":61998537,"uuid":"556831897","full_name":"yet3/tailwindcss-fluid-text","owner":"yet3","description":"TailwindCss plugin that adds fluid typography","archived":false,"fork":false,"pushed_at":"2025-01-13T23:06:31.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-30T15:50:05.337Z","etag":null,"topics":["tailwind","tailwindcss"],"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/yet3.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-24T15:42:55.000Z","updated_at":"2025-01-13T23:06:35.000Z","dependencies_parsed_at":"2025-07-21T17:39:02.685Z","dependency_job_id":"1c84c66e-6ca2-4f42-afd1-e09a0240b5f7","html_url":"https://github.com/yet3/tailwindcss-fluid-text","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yet3/tailwindcss-fluid-text","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yet3%2Ftailwindcss-fluid-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yet3%2Ftailwindcss-fluid-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yet3%2Ftailwindcss-fluid-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yet3%2Ftailwindcss-fluid-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yet3","download_url":"https://codeload.github.com/yet3/tailwindcss-fluid-text/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yet3%2Ftailwindcss-fluid-text/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33067307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["tailwind","tailwindcss"],"created_at":"2024-11-21T03:15:52.180Z","updated_at":"2026-05-15T12:33:27.590Z","avatar_url":"https://github.com/yet3.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Don't bother with this just use [fluid-tailwind](https://github.com/barvian/fluid-tailwind) it's awesome :+1:\n# TailwindCSS fluid text\n![GitHub license](https://img.shields.io/github/license/yet3/tailwindcss-fluid-text?style=flat)\n\u003ca href='https://www.npmjs.com/package/@yet3/tailwindcss-fluid-text'\u003e\n  ![npm](https://img.shields.io/npm/v/@yet3/tailwindcss-fluid-text)\n\u003c/a\u003e\n\nA plugin that adds fluid typography to [TailwindCss](https://tailwindcss.com)\n\n## Table of Contents\n- [Installation](#installation)\n- [Usage](#basic-usage)\n  - [Basic](#basic-usage)\n  - [Arbitrary values](#arbitrary-values)\n- [Options](#options)\n- [Config example](#config-example)\n- [Live demo](https://play.tailwindcss.com/6Nk8Wbs1BZ)\n- [Inspired by](#inspired-by)\n\n## Installation\n\n```sh\nnpm install @yet3/tailwindcss-fluid-text\n```\n\nor\n\n```sh\nyarn add @yet3/tailwindcss-fluid-text\n```\n\nIn `tailwind.config.js`\n\n```js\n/** @type {import('tailwindcss').Config} */\nmodule.exports = {\n  // ...\n  plugins: [\n    // ...\n    require('@yet3/tailwindcss-fluid-text'),\n  ],\n};\n```\n\n## Basic usage\n\n```html\n\u003cdiv class=\"fluid-text-base-3xl\"\u003e\n```\n```html\n\u003cdiv class=\"fluid-text-lg-sm\"\u003e\n```\n\n### Arbitrary values\n\n```html\n\u003c!-- fluid-text-xs-base-[screenMin,screenMax]   --\u003e\n\u003cdiv class=\"fluid-text-xs-base-[640,960]\"\u003e\n```\n\n```html\n\u003c!-- fluid-text-[sizeMin,sizeMax,screenMin,screenMax]  --\u003e\n\u003cdiv class=\"fluid-text-[1.25,3,400,960]\"\u003e\n```\n\n```html\n\u003c!-- fluid-text-[sizeMin,sizeMax,screenMin,screenMax]  --\u003e\n\u003c!-- screenMin and screenMax will be equal to values configured in plugin options  --\u003e\n\u003cdiv class=\"fluid-text-[2,2.5]\"\u003e\n```\n\n## Options\n\n|          Name         |      Type      | Default value |     Example value     |                                                          Description                                                         |\n|:---------------------:|:--------------:|:-------------:|:---------------------:|:----------------------------------------------------------------------------------------------------------------------------:|\n|      fontSizeUnit     |     string     |     \"rem\"     |      \"rem\", \"px\"      | Default unit of sizeMin and sizeMax. Can be either \"rem\" or \"px\"                                                             |\n|        sizeMin        | number, string |       1       |  0.5, \"24px\", \"3rem\"  | Minimal font size. Value can be a number (will use unit from fontSizeUnit option), or as string with sufix of \"px\" or \"rem\"  |\n|        sizeMax        | number, string |       2       |  2.1, \"12px\", \"1rem\"  | Maximal font size. Value can be a number (will use unit from fontSizeUnit option), or as string with sufix of \"px\" or \"rem\"  |\n|       screenUnit      |     string     |      \"px\"     |      \"rem\", \"px\"      | Default unit of screenMin and screenMax. Can be either \"rem\" or \"px\"                                                         |\n|       screenMin       | number, string |      375      |  25, \"360px\", \"32rem\" | Minimal screen width. Value can be a number (will use unit from screenUnit option), or as string with sufix of \"px\" or \"rem\" |\n|       screenMax       | number, string |      1024     | 90, \"1024px\", \"45rem\" | Maximal screen width. Value can be a number (will use unit from screenUnit option), or as string with sufix of \"px\" or \"rem\" |\n|      rootFontSize     |     number     |       16      |       16, 24, 32      | Font size of root element in pixels (1rem = ?px)                                                                             |\n| generateFromFontSizes |     boolean    |      true     |      true, false      | Whether plugin should generate fluid-text utilities from fontSizes configured in tailwind. (can only be used in plugin options)                     |\n\n## Config example\n\n```js\n/** @type {import('tailwindcss').Config} */\nmodule.exports = {\n  // ...\n  theme: {\n    extend: {\n      fluidText: {\n        'sm-base': {\n          sizeMin: '12px'\n          sizeMax: '16px'\n          screenMin: '30rem'  // 480px,\n          screenMax: '60rem'  // 960px\n        },\n        'sm-big': {\n          sizeMin: 0.75   // 0.75rem,\n          sizeMax: 2      // 2rem,\n          // screenMin: default 375\n          // screenMax: default 1024\n        },\n      },\n    },\n  },\n  plugins: [\n    // ...\n    require('@yet3/tailwindcss-fluid-text')({\n      rootFontSize: 16, // 1rem = 16px\n      fontSizeUnit: 'rem',\n      sizeMin: 1,       // default min font size (in rem)\n      sizeMax: 2,       // default max font size (in rem)\n      screenUnit: 'px',\n      screenMin: 375,   // default min screen width (in px)\n      screenMax: 1024,  // default max screen width (in px)\n      generateFromFontSizes: true,\n    }),\n  ],\n};\n```\n\n## Live demo\n[Play around on TailwindPlay](https://play.tailwindcss.com/6Nk8Wbs1BZ)\n\n## Inspired by\n\n- [Modern Fluid Typography Using CSS Clamp](https://www.smashingmagazine.com/2022/01/modern-fluid-typography-css-clamp/)\n- [bradlc/tailwindcss-fluid](https://github.com/bradlc/tailwindcss-fluid)\n- [davidhellmann/tailwindcss-fluid-type](https://github.com/davidhellmann/tailwindcss-fluid-type)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyet3%2Ftailwindcss-fluid-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyet3%2Ftailwindcss-fluid-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyet3%2Ftailwindcss-fluid-text/lists"}