Class AutogenerateCssColorsAttribute
- Namespace
- BlazOrbit.Components
- Assembly
- BlazOrbit.Core.dll
Marks a partial static class so the ColorClassGenerator expands it into per-color
nested partial classes (Default + lighten/darken variants) at compile time.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class AutogenerateCssColorsAttribute : Attribute
- Inheritance
-
objectAttributeAutogenerateCssColorsAttribute
Constructors
AutogenerateCssColorsAttribute(int)
Creates the attribute with the desired lighten/darken variant level count.
public AutogenerateCssColorsAttribute(int variantLevels = 5)
Parameters
variantLevelsint
Properties
VariantLevels
Number of lighten/darken steps emitted per color.
public int VariantLevels { get; }
Property Value
- int