{"id":20072255,"url":"https://github.com/mapnik/cascadenik","last_synced_at":"2025-05-05T20:33:08.151Z","repository":{"id":62560949,"uuid":"828063","full_name":"mapnik/Cascadenik","owner":"mapnik","description":"Cascading Sheets Of Style for Mapnik","archived":false,"fork":false,"pushed_at":"2017-05-18T06:45:15.000Z","size":3229,"stargazers_count":111,"open_issues_count":13,"forks_count":20,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-20T13:19:01.485Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/mapnik/Cascadenik/wiki/Cascadenik","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mapnik.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-08-10T05:25:27.000Z","updated_at":"2024-05-09T13:25:28.000Z","dependencies_parsed_at":"2022-11-03T15:00:32.265Z","dependency_job_id":null,"html_url":"https://github.com/mapnik/Cascadenik","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapnik%2FCascadenik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapnik%2FCascadenik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapnik%2FCascadenik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapnik%2FCascadenik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mapnik","download_url":"https://codeload.github.com/mapnik/Cascadenik/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252571403,"owners_count":21769828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T14:39:13.270Z","updated_at":"2025-05-05T20:33:06.948Z","avatar_url":"https://github.com/mapnik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Cascadenik\n==========\n\nCascadenik implements cascading stylesheets for Mapnik.\n\nIt’s an abstraction layer and preprocessor that converts special, CSS-like\nsyntax into Mapnik-compatible style definitions. It’s easier to write complex\nstyle rules using the alternative syntax, because it allows for separation of\nsymbolizers and provides a mechanism for inheritance.\n\nCascadenik supports many of Mapnik’s features in a simple declarative form:\n\n    /* Define a few colors */\n    @black: #000;\n    @orange: #f90;\n    \n    /* Start with a white background */\n    Map\n    {\n        map-bgcolor: #fff;\n    }\n    \n    /* Draw roads as orange lines */\n    #roads\n    {\n        /* Usually, 3px wide */\n        line-width: 3;\n        line-color: @orange;\n        \n        /* Make the important ones wider */\n        \u0026[kind=major] { line-width: 4 }\n        \u0026[kind=highway] { line-width: 5 }\n        \n        /* Add the road names in black */\n        name\n        {\n            text-placement: line;\n            text-face-name: \"DejaVu Sans Book\";\n            text-fill: @black;\n            text-size: 12;\n        }\n    }\n\nSee more examples at https://github.com/mapnik/Cascadenik/wiki/Examples.\n\nUsage\n-----\n\nSee `INSTALL.md` for installation instructions.\n\nSee the `doc/` folder for more usage examples.\n\nUnroll the rules in example.mss and show their cascade order:\n\n    % cascadenik-style.py example.mss \u003e example-ordered-unrolled.mss\n\nCompile `example.mml` into a Mapnik-suitable XML file:\n\n    % cascadenik-compile.py example.mml example-compiled.xml\n\nRender a MML file directly to an image using nik2img.py:\n\n    % nik2img.py example.mml example.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapnik%2Fcascadenik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmapnik%2Fcascadenik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapnik%2Fcascadenik/lists"}