Repository navigation
@chassis-ui/css v0.11.1
Patch Changes
-
cffd0e1: Breaking: The border width and style classes set the variables the border classes read, so they combine in the Tailwind entry too (issue 38). Tailwind sorts its utilities by its own property order, which has no
borderorborder-block-end, so.borderand the side classes came after.border-2xland.border-style-dashedand reset them:border-bottom border-2xlandborder border-2xldrew 1px, andborder border-style-dasheda solid border..border-{size}sets only--cx-border-width, noborder-width. A width class beside.border, a side class or.divide-*sets their width in both builds, and a component with the class on it uses it too. A width class alone, or on a border that does not read the variable, draws nothing and changes nothing..border-style-{value}sets only--cx-border-style, noborder-style.border-top border-style-dasheddashes the top border alone; before, the other three sides were dashed too, at their initialmediumwidth. A style class no longer changes a border that does not read the variable: the parts of a component drawn with a fixedsolidstyle, such as the border under a card header, and the borders of a project's own CSS.- A component sets
--cx-border-styleon itself ($border-style), as it sets--cx-border-width, through theborder()mixin. A style class on an ancestor does not reach it, and neither does--cx-border-styleset on:rootor on an ancestor at runtime: change$border-style, or set the variable on the component. .text-underline,.text-line-throughand.text-decoration-nonesettext-decoration-lineinstead of thetext-decorationshorthand, so they no longer reset the color and thickness classes. In the Tailwind entrytext-underline text-decoration-primarydrew the underline in the text color.