Skip to main content

theme_css

Function theme_css 

Source
pub fn theme_css(theme_name: &str) -> Option<String>
Expand description

Generates a CSS stylesheet for the named built-in theme.

Returns None if the theme is not present. The generated CSS targets the class names emitted by apply_syntax_highlighting and the comrak adapter, so callers can either inline the result in a <style> block or write it to a .css file.