utilities5 groups9 rules
Utilities — SVG
SVG fill, fill opacity, stroke, stroke opacity, and stroke width utilities.
Fill
responsive (sm–2xl) src/css/value-driven/fill.css
Value-driven
| Selector | Style | Variables | Flags |
|---|---|---|---|
.fill | fill: var(--fill) | --fill | — |
.dark:fill | fill: var(--dark-fill) | --dark-fill | dark |
Fill Opacity
responsive (sm–2xl) src/css/value-driven/fill-opacity.css
Value-driven
| Selector | Style | Variables | Flags |
|---|---|---|---|
.fill/o | fill: color-mix(in oklab, var(--fill) var(--fill-o, 100%), transparent) | --fill, --fill-o | opacity |
.dark:fill/o | fill: color-mix( in oklab, var(--dark-fill) var(--dark-fill-o, 100%), transparent ) | --dark-fill, --dark-fill-o | dark, opacity |
Stroke
responsive (sm–2xl) src/css/value-driven/stroke.css
Value-driven
| Selector | Style | Variables | Flags |
|---|---|---|---|
.stroke | stroke: var(--stroke) | --stroke | — |
.dark:stroke | stroke: var(--dark-stroke) | --dark-stroke | dark |
Stroke Opacity
responsive (sm–2xl) src/css/value-driven/stroke-opacity.css
Value-driven
| Selector | Style | Variables | Flags |
|---|---|---|---|
.stroke/o | stroke: color-mix( in oklab, var(--stroke) var(--stroke-o, 100%), transparent ) | --stroke, --stroke-o | opacity |
.dark:stroke/o | stroke: color-mix( in oklab, var(--dark-stroke) var(--dark-stroke-o, 100%), transparent ) | --dark-stroke, --dark-stroke-o | dark, opacity |
Stroke Width
responsive (sm–2xl) src/css/value-driven/stroke-width.css
Value-driven
| Selector | Style | Variables | Flags |
|---|---|---|---|
.stroke-w | stroke-width: var(--stroke-w) | --stroke-w | — |