Skip to main content

syntax_highlight_css

Function syntax_highlight_css 

Source
pub fn syntax_highlight_css() -> &'static str
Expand description

Returns CSS content (without <style> tags) for syntax highlighting.

Defines CSS custom properties for token colors under two selectors:

  • [data-theme="dark"] — colors for dark backgrounds
  • [data-theme="light"] — colors for light backgrounds

Inject this once via document::Style in your layout component.