This site provides a machine-readable index at /llms.txt.

Skip to main content Skip to navigation

ColorPaletteGenerator Pennington.MonorailCss

Generates OKLCH color palettes from hue values for use with MonorailCSS themes.

Methods

GenerateFromHue

#
public static ImmutableDictionary<string, string> GenerateFromHue(double hue);

Generates a primary and accent color palette based on a hue value in degrees (0-360)

Parameters

hue double

Returns

ImmutableDictionary<string, string>

Pennington.MonorailCss.ColorPaletteGenerator

namespace Pennington.MonorailCss;

/// Generates OKLCH color palettes from hue values for use with MonorailCSS themes.
public class ColorPaletteGenerator
{
    /// Generates a primary and accent color palette based on a hue value in degrees (0-360)
    
public static ImmutableDictionary<string, string> GenerateFromHue(double hue);
}