|
7 | 7 | [](https://github.com/stevecochrane/tailwindcss-logical/blob/master/LICENSE.txt) |
8 | 8 |
|
9 | 9 | 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. |
12 | 14 |
|
13 | 15 | ## Usage |
14 | 16 |
|
@@ -199,6 +201,23 @@ config object. |
199 | 201 | .border-ie-2 { border-inline-end-width: 2px; } |
200 | 202 | ``` |
201 | 203 |
|
| 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 | + |
202 | 221 | ### Flow-relative Divide Width |
203 | 222 |
|
204 | 223 | 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 |
263 | 282 | * Flow-relative Border Width shorthand properties `border-block-width` and `border-block-height`: Tailwind does not |
264 | 283 | have `border-width` shorthand utilities for the X or Y axis. |
265 | 284 | * 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. |
267 | 285 |
|
268 | 286 | As for other logical properties and values from outside of the main specification: |
269 | 287 |
|
|
0 commit comments