# tailwindlabs/tailwindcss-line-clamp

A plugin that provides utilities for visually truncating text after a fixed number of lines.

Repository: https://github.com/tailwindlabs/tailwindcss-line-clamp
Canonical: https://ross.abutalabs.com/products/tailwindcss-line-clamp
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-05-12T14:50:00+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 82, release rhythm 8, longevity 100
- inputs: {"age_days": 2065, "days_push": 113, "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 1186, forks 35 (observed 2026-08-28T04:03:55.029221+00:00)

## What it is
An official Tailwind CSS plugin providing line-clamp utilities for visually truncating text after a fixed number of lines. As of Tailwind CSS v3.3 these utilities are built into the framework, so the plugin is no longer required.

## Use cases
- truncate text after a fixed number of lines in tailwind
- add line-clamp utilities to tailwind css
- clamp paragraph text to 3 lines with css classes
- show text preview with ellipsis after n lines
- remove line clamping responsively with line-clamp-none

## When to choose
- you are on Tailwind CSS v3.2 or earlier and need line-clamp utilities

## When to avoid
- you use Tailwind CSS v3.3 or later, where line-clamp is built in

## Facets
- artifact type: plugin
- maturity: maintenance
- function: ui-components, css-framework
- domain: frontend, web-development
- platform: browser
- tags: tailwindcss, line-clamp, text-truncation, css-utilities, deprecated-in-favor-of-core, nodejs, web-server

## Member repositories
- tailwindlabs/tailwindcss-line-clamp (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:55.029221+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-30T06:24:04.893020+00:00, confidence not recorded.
  - readme: https://github.com/tailwindlabs/tailwindcss-line-clamp (fetched 2026-08-28T04:03:55.029221+00:00, sha b3e92202772a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
