Table of Contents

Enum VelvetFontWeight

Namespace
Velvet
Assembly
Velvet.Docs.dll

The numeric font-weight scale (font-thinfont-black). The underlying integer value is the CSS weight, so a class such as font-semibold resolves to (int)VelvetFontWeight.SemiBold == 600.

UI Toolkit's -unity-font-style can only express the binary normal/bold axis, so a weight only renders faithfully when a weight-specific Font Asset is registered for it in a VelvetFontFamily. When no such asset exists Velvet folds the weight to the nearest binary value (>= 600 → bold, otherwise normal); see VelvetFonts.

public enum VelvetFontWeight

Fields

Black = 900
Bold = 700
ExtraBold = 800
ExtraLight = 200
Light = 300
Medium = 500
Normal = 400
SemiBold = 600
Thin = 100

Remarks

Equivalent to Tailwind CSS's font-weight utility scale for users migrating from Tailwind.