Enum VelvetFontWeight
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
The numeric font-weight scale (font-thin … font-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 = 900Bold = 700ExtraBold = 800ExtraLight = 200Light = 300Medium = 500Normal = 400SemiBold = 600Thin = 100
Remarks
Equivalent to Tailwind CSS's font-weight utility scale for users migrating from Tailwind.