From c64c10e3294868d7690d4f72d183b19adcc8ab33 Mon Sep 17 00:00:00 2001 From: Mira Date: Tue, 8 Sep 2026 19:21:16 +0300 Subject: [PATCH] Problem: offset work opposite of intuition Solution: - it happen as css think it like offseting the view on dasharray, so it moves backward, as I get it. - But in our context better make it intuitive... so multiply by -1 to slide the line itself. (to the right). --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 69ecc83..682a306 100644 --- a/src/index.ts +++ b/src/index.ts @@ -238,7 +238,7 @@ const dashedBorderPlugin: ReturnType = plugin( "stroke-width": "var(--tw-dashed-border-width)", "stroke-dasharray": "var(--tw-dashed-border-length) var(--tw-dashed-border-gap)", - "stroke-dashoffset": "var(--tw-dashed-border-offset)", + "stroke-dashoffset": "calc(-1 * var(--tw-dashed-border-offset))", "vector-effect": "non-scaling-stroke", x: INSET, y: INSET,