{"library":"tailwindcss-capsize","type":"library","category":null,"description":"tailwindcss-capsize is a TailwindCSS plugin that addresses the long-standing problem of inconsistent text alignment caused by the \"extra space\" in font bounding boxes, often referred to as leading-trim or text-box-trim. It leverages the Capsize library to generate utility classes that optically align text by adjusting content box edges to match the capital height and baseline of the font. The current stable version is 4.0.1, with patch releases occurring regularly and major versions typically aligning with significant updates to TailwindCSS itself, such as the recent v4 release. Its key differentiator is providing a robust, configuration-driven solution within the Tailwind ecosystem for precise typographic control, relying on `fontMetrics` specific to the fonts used in a project. This plugin is crucial for designers and developers aiming for pixel-perfect typography and consistent vertical rhythm in their web applications, overcoming browser inconsistencies in text rendering. It requires a `tailwindcss` peer dependency and ships with TypeScript types.","language":"javascript","status":"active","version":"4.0.1","tags":["javascript","tailwindcss","tailwindcss-plugin","capsize","leading-trim","text-box","text-box-trim","typography","whitespace","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install tailwindcss-capsize","imports":["import pluginCapsize from 'tailwindcss-capsize'","import type { CapsizeOptions } from 'tailwindcss-capsize'"]},{"cmd":"yarn add tailwindcss-capsize","imports":[]},{"cmd":"pnpm add tailwindcss-capsize","imports":[]}],"homepage":null,"github":"https://github.com/stormwarning/tailwindcss-capsize","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tailwindcss-capsize","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/tailwindcss-capsize/compatibility"}}