Table of Contents

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
object
StyleOverrides

Remarks

Styling priority:

  1. USS class (BEM) — for all static, predictable styles.
  2. USS Custom Properties — for theme / config values.
  3. 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.