Expand description
Visual spec wire types: outline, shadows, line metrics, gradients, and per-side border colors.
Structs§
- Angular
Stop - A single color stop for a conic gradient.
angleis the stop’s angle in degrees (absent → auto-spaced);hintas inGradientStop. - Border
Color Spec - Border color: a single CSS color applied to all four sides, or a
{ top, right, bottom, left }object setting sides individually. Omitted sides decode toNone(painted transparent — bevy’sBorderColordefault). - BoxShadow
Spec - A single drop shadow.
- Conic
Gradient Spec - Gradient
Stop - A single color stop for a linear/radial gradient.
positionis where the color sits along the gradient line (aLength); absent → auto-spaced.hintis the0.0..=1.0interpolation midpoint between this stop and the next (default0.5). - Linear
Gradient Spec - Outline
Spec - Outline drawn around (outside) the node’s border box.
- Radial
Gradient Spec - Text
Shadow Spec - A single text drop shadow.
offsetX/offsetYare displacement in logical pixels (absent → bevy’s default of4.0);colordefaults to bevy’s translucent black when unset.
Enums§
- BoxShadow
List - A
boxShadowvalue: one shadow or a stacked list (CSSbox-shadow: a, b, …). - Gradient
List - A
backgroundGradient/borderGradientvalue: one gradient or a layered list. - Gradient
Spec - One gradient, discriminated by its
typefield on the wire. - Letter
Spacing Spec - Letter spacing for a
<text>. A bare number is logical pixels; a string carries a unit ("2px","0.1rem"/"0.1em"for a font-size multiple, or"normal");{ "rem": n }is a multiple of the font size (legacy object form). - Line
Height Spec - Line height for a
<text>. A bare number is a multiple of the font size (RelativeToFont); a string carries a unit ("20px"absolute,"1.5"/"1.5em"a multiple);{ "px": n }is an absolute pixel height (legacy object form). - Radial
Shape Spec - The size/shape of a radial gradient. Either a keyword
(
"closestSide" | "farthestSide" | "closestCorner" | "farthestCorner", default"closestCorner") or an explicit{ circle }/{ ellipse }.
Type Aliases§
- Color
Space - Color space the gradient interpolates in (
"oklab"(default),"oklch","oklchLong","srgb","linearRgb","hsl","hslLong","hsv","hsvLong"). - Gradient
Position - Radial/conic gradient center, given as a named anchor (
"center","top","topLeft", …). ArbitraryVal-offset centers are not yet supported.