Table of Contents

Constructor StyleRecipe

Namespace
Velvet
Assembly
Velvet.Docs.dll

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).

public StyleRecipe(string @base, Dictionary<string, Dictionary<string, string>> variants, Dictionary<string, string>? defaultVariants = null, StyleRecipe.CompoundVariant[]? compoundVariants = null)

Parameters

base string
variants Dictionary<string, Dictionary<string, string>>
defaultVariants Dictionary<string, string>
compoundVariants CompoundVariant[]