This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

MonorailCssOptions Pennington.MonorailCss

Options for configuring the Monorail CSS framework integration.

Properties

ColorScheme IColorScheme
Gets or sets the color scheme for the site. The default is a NamedColorScheme with Blue (primary), Purple (accent), and Slate (base).
CustomCssFrameworkSettings Func<CssFrameworkSettings, CssFrameworkSettings>
Gets or sets a function to customize the CSS framework settings before construction. The callback receives a fully-baked CssFrameworkSettings with Pennington's defaults already applied (theme, applies, scrollbar utilities, prose rules) and returns the settings the framework is built from.
ExtendProseCustomization Func<ProseCustomization, ProseCustomization>
Wraps the baseline ProseCustomization Pennington registers, letting consumers add or override prose rules without rebuilding the customization from scratch. The callback receives the framework's prose customization and returns the one used.
ExtraStyles string
Gets or sets any extra CSS styles to be included in the generated stylesheet.
SyntaxTheme SyntaxTheme
Gets or sets the syntax-highlight color theme. Controls the Tailwind palettes used by .hljs-* token classes, independent of the site's brand ColorScheme.

Pennington.MonorailCss.MonorailCssOptions

namespace Pennington.MonorailCss;

/// Options for configuring the Monorail CSS framework integration.
public class MonorailCssOptions
{
    /// Gets or sets the color scheme for the site. The default is a NamedColorScheme with Blue (primary), Purple (accent), and Slate (base).
    
public IColorScheme ColorScheme { get; set; }
/// Gets or sets a function to customize the CSS framework settings before construction. The callback receives a fully-baked CssFrameworkSettings with Pennington's defaults already applied (theme, applies, scrollbar utilities, prose rules) and returns the settings the framework is built from.
public Func<CssFrameworkSettings, CssFrameworkSettings> CustomCssFrameworkSettings { get; set; }
/// Wraps the baseline ProseCustomization Pennington registers, letting consumers add or override prose rules without rebuilding the customization from scratch. The callback receives the framework's prose customization and returns the one used.
public Func<ProseCustomization, ProseCustomization> ExtendProseCustomization { get; set; }
/// Gets or sets any extra CSS styles to be included in the generated stylesheet.
public string ExtraStyles { get; set; }
/// Gets or sets the syntax-highlight color theme. Controls the Tailwind palettes used by .hljs-* token classes, independent of the site's brand ColorScheme.
public SyntaxTheme SyntaxTheme { get; set; }
}