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

SyntaxTheme Pennington.MonorailCss

Color palette used by .hljs-* syntax-highlight token classes. Each slot is a Tailwind color name whose shades (300-800) are consumed by light/dark theme rules.

Properties

Comment ColorName
required
Comments and quotes. Usually the site's base color.
Default SyntaxTheme
Default palette: Sky keywords, Emerald strings, Rose variables, Amber functions, Slate comments.
Function ColorName
required
Function/method titles, parameters, built-ins.
Keyword ColorName
required
Keywords, class names, literals, selector tags.
String ColorName
required
String literals, numbers, regular expressions.
Variable ColorName
required
Variables, attribute names, symbols.

Pennington.MonorailCss.SyntaxTheme

namespace Pennington.MonorailCss;

/// Color palette used by .hljs-* syntax-highlight token classes. Each slot is a Tailwind color name whose shades (300-800) are consumed by light/dark theme rules.
public record SyntaxTheme
{
    /// Comments and quotes. Usually the site's base color.
    
public ColorName Comment { get; set; }
/// Default palette: Sky keywords, Emerald strings, Rose variables, Amber functions, Slate comments.
public static SyntaxTheme Default { get; }
/// Function/method titles, parameters, built-ins.
public ColorName Function { get; set; }
/// Keywords, class names, literals, selector tags.
public ColorName Keyword { get; set; }
/// String literals, numbers, regular expressions.
public ColorName String { get; set; }
/// Variables, attribute names, symbols.
public ColorName Variable { get; set; }
}