View Source Pyro.Makeup.Style (Pyro v0.0.2)
Tooling to configure and generate light/dark Makeup
HTML stylesheets for syntax highlighting in code block components.
If you simply wish to use a built-in theme, check out the makeup demo. You can see previews of each style for most supported languages.
For inspiration on customizing overrides, check out the built-in Makeup styles and adapt them suitably.
The stylesheets can be configured in your override file by passing a built-in or custom style function:
defmodule MyApp.MyOverrides do
use Pyro.Overrides,
makeup_light: &Makeup.Styles.HTML.AutumnStyle.style/0,
makeup_dark: &Makeup.Styles.HTML.MonokaiStyle.style/0
Automated Generation
The stylesheet will be automatically generated by the Pyro compiler and inserted into
assets/css/pyro.css
, so aside from override configuration this module can be ignored.