Skip to content

Releases: muhammadsammy/tailwindcss-classnames

tailwindcss-classnames v3.1.0

21 May 16:09
a8ad83c
Compare
Choose a tag to compare

Features

  • add backdrop, enabled and optional variants (a1c57e5)
  • add contrast-more and contrast-less variants (8720a8b)
  • add grid-flow-dense utility (f70f2eb)
  • add mix-blend-plus-lighter utility (edcfdca)
  • add new border-spacing utilities (4ab9a62)
  • addtext-start and text-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

03 Nov 00:13
f63e285
Compare
Choose a tag to compare

Bug Fixes

tailwindcss-classnames v3.0.6

15 Aug 21:23
5aece7d
Compare
Choose a tag to compare

Bug Fixes

  • add missing main categories utility functions (#439) (b5c4d15)

tailwindcss-classnames v3.0.5

10 May 11:48
0d2fee5
Compare
Choose a tag to compare

Bug Fixes

  • adds proper indexing when generating colors (#412) (0e500b6)

tailwindcss-classnames v3.0.4

09 Apr 00:47
791a451
Compare
Choose a tag to compare

Bug Fixes

  • support darkMode manual 'class' option (#399) (7cd6881)

tailwindcss-classnames v3.0.3

17 Mar 17:06
b8a6b04
Compare
Choose a tag to compare

Bug Fixes

  • use correct prefix for ring-inset class (#390) (22b0be9)

tailwindcss-classnames v3.0.2

14 Jan 01:39
2d35d3a
Compare
Choose a tag to compare

Bug Fixes

  • generate new lib classnames (bc47da3)
  • pin colors package to 1.4.0 (fixes #362) (e8132b4)

tailwindcss-classnames v3.0.1

24 Dec 11:48
968ce6e
Compare
Choose a tag to compare

Bug Fixes

  • add missing RTL and LTR modifiers (5e9a353)

tailwindcss-classnames v3.0.0

17 Dec 14:52
94abafb
Compare
Choose a tag to compare

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 and border-y width and color utilities (c702c46), closes #334
  • add file variant for ::file-selector-button pseudo element (d51fe20), closes #339
  • add grow-* and shrink-* utilities, deprecate flex-grow-* and flex-shrink-* (73ee65d), closes #333
  • add open variant (b261695), closes #341
  • add overflow-clip, overflow-x-clip and overflow-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 and scroll-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 and decoration-break to box-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)

Performance Improvements

  • disable JIT opacity prefix feature (e2d9673)
  • use TS template literal types to generate pseudoclassess types (e614729)

tailwindcss-classnames v2.2.6

07 Dec 14:59
50f9e34
Compare
Choose a tag to compare

Bug Fixes