Table of Contents

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
object
Attribute
AutogenerateCssColorsAttribute

Constructors

AutogenerateCssColorsAttribute(int)

Creates the attribute with the desired lighten/darken variant level count.

public AutogenerateCssColorsAttribute(int variantLevels = 5)

Parameters

variantLevels int

Properties

VariantLevels

Number of lighten/darken steps emitted per color.

public int VariantLevels { get; }

Property Value

int