A CSS Logical Properties and Values plugin for Tailwind CSS.
With Tailwind v3, JIT mode is now the default, where previously it was something to opt in to. Because of this, tailwindcss-logical will no longer work with the previous default, the AOT engine. I recommend updating to tailwindcss-logical v3.0.0 if you are on Tailwind v3, and if not, stick with tailwindcss-logical v2.0.0 until then.
border-block-width
, border-inline-width
, border-block-color
, and border-inline-color
utilities have been added, now that Tailwind v3 added support for horizontal and vertical side utilities for Border Width and Border Color.border-left-color
, border-right-color
, etc.), but now that Tailwind has added support for them in v2.2.0, this plugin now supports the logical equivalents. More information about these can be found in the README or demo page.There are no updates to the plugin itself with this release, but the demo page has been greatly improved. What was there before was very rudimentary and mostly unstyled, but now it's a real thing. Check it out here.
overflow
utilities, but after taking a closer look I've decided not to include them, because browser support is currently very early (only Firefox currently supports them) and there are no available polyfills that I know of.Updated usage of the clearfix
class (deprecated in Tailwind v2) in the demo page to flow-root
to fix a couple layout bugs.
DEFAULT
config keys. For utilities that have a "default" key (border-width
and border-radius
), Tailwind v1 used default
while Tailwind v2 uses DEFAULT
. This plugin now allows for both.purge
feature.Bumped the lodash sub-dependency to address a security vulnerability.
Bumped the minimist sub-dependency to address a security vulnerability.