syntax

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateChromaCSS

func GenerateChromaCSS(lightTheme, darkTheme string) (string, error)

GenerateChromaCSS produces CSS rules for syntax highlighting from two Chroma style names. The light theme CSS is emitted unscoped; the dark theme CSS is wrapped in [data-theme="dark"] { } using CSS nesting. Both are wrapped in @layer sarde.components so they participate in the cascade correctly.

func GenerateStyleCSS

func GenerateStyleCSS(name string) (string, error)

GenerateStyleCSS produces CSS rules for a single Chroma style.

func IsKnownStyle

func IsKnownStyle(name string) bool

IsKnownStyle reports whether name matches a built-in Chroma style.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL