Class PaletteColor
- Namespace
- BlazOrbit.Components
- Assembly
- BlazOrbit.Core.dll
Strongly-typed accessor for a palette CSS custom property. Implicitly converts to a
var(--palette-*) reference for direct use in CSS values.
public sealed class PaletteColor
- Inheritance
-
objectPaletteColor
Properties
Background
var(--palette-background).
public static PaletteColor Background { get; }
Property Value
BackgroundContrast
var(--palette-background-contrast).
public static PaletteColor BackgroundContrast { get; }
Property Value
Border
var(--palette-border).
public static PaletteColor Border { get; }
Property Value
Error
var(--palette-error).
public static PaletteColor Error { get; }
Property Value
ErrorContrast
var(--palette-error-contrast).
public static PaletteColor ErrorContrast { get; }
Property Value
Highlight
var(--palette-highlight).
public static PaletteColor Highlight { get; }
Property Value
Info
var(--palette-info).
public static PaletteColor Info { get; }
Property Value
InfoContrast
var(--palette-info-contrast).
public static PaletteColor InfoContrast { get; }
Property Value
Primary
var(--palette-primary).
public static PaletteColor Primary { get; }
Property Value
PrimaryContrast
var(--palette-primary-contrast).
public static PaletteColor PrimaryContrast { get; }
Property Value
Secondary
var(--palette-secondary).
public static PaletteColor Secondary { get; }
Property Value
SecondaryContrast
var(--palette-secondary-contrast).
public static PaletteColor SecondaryContrast { get; }
Property Value
Shadow
var(--palette-shadow).
public static PaletteColor Shadow { get; }
Property Value
Success
var(--palette-success).
public static PaletteColor Success { get; }
Property Value
SuccessContrast
var(--palette-success-contrast).
public static PaletteColor SuccessContrast { get; }
Property Value
Surface
var(--palette-surface).
public static PaletteColor Surface { get; }
Property Value
SurfaceContrast
var(--palette-surface-contrast).
public static PaletteColor SurfaceContrast { get; }
Property Value
Warning
var(--palette-warning).
public static PaletteColor Warning { get; }
Property Value
WarningContrast
var(--palette-warning-contrast).
public static PaletteColor WarningContrast { get; }
Property Value
Methods
ToString()
public override string ToString()
Returns
- string
Operators
implicit operator string(PaletteColor)
Implicit conversion to a CSS var(...) reference.
public static implicit operator string(PaletteColor p)
Parameters
Returns
- string