     else
       throw new SVGTilerException "Unrecognized extension in filename #{filename}"
 
+class Style extends Input
+  load: (@css) ->
+
+class CSSStyle extends Style
+  @title: "CSS style file"
+  parse: (filedata) ->
+    @load filedata
+
+class Styles
+  constructor: (@styles = []) ->
+  push: (map) ->
+    @styles.push map
+
 class Mapping extends Input
   load: (data) ->
     @map = {}

        filename.base = filename.base[...-filename.ext.length] + '.svg'
      filename = path.format filename
    console.log '->', filename
    fs.writeFileSync filename, @renderSVG mappings
    filename
  renderSVGDOM: (mappings) ->
    ###
    Main rendering engine, returning an xmldom object for the whole document.
    Also saves the table of symbols in `@symbols`, the corresponding

      filename2.base += @constructor.filenameSeparator + drawing.subname
    filename2.base += extension
    path.format filename2
  writeSVG: (mappings, styles, filename) ->
    for drawing in @drawings
      drawing.writeSVG mappings, styles, @subfilename '.svg', drawing
  writeTeX: (filename) ->
    for drawing in @drawings
      drawing.writeTeX @subfilename '.svg_tex', drawing
