MonorailCssOptions Pennington.MonorailCss
Options for configuring the Monorail CSS framework integration.
Properties
ColorSchemePennington.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). ContentPathsstring[]- Default:
[]Gets or sets file paths (relative to the web root) to scan for CSS class usage at startup. Similar to Tailwind'scontentconfiguration — ensures classes used only in client-side JS or other non-HTML files are included in the generated stylesheet. CustomCssFrameworkSettingsSystem.Func<CssFrameworkSettings, CssFrameworkSettings>- Default:
settings => settingsGets or sets a function to customize the CSS framework settings. This allows for advanced customization of the MonorailCSS framework. ExtraStylesstring- Default:
string.EmptyGets or sets any extra CSS styles to be included in the generated stylesheet. SyntaxThemePennington.MonorailCss.SyntaxTheme- Default:
SyntaxTheme.DefaultGets 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; 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;
}