{"id":15154234,"url":"https://github.com/puttehi/chroma-styler","last_synced_at":"2026-03-02T04:02:30.329Z","repository":{"id":249183778,"uuid":"830699906","full_name":"puttehi/chroma-styler","owner":"puttehi","description":"https://github.com/alecthomas/chroma/ style generator, viewer and dumper","archived":false,"fork":false,"pushed_at":"2024-07-18T20:04:37.000Z","size":129,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T10:58:05.857Z","etag":null,"topics":["chroma","code","css","highlights","hugo","style","xml"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/puttehi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-18T19:56:00.000Z","updated_at":"2024-07-29T20:37:31.000Z","dependencies_parsed_at":"2024-07-19T03:49:12.942Z","dependency_job_id":"3e8f7f15-2da0-4c73-b1db-fd5308fc681f","html_url":"https://github.com/puttehi/chroma-styler","commit_stats":null,"previous_names":["puttehi/chroma-styler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/puttehi/chroma-styler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puttehi%2Fchroma-styler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puttehi%2Fchroma-styler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puttehi%2Fchroma-styler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puttehi%2Fchroma-styler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puttehi","download_url":"https://codeload.github.com/puttehi/chroma-styler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puttehi%2Fchroma-styler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29992286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["chroma","code","css","highlights","hugo","style","xml"],"created_at":"2024-09-26T17:20:20.836Z","updated_at":"2026-03-02T04:02:30.302Z","avatar_url":"https://github.com/puttehi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chroma code renderer custom style helper\n\nDid you want to customize your [Hugo](https://gohugo.io/) blogs code highlighting outside of the pre-made themes?\n\nDid you notice that it's hard to know what class you should be using for what language to get the desired results?\n\nDid you find out there's a bunch of Chroma token names that map to who-knows-what CSS class names?\n\nDid you manage to write some sort of XML already but have no idea how to map it into CSS?\n\nTry `chroma-styler` to\n\n- Render every supported language in a single HTML page to see what your styles look like\n  - (as well as getting every possible class you can even encounter in the single page)\n- Dump all the Chroma XML entry-\u003eCSS class name entries\n- Generate a CSS file ready to ship\n\n\u003cimg src=\"./docs/example.png\" width=\"644\" height=\"768\"\u003e\n\n## Usage\n\n### Style viewer\n\n```sh\ngo run cmd/chroma-styler/main.go -viewer -css data/syntax.catppuccin-machiato.example.css\nopen localhost:3000 # In web browser or through xdg-open :)\n```\n\nReplace the `-css` with your custom file.\n\n### Chroma token -\u003e CSS dumper\n\n```sh\ngo run cmd/chroma-styler/main.go -dump-types\n```\n\n### Chroma XML -\u003e CSS converter\n\n```sh\ngo run cmd/chroma-styler/main.go -input data/catppuccin-machiato.xml \u003e syntax.css\n```\n\nReplace `-input` with your Chroma-compatible XML file.\n\n\u003e If you want to get your Neovim highlights into an XML file, you can get [inspiration from my config tool](https://github.com/puttehi/nvim-puttehi-dark/tree/main?tab=readme-ov-file#chroma-xml-generator).\n\n### Updating generated samples\n\nBump the submodule commit and:\n\n```sh\ngo generate ./...\n```\n\nGenerator picks the first found sample.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fputtehi%2Fchroma-styler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fputtehi%2Fchroma-styler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fputtehi%2Fchroma-styler/lists"}