Table of Contents

Class StyleRecipe

Namespace
Velvet
Assembly
Velvet.Docs.dll

Class-name builder utility with named variant axes. Specify a value for each variant axis (visual, size, etc.) and expand to the corresponding classes.

public sealed class StyleRecipe
Inheritance
object
StyleRecipe

Constructors

StyleRecipe(string, Dictionary<string, Dictionary<string, string>>, Dictionary<string, string>?, CompoundVariant[]?)

Builds a recipe from a base class string, a per-axis variant→classes map, optional per-axis default values, and optional compound variants (classes applied when several axes match together).

Methods

Apply(string, params (string axis, string value)[])

Named variant axes plus an extra class appended at the end.

Apply(params (string axis, string value)[])

Expands by named variant axes. Unspecified axes fall back to defaultVariants.