railroad 0.3.9

A library to create syntax-diagrams as Scalable Vector Graphics
Documentation
/*
Railroad styling derived from mdBook's Ayu theme palette.
Palette source (MPL-2.0):
https://github.com/rust-lang/mdBook/blob/b90df240a318da0c59ec3efe6b75a58f63c6c459/crates/mdbook-html/front-end/css/variables.css
*/
svg.railroad {
background-color: hsl(210, 25%, 8%);
background-size: 15px 15px;
background-image: linear-gradient(to right, rgba(197, 197, 197, .05) 1px, transparent 1px),
		  linear-gradient(to bottom, rgba(197, 197, 197, .05) 1px, transparent 1px);
}

svg.railroad rect.railroad_canvas {
stroke-width: 0px;
fill: none;
}

svg.railroad path {
stroke-width: 3px;
stroke: #c5c5c5;
fill: none;
}

svg.railroad .debug {
stroke-width: 1px;
stroke: red;
}

svg.railroad text {
font: 14px monospace;
text-anchor: middle;
fill: #c5c5c5;
}

svg.railroad .nonterminal text {
font-weight: bold;
}

svg.railroad text.comment {
font: italic 12px monospace;
}

svg.railroad rect {
stroke-width: 3px;
stroke: #5c6773;
fill: #191f26;
}

svg.railroad g.labeledbox > rect {
stroke-width: 1px;
stroke: #5c6773;
stroke-dasharray: 5px;
fill: rgb(255, 180, 84);
fill-opacity: .1;
}