The CSS theme mapping module. Provides two public functions:

  • ParseCss: Parses a CSS string/file into a Theme object
  • SerializeCss: Serializes a Theme object to a CSS string/file

CSS Format: / Comments are supported /

@canvas { width: 800px; height: 600px; ppi: 96; base-font-size: 11pt; }

text { family: "sans-serif"; size: 11pt; color: #333333; face: plain; hjust: 0.5; vjust: 0.5; angle: 0; lineheight: 1.2; margin: 2pt 2pt 2pt 2pt; }

axis.title { face: bold; }

panel.grid.minor.y { blank: true; }

axis.ticks.length { length: 0.25cm; }

plot.margin { margin: 5pt 5pt 5pt 5pt; }

legend.position { value: right; }