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
CommentColorName- requiredComments and quotes. Usually the site's base color.
DefaultSyntaxTheme- Default palette: Sky keywords, Emerald strings, Rose variables, Amber functions, Slate comments.
FunctionColorName- requiredFunction/method titles, parameters, built-ins.
KeywordColorName- requiredKeywords, class names, literals, selector tags.
StringColorName- requiredString literals, numbers, regular expressions.
VariableColorName- requiredVariables, 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; }
}