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

Skip to main content Skip to navigation

MonorailCssOptions Pennington.MonorailCss

Options for configuring the Monorail CSS framework integration.

Properties

ColorScheme Pennington.MonorailCss.IColorScheme
Default: new NamedColorScheme { PrimaryColorName = ColorName.Blue, AccentColorName = ColorName.Purple, BaseColorName = ColorName.Slate }
Gets or sets the color scheme for the site. The default is a NamedColorScheme with Blue (primary), Purple (accent), and Slate (base).
ContentPaths string[]
Default: []
Gets or sets file paths (relative to the web root) to scan for CSS class usage at startup. Similar to Tailwind's content configuration — ensures classes used only in client-side JS or other non-HTML files are included in the generated stylesheet.
CustomCssFrameworkSettings System.Func<CssFrameworkSettings, CssFrameworkSettings>
Default: settings => settings
Gets or sets a function to customize the CSS framework settings. This allows for advanced customization of the MonorailCSS framework.
ExtraStyles string
Default: string.Empty
Gets or sets any extra CSS styles to be included in the generated stylesheet.
SyntaxTheme Pennington.MonorailCss.SyntaxTheme
Default: SyntaxTheme.Default
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; init; } = new NamedColorScheme
{
    PrimaryColorName = ColorName.Blue,
    AccentColorName = ColorName.Purple,
    BaseColorName = ColorName.Slate
};
/// Gets or sets file paths (relative to the web root) to scan for CSS class usage at startup. Similar to Tailwind's content configuration — ensures classes used only in client-side JS or other non-HTML files are included in the generated stylesheet.
public string[] ContentPaths { get; init; } = [];
/// Gets or sets a function to customize the CSS framework settings. This allows for advanced customization of the MonorailCSS framework.
public Func<CssFrameworkSettings, CssFrameworkSettings> CustomCssFrameworkSettings { get; init; } =
    settings => settings;
/// Gets or sets any extra CSS styles to be included in the generated stylesheet.
public string ExtraStyles { get; init; } = string.Empty;
/// 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; init; } = SyntaxTheme.Default;
}