Class StyleOverrides
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Limited set of inline styles applied directly to an element. Intentionally inconvenient to encourage class-based styling.
public sealed class StyleOverrides
- Inheritance
-
objectStyleOverrides
Remarks
Styling priority:
- USS class (BEM) — for all static, predictable styles.
- USS Custom Properties — for theme / config values.
- StyleOverrides — only for values that cannot be expressed via classes (dynamic textures, etc.).
Fields
- Empty
A shared instance with every override unset.
Properties
- BackgroundColor
Color computed at runtime.
- BackgroundImage
For dynamic textures.
- Color
Dynamic text color.