MonorailCssOptions
Pennington.MonorailCss
Options for configuring the Monorail CSS framework integration.
Properties
ColorSchemeIColorScheme- Gets or sets the color scheme for the site. The default is a NamedColorScheme with Blue (primary), Purple (accent), and Slate (base).
CustomCssFrameworkSettingsFunc<CssFrameworkSettings, CssFrameworkSettings>- Gets or sets a function to customize the CSS framework settings before construction. The callback receives a fully-baked
CssFrameworkSettingswith Pennington's defaults already applied (theme, applies, scrollbar utilities, prose rules) and returns the settings the framework is built from. ExtendProseCustomizationFunc<ProseCustomization, ProseCustomization>- Wraps the baseline
ProseCustomizationPennington 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. ExtraStylesstring- Gets or sets any extra CSS styles to be included in the generated stylesheet.
SyntaxThemeSyntaxTheme- Gets or sets the syntax-highlight color theme. Controls the Tailwind palettes used by
.hljs-*token classes, independent of the site's brandColorScheme.
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; }
}