Skip to main content

render_html_css

Function render_html_css 

Source
pub fn render_html_css() -> String
Expand description

The canonical chord-over-lyrics CSS that the full-document renderers embed inside <style>.

Returns the default-configuration variant (flex-wrap: wrap on the .line rule, matching settings.wraplines: true). To obtain the CSS for a non-default settings.wraplines, call render_html_css_with_config instead.

Pair this with render_song_body / render_songs_body when the consumer is supplying its own document envelope: inline the returned string inside a <style> block, ship it as a separate file referenced via <link rel="stylesheet">, or merge it into the host’s existing stylesheet. The contract is byte-stable; consumers can hash the result for cache-busting filenames.