Skip to content

Commit cb422fa

Browse files
Merge pull request #22 from stevecochrane/support-tailwind-2.2
Merge support-tailwind-2.2 onto master
2 parents 6f2a182 + 210d337 commit cb422fa

31 files changed

+7776
-1246
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = {
1515
'jest'
1616
],
1717
'rules': {
18+
'no-unused-vars': ['error', { 'args': 'all', 'argsIgnorePattern': '^_' }],
1819
'quotes': ['error', 'single'],
1920
'semi': ['error', 'always']
2021
}

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [10.x, 12.x, 14.x]
16+
node-version: [12.x, 14.x, 16.x]
1717

1818
steps:
1919
- uses: actions/checkout@v2

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v14.15.0
1+
v14.17.4

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
[![License](https://img.shields.io/npm/l/tailwindcss-logical.svg)](https://github.com/stevecochrane/tailwindcss-logical/blob/master/LICENSE.txt)
88

99
A [CSS Logical Properties and Values](https://drafts.csswg.org/css-logical/) plugin for
10-
[Tailwind CSS](https://tailwindcss.com). Compatible with Tailwind v1.2.0+ and updated for Tailwind v2. View the
11-
[demo page](https://stevecochrane.github.io/tailwindcss-logical/) for a visual walkthrough, or read on to get started.
10+
[Tailwind CSS](https://tailwindcss.com). Compatible with Tailwind v1.2.0+ and updated for Tailwind v2, with support for
11+
JIT Mode (including all [new features](https://tailwindcss.com/docs/just-in-time-mode#new-features) except arbitrary
12+
value support) and Dark Mode. View the [demo page](https://stevecochrane.github.io/tailwindcss-logical/) for a visual
13+
walkthrough, or read on to get started.
1214

1315
## Usage
1416

@@ -199,6 +201,23 @@ config object.
199201
.border-ie-2 { border-inline-end-width: 2px; }
200202
```
201203

204+
### Flow-relative Border Colors (JIT Mode)
205+
206+
Because Tailwind's [Per-side Border Colors](https://tailwindcss.com/docs/just-in-time-mode#per-side-border-colors)
207+
utilities are only generated when JIT Mode is enabled, tailwindcss-logical also only generates the following when JIT
208+
Mode is enabled.
209+
210+
Utilities are generated for the `border-block-start-color`, `border-block-end-color`,
211+
`border-inline-start-color`, and `border-inline-end-color` properties. These match the values in your `borderColor`
212+
config object.
213+
214+
```css
215+
.border-bs-black { border-block-start-color: #000; }
216+
.border-be-black { border-block-end-color: #000; }
217+
.border-is-black { border-inline-start-color: #000; }
218+
.border-ie-black { border-inline-end-color: #000; }
219+
```
220+
202221
### Flow-relative Divide Width
203222

204223
Flow-relative utilities are generated for the Tailwind-specific
@@ -263,7 +282,6 @@ everything. If something does not have a non-logical equivalent in Tailwind's de
263282
* Flow-relative Border Width shorthand properties `border-block-width` and `border-block-height`: Tailwind does not
264283
have `border-width` shorthand utilities for the X or Y axis.
265284
* Flow-relative Border Styles: Tailwind only has `border-style` utilities for all sides of an element at once.
266-
* Flow-relative Border Colors: Same as for Border Styles.
267285

268286
As for other logical properties and values from outside of the main specification:
269287

docs/index.html

Lines changed: 54 additions & 37 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)