# CartoCSS

CartoCSS (short: Carto) is a language for map design. It is similar in syntax to CSS, but builds upon it with specific abilities to filter map data and by providing things like variables. It targets the Mapnik renderer and is able to generate Mapnik XML or a JSON variant of Mapnik XML. It can run from the command line or in the browser by using a bundler like Browserify.

Carto is an evolution of the Cascadenik idea and language, with an emphasis on speed and flexibility.

Contents:

- Installation & Usage
  - Installation
  - Usage from the command line
  - Usage from JavaScript (Carto API)
- Language Elements
  - Color
  - Float
  - URI
  - String
  - Boolean
  - Expressions
  - Numbers
  - Percentages
  - Functions
  - Mapnik Render-Time Variables
  - Controlling output of symbolizers and symbolizer attributes
- Styling Concepts
  - Attachments and Instances
  - Variables & Expressions
  - Nested Styles
  - FontSets
  - Filters
- MML File Structure
  - Properties Overview
  - Layer property
  - Stylesheet property
  - Example
- Mapnik API documentation
  - 3.0.20
  - 3.0.6
  - 3.0.3
  - 3.0.0
  - 2.3.0
  - 2.2.0
  - 2.1.1
  - 2.1.0
  - 2.0.2
  - 2.0.1
  - 2.0.0