refactor(ui): migrate the layout components off Tailwind utilities
Quality / quality (ubuntu-latest) (push) Failing after 12m47s
Quality / quality (windows-latest) (push) Canceled after 0s

Container, Columns, Grid, Divider, Image, Link, Typography and Kbd were built
from utility classes and class: conditionals. That works only where Tailwind
is present, and every variant cost a dozen conditional lines -- Divider spent
eleven of them saying which token to paint the rule.

They now carry wire-* classes with a local style block, and variants are data
attributes the style block selects on. Divider went from eleven conditionals
to five rules, and Typography lost thirteen.

Behaviour is preserved rather than improved on. Container keeps columns and
gap even though a container is not really a grid, because applications depend
on them, and its columns default stays 2: the redesign contract test caught
that changing it would silently reflow every Container already published.

Additive only: Grid gains minItemWidth for an auto-fit track, Divider gains
dashed and dotted variants, Image gains fit, and Link gains underline.

Verified in a browser rather than by eye, since the pane cannot screenshot:
track counts match the declared columns at desktop and collapse correctly
below each breakpoint.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-08 11:33:59 +05:30
co-authored by Claude Opus 5
parent b56cb8cba5
commit 8aa28205e0
20 changed files with 935 additions and 230 deletions
+36 -1
View File
@@ -4153,6 +4153,13 @@
"default": "\"xl\"",
"options": []
},
{
"name": "centered",
"type": "boolean",
"required": false,
"default": "true",
"options": []
},
{
"name": "class",
"type": "string",
@@ -5194,6 +5201,13 @@
"default": "\"horizontal\"",
"options": []
},
{
"name": "variant",
"type": "string",
"required": false,
"default": "\"solid\"",
"options": []
},
{
"name": "class",
"type": "string",
@@ -6550,6 +6564,13 @@
"default": "\"xl\"",
"options": []
},
{
"name": "minItemWidth",
"type": "string",
"required": false,
"default": "\"\"",
"options": []
},
{
"name": "class",
"type": "string",
@@ -6964,6 +6985,13 @@
"default": "\"lazy\"",
"options": []
},
{
"name": "fit",
"type": "string",
"required": false,
"default": "\"cover\"",
"options": []
},
{
"name": "rounded",
"type": "boolean",
@@ -7752,7 +7780,7 @@
"name": "label",
"type": "string",
"required": false,
"default": "\"K\"",
"default": "\"K\"",
"options": []
},
{
@@ -7952,6 +7980,13 @@
"default": "\"\"",
"options": []
},
{
"name": "underline",
"type": "string",
"required": false,
"default": "\"hover\"",
"options": []
},
{
"name": "external",
"type": "boolean",