{"id":16695610,"url":"https://github.com/hreikin/gen-pygments-css","last_synced_at":"2026-04-21T20:03:10.682Z","repository":{"id":56827236,"uuid":"477807597","full_name":"hreikin/gen-pygments-css","owner":"hreikin","description":"Generate CSS stylesheets for each Pygments supported style.","archived":false,"fork":false,"pushed_at":"2022-04-06T10:37:49.000Z","size":676,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-26T03:49:35.873Z","etag":null,"topics":["css","pygments","pygments-css","pygments-style","python","stylesheets"],"latest_commit_sha":null,"homepage":"https://hreikin.github.io/gen-pygments-css/","language":"CSS","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/hreikin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-04T17:37:41.000Z","updated_at":"2023-04-17T09:24:50.000Z","dependencies_parsed_at":"2022-09-13T08:31:44.432Z","dependency_job_id":null,"html_url":"https://github.com/hreikin/gen-pygments-css","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hreikin/gen-pygments-css","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hreikin%2Fgen-pygments-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hreikin%2Fgen-pygments-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hreikin%2Fgen-pygments-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hreikin%2Fgen-pygments-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hreikin","download_url":"https://codeload.github.com/hreikin/gen-pygments-css/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hreikin%2Fgen-pygments-css/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28103698,"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","status":"online","status_checked_at":"2025-12-28T02:00:05.685Z","response_time":62,"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":["css","pygments","pygments-css","pygments-style","python","stylesheets"],"created_at":"2024-10-12T17:07:46.098Z","updated_at":"2025-12-28T20:27:34.409Z","avatar_url":"https://github.com/hreikin.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv id=\"top\"\u003e\u003c/div\u003e\n\u003c!--\n*** Thanks for checking out the Best-README-Template. If you have a suggestion\n*** that would make this better, please fork the repo and create a pull request\n*** or simply open an issue with the tag \"enhancement\".\n*** Don't forget to give the project a star!\n*** Thanks again! Now go create something AMAZING! :D\n--\u003e\n\n\n\n\u003c!-- PROJECT SHIELDS --\u003e\n\u003c!--\n*** I'm using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n--\u003e\n[![Commits][commit-shield]][commit-url]\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n![PyPI - Downloads](https://img.shields.io/pypi/dm/gen-pygments-css?style=for-the-badge)    \u003c!-- This link wont work in the reference style. --\u003e\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\u003c!-- [![LinkedIn][linkedin-shield]][linkedin-url] --\u003e\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003c!-- \u003ca href=\"https://github.com/hreikin/gen-pygments-css\"\u003e\n    \u003cimg src=\"docs/assets/logo.png\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e --\u003e\n\n\u003ch3 align=\"center\"\u003eGenerate Pygments CSS\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    Generate CSS stylesheets for each Pygments supported style.\n    \u003cbr /\u003e\n    \u003ca href=\"https://hreikin.github.io/gen-pygments-css/\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/hreikin/gen-pygments-css\"\u003eView Demo\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/hreikin/gen-pygments-css/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/hreikin/gen-pygments-css/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003c!-- \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\u003c/li\u003e --\u003e\n        \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n        \u003cul\u003e\n          \u003cli\u003e\u003ca href=\"#install-with-pip\"\u003eInstall With PIP\u003c/a\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ca href=\"#install-from-source\"\u003eInstall From Source\u003c/a\u003e\u003c/li\u003e\n        \u003c/ul\u003e\n        \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#roadmap\"\u003eRoadmap\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#acknowledgments\"\u003eAcknowledgments\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\n\u003c!-- [![Product Name Screen Shot][product-screenshot]](https://example.com) --\u003e\n\nGenerate CSS stylesheets for each Pygments supported style.\n\n- Github Link: [https://github.com/hreikin/gen-pygments-css](https://github.com/hreikin/gen-pygments-css)  \n- PyPi Link: [https://pypi.org/project/gen-pygments-css/](https://pypi.org/project/gen-pygments-css/)  \n- PDF Documentation: [https://hreikin.github.io/gen-pygments-css/pdf/gen-pygments-css-documentation-LATEST.pdf](https://hreikin.github.io/gen-pygments-css/pdf/gen-pygments-css-documentation-LATEST.pdf)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n### Built With\n\n- [Pygments](https://github.com/pygments/pygments)\n- [Python](https://www.python.org/)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n\n\u003c!-- This is an example of how you may give instructions on setting up your project locally.\nTo get a local copy up and running follow these simple example steps.\n\n### Prerequisites\n\nThis is an example of how to list things you need to use the software and how to install them.\n* npm\n  ```sh\n  npm install npm@latest -g\n  ``` --\u003e\n\n### Installation\n\nTo get a local copy up and running choose one of the below install instructions and follow the steps provided.\n\n#### Install With PIP\n\nThe simplest way to install `gen-pygments-css` is to use `pip`:\n\n```sh\npip install gen-pygments-css\n```\n\n#### Install From Source\n\nAlternatively you can install from source by following the steps below:\n\n1. Clone the repo:\n   ```sh\n   git clone https://github.com/hreikin/gen-pygments-css.git\n   cd gen-pygments-css/\n   ```\n2. Create and source a Python virtual environment:\n   ```sh\n   python3 -m venv .venv\n   source .venv/bin/activate\n   ```\n3. Install requirements with `pip`:\n   ```sh\n   pip install -r requirements.txt\n   ```\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- USAGE EXAMPLES --\u003e\n### Usage\n\nCSS stylesheets for all `Pygments` styles are output into a created `css/` \ndirectory by default, this can be overridden. \n    \n```python\n\nfrom gen_pygments_css.gen_pygments_css import gen_pygments_css\n        \n# Called with no arguments.\ngen_pygments_css()\n       \n# Called with a string passed into the styles_list.\ngen_pygments_css(styles_list=\"monokai\")\n        \n# Called with a list of strings passed into the styles_list.\ngen_pygments_css(styles_list=[\"monokai\", \"stata-dark\"])\n       \n# Call with a CSS selector defined.\ngen_pygments_css(css_selector=\".highlight\")\n\n# Call with a multiple arguments defined.\ngen_pygments_css(css_selector=\".highlight\", styles_list=[\"monokai\", \"stata-dark\"])\n\n# Call with a relative custom css_dir.\ngen_pygments_css(css_dir=\"assets/styles/\")\n\n# Call with an absolute custome css_dir.\ngen_pygments_css(css_dir=\"/home/user/project/assets/styles/\")\n        \n# Call the function and create a list of strings containing the paths of all \n# stylesheets.\nmy_list = gen_pygments_css()\n\n```\n\n_For more examples, please refer to the [Documentation](https://hreikin.github.io/gen-pygments-css)_\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- ROADMAP --\u003e\n## Roadmap\n\n\u003c!-- - [ ] Feature 1\n- [ ] Feature 2\n- [ ] Feature 3\n    - [ ] Nested Feature --\u003e\n\nSee the [open issues](https://github.com/hreikin/gen-pygments-css/issues) for a full list of proposed features (and known issues).\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See `LICENSE.txt` for more information.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\nGithub Link: [https://github.com/hreikin/gen-pygments-css](https://github.com/hreikin/gen-pygments-css)  \nPyPi Link: [https://pypi.org/project/gen-pygments-css/](https://pypi.org/project/gen-pygments-css/)  \nPDF Documentation: [https://hreikin.github.io/gen-pygments-css/pdf/gen-pygments-css-documentation-LATEST.pdf](https://hreikin.github.io/gen-pygments-css/pdf/gen-pygments-css-documentation-LATEST.pdf)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- ACKNOWLEDGMENTS --\u003e\n\u003c!-- ## Acknowledgments\n\n* []()\n* []()\n* []()\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e --\u003e\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/hreikin/gen-pygments-css.svg?style=for-the-badge\n[contributors-url]: https://github.com/hreikin/gen-pygments-css/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/hreikin/gen-pygments-css.svg?style=for-the-badge\n[forks-url]: https://github.com/hreikin/gen-pygments-css/network/members\n[stars-shield]: https://img.shields.io/github/stars/hreikin/gen-pygments-css.svg?style=for-the-badge\n[stars-url]: https://github.com/hreikin/gen-pygments-css/stargazers\n[issues-shield]: https://img.shields.io/github/issues/hreikin/gen-pygments-css.svg?style=for-the-badge\n[issues-url]: https://github.com/hreikin/gen-pygments-css/issues\n[license-shield]: https://img.shields.io/github/license/hreikin/gen-pygments-css.svg?style=for-the-badge\n[license-url]: https://github.com/hreikin/gen-pygments-css/blob/master/LICENSE.txt\n\u003c!-- [linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge\u0026logo=linkedin\u0026colorB=555 --\u003e\n\u003c!-- [linkedin-url]: https://linkedin.com/in/linkedin_username --\u003e\n\u003c!-- [product-screenshot]: docs/assets/screenshot.png --\u003e\n[commit-shield]: https://img.shields.io/github/commit-activity/m/hreikin/gen-pygments-css?style=for-the-badge\n[commit-url]: https://github.com/hreikin/gen-pygments-css/graphs/commit-activity","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhreikin%2Fgen-pygments-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhreikin%2Fgen-pygments-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhreikin%2Fgen-pygments-css/lists"}