Releases: muhammadsammy/tailwindcss-classnames
Releases · muhammadsammy/tailwindcss-classnames
tailwindcss-classnames v3.1.0
Features
- add
backdrop
,enabled
andoptional
variants (a1c57e5) - add
contrast-more
andcontrast-less
variants (8720a8b) - add
grid-flow-dense
utility (f70f2eb) - add
mix-blend-plus-lighter
utility (edcfdca) - add new
border-spacing
utilities (4ab9a62) - add
text-start
andtext-end
utilities (f6955a0) - support customizing class name when using darkMode: 'class' (fixes #398) (853e7d3)
Bug Fixes
- rename colors import in updateDefaultConfig script (7de09c6)
tailwindcss-classnames v3.0.7
tailwindcss-classnames v3.0.6
tailwindcss-classnames v3.0.5
tailwindcss-classnames v3.0.4
tailwindcss-classnames v3.0.3
tailwindcss-classnames v3.0.2
tailwindcss-classnames v3.0.1
Bug Fixes
- add missing RTL and LTR modifiers (5e9a353)
tailwindcss-classnames v3.0.0
What's New in tailwindcss-classnames CLI
-
Way better performance overall (thanks to @dylanvann's idea and suggestions):
- Generated file size is reduced to be < 200 KB (default config). Previous version was generating a file sized about 100 MB.
- Fast autocompletion: this is due to usage of more specific utility functions and using template string types
-
BREAKING: Dropped support for JIT engine's Colors Opacity suffix feature (due to TypesScript TS2590 error)
-
BREAKING: Create Utility functions that accepts classnames (and pseudoclassnames) of that category. The
classnames
function won't accept or show autocompletion of all classnames anymore, but it will accept a function of these category functions (#293)✅ Correct
classnames( display('flex', 'md:block'), textColor('text-black', 'hover:text-red-600'), flexDirection('flex-row-reverse'), );
❌ Incorrect
classnames('flex', 'md:block', 'text-black', 'hover:text-red-600', 'flex-row-reverse');
Features
- rename overflow-clip & overflow-ellipsis to text-clip & text-ellipsis
- add
placeholder
variant (866ac55), closes #338 - add
border-hidden
utility (df94219), closes #335 - add
border-x
andborder-y
width and color utilities (c702c46), closes #334 - add
file
variant for::file-selector-button
pseudo element (d51fe20), closes #339 - add
grow-*
andshrink-*
utilities, deprecateflex-grow-*
andflex-shrink-*
(73ee65d), closes #333 - add
open
variant (b261695), closes #341 - add
overflow-clip
,overflow-x-clip
andoverflow-y-clip
utilities (f0c23ec), closes #336 - add
print
variant for targeting printed media (0a1be3d), closes #337 - add
scroll-behavior
utilities (c51e665), closes #330 - add
scroll-margin
andscroll-padding
utilities (e3503e9) - add
scroll-snap
utilities (e7d5070), closes #329 - add
touch-action
utilities (2d695e4), closes #331 - add classnames with important modifiers to utility functions (02a3555)
- add colored box shadow utilities (b92a42a), closes #318
- add flex basis utilites (closes #332) (8e900bb)
- add new layout and typography utilities (c5e839e)
- add new outline utilites (07da44a)
- add portrait and landscape variants (f89ec5a), closes #340
- add pseudoclassnames to their category function (224fb7a)
- add variants to the cli as it's removed from the new config (2bef20c)
- cli: generate per-category classnames (805396f)
- enable jit features all the time (84f281b)
- generate utility function for all category types ( #293) (1fa8a9b)
- generate utility functions for subcategories instead of categories (9486398)
- rename
decoration-slice
anddecoration-break
tobox-decoration-*
(543e868), closes #344 - rename overflow-clip & overflow-ellipsis to text-clip & text-ellipsis (050b6e4)
- support
accent-color
utilities (b343833), closes #328 - support
will-change
utilities (0033a52), closes #343 - update config closure evaluator to evaluate new tailwind3 configs (440c1ed)
Bug Fixes
- disable duplicate breakpoint pseudoclass variants generation (912519a)
- generate correct module exports (3fac1c1)
- pass the parser into the fileContentGenerator instead of prefix (bce47a8)
- use correct condition for adding a dark mode variant (82cadf0)