HELIX.Coloring.Material

Namespace

Static Classes

BlendStatic Class
Functions for blending in HCT and CAM16.
ContrastStatic Class
Utility methods for calculating contrast given two colors, or calculating a color given one color and a contrast ratio.
DislikeAnalyzerStatic Class
Check and/or fix universally disliked colors.
HctSolverStatic Class
A class that solves the HCT equation.
MaterialColorExtensionsStatic Class
Extension methods for working with Unity colors and Material Color Utilities. Unity Color values are treated as gamma-space colors.
MaterialColorsStatic Class
Flutter-compatible Material color constants and exact fixed swatches. This uses the hard-coded Flutter Material 2 color tables, not generated tonal palettes.
MaterialColorUtilsStatic Class
Color science utilities. Utility methods for color science constants and color space conversions that aren't HCT or CAM16.
MaterialDynamicColorsStatic Class
Tokens, or named colors, in the Material Design system.

Enums

TonePolarityEnum
Describes the difference in tone between colors.
VariantEnum
Set of themes supported by Dynamic Color.

Classes

Cam16Sealed Class
CAM16, a color appearance model.
ContrastCurveSealed Class
A class containing a value that changes with the contrast level.
CorePalettesSealed Class
Comprises foundational palettes to build a color scheme.
DynamicColorSealed Class
A color that adjusts itself based on UI state provided by DynamicScheme.
DynamicSchemeClass
Constructed by a set of values representing the current UI state and provides a set of TonalPalettes.
FixedMaterialAccentColorSealed Class
Exact pre-created accent swatch. Use this when you need to match Flutter accent tables exactly.
FixedMaterialColorSealed Class
Exact pre-created standard swatch. Use this when you need to match Flutter's hard-coded tables exactly.
HctSealed Class
HCT, hue, chroma, and tone.
KeyColorSealed Class
Key color is a color that represents the hue and chroma of a tonal palette.
SchemeContentSealed Class
A scheme that places the source color in PrimaryContainer. Primary Container is the source color, adjusted for color relativity. Tertiary Container is an analogous color, specifically the analog found by increasing hue on a 6-division wheel.
SchemeExpressiveSealed Class
A Dynamic Color theme that is intentionally detached from the input color.
SchemeFidelitySealed Class
A scheme that places the source color in PrimaryContainer. Tertiary Container is the complement to the source color.
SchemeFruitSaladSealed Class
A playful theme - the source color's hue does not appear in the theme.
SchemeMonochromeSealed Class
A Dynamic Color theme that is grayscale.
SchemeNeutralSealed Class
A Dynamic Color theme that is near grayscale.
SchemeRainbowSealed Class
A playful theme - the source color's hue does not appear in the theme.
SchemeTonalSpotSealed Class
A Dynamic Color theme with low to medium colorfulness and a tertiary palette with a hue related to the source color.
SchemeVibrantSealed Class
A Dynamic Color theme that maxes out colorfulness at each position in the primary tonal palette.
TemperatureCacheSealed Class
Design utilities using color temperature theory. Analogous colors, complementary color, and cache to efficiently, lazily, generate data for calculations when needed.
TonalMaterialAccentColorSealed Class
Generated accent swatch backed by a tonal palette. Useful if you want accent-style indexing but still generated from HCT.
TonalMaterialColorSealed Class
Generated swatch backed by a tonal palette. This replaces the old MaterialColor wrapper behavior.
TonalPaletteSealed Class
A convenience class for retrieving colors that are constant in hue and chroma, but vary in tone.
ToneDeltaPairSealed Class
Documents a constraint between two DynamicColors, in which their tones must have a certain distance from each other.
ViewingConditionsSealed Class
In traditional color spaces, a color can be identified solely by the observer's measurement of the color. Color appearance models such as CAM16 also use information about the environment where the color was observed, known as the viewing conditions.

Abstract Classes

MaterialAccentColorAbstract Class
Base class for accent swatches with weights: 100, 200, 400, 700.
MaterialColorAbstract Class
Base class for standard Material-style swatches with weights: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900.
MaterialSwatchAbstract Class
Base type for color swatches. Supports a primary value, indexed shades, and conversion to Unity colors.

On this page