語法

填充fill

Setting the color of an SVG shape.

Overview

ClassDeclarations
fill:colorfill: color;
fill:currentfill: currentColor;
fill:transparentfill: transparent;
fill:#hexfill: #hex;
fill:rgb(rgb)fill: rgb(rgb);
fill:hsl(hsl)fill: hsl(hsl);

Conditionally apply

Apply styles based on different states using selectors and applying conditionally.

<div class="fill:blue-60:hover fill:blue-60@sm fill:blue-60@dark fill:blue-60@print">…</div>

  • Master UI


© 2025 Aoyue Design LLC.MIT License
Trademark Policy