# rikschennink/fitty

✨ Makes text fit perfectly

Repository: https://github.com/rikschennink/fitty
Canonical: https://ross.abutalabs.com/products/fitty
Homepage: https://rikschennink.github.io/fitty/
Language: JavaScript
License: MIT
License Family: permissive
Topics: font-size, resize, scale, pixel, text, responsive, flexible, fluid, javascript
Last push: 2025-05-15T06:49:10+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 21, release rhythm 8, longevity 100
- inputs: {"age_days": 3327, "days_push": 475, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3854, forks 203 (observed 2026-08-28T04:08:27.167765+00:00)

## What it is
Fitty is a tiny dependency-free JavaScript library that automatically scales font size up or down so text fits perfectly within its parent container. It supports min/max font sizes, multiline text, web fonts, and auto-updates on viewport changes.

## Use cases
- make headline text fit its container width
- responsive fluid typography for headers and taglines
- auto-shrink text when viewport resizes
- fit text with custom web fonts
- scale text in multi-line blocks
- keep hero banner titles snugly sized

## When to choose
- you need text to always fit its parent container without manual tuning
- you want a tiny (~1 kB) zero-dependency solution
- you need min/max font size bounds and multiline support
- you use web fonts and need refitting after font load

## When to avoid
- you need full responsive layout systems rather than just text fitting
- you need text fitting in non-browser environments like Node or React Native
- you prefer CSS-only solutions like clamp() for simple cases

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, frontend-framework
- domain: web-development, frontend, web-design
- platform: browser, cross-platform
- tags: font-size, text-fitting, responsive-typography, zero-dependency, javascript, nodejs

## Member repositories
- rikschennink/fitty (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:27.167765+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:25:56.486662+00:00, confidence not recorded.
  - readme: https://github.com/rikschennink/fitty (fetched 2026-08-28T04:08:27.167765+00:00, sha 34db4e422bc4)
  - homepage: https://rikschennink.github.io/fitty/ (fetched 2026-08-29T09:20:49.398099+00:00, sha d6dd2189acb4)
  - registry_npm: https://registry.npmjs.org/fitty (fetched 2026-08-29T09:20:49.407364+00:00, sha 99ed29c8bc82)
- Data as of 2026-08-30T08:39:29.467469+00:00.
