- Reworked internals (#214) No notable change in CSS output. Should support Tailwind TypeScript configs better now.
- Fix fontSize utility not including default fontWeight settings #209
-
Fix precision loss with fractional pixel font-sizes #178
Thanks @andriytyurnikov!
-
Use correct custom property with default lineHeight values #153
Fixes issue with a
leading-*
class being required even with fontSize values including a default lineHeight.
-
Remove unit from
--font-size-px
custom property #128Thanks @essejmclean!
Fixes issue withcalc()
functions not working correctly.
-
Add
modern
output mode #123In this mode the
fontFamily
,fontSize
, andlineHeight
core plugins are replaced, adding custom properties to the output of each which are used in thecalc()
expressions in the utility class.modern
mode is enabled by default. The previous functionality can be maintained if needed by switching toclassic
mode.
-
Allow custom activation class via new
className
option #103require("tailwindcss-capsize")({ className: "leading-trim" });
- Use new
@capsize/core
library #94 Thanks @DylanVann!
This will change the final output CSS, as the technique to perform the leading trim has been simplified. See the capsize release notes for more details.
-
Fix usage when
require
ing plugin #95 Thanks @DylanVann!- require('tailwindcss-capsize').default + require('tailwindcss-capsize')
-
Fix issue requiring an empty options object to be passed in #68
- require('tailwindcss-capsize')({}) + require('tailwindcss-capsize')
- Avoid error when
normalizeValue
gets an arraye18c905
Still needs to account fully for Tailwind v2 configs, but this helps.
- Allow unitless or percentage-based leading values #34
Uses the inheritedfont-size
to determine pixelline-height
value.
- Use correct path for
types
import #30
This should clear up any TypeScript warnings during local builds.
- Rename plugin using common prefix convention
eac9127
tailwind-capsize
→tailwindcss-capsize
- Cleaned out unused code and fix up docs examples
bc1372f
- Fixed error when trying to set a custom root font-size value #16
- Added actual README and package description & keywords
327886e