{"id":15600141,"url":"https://github.com/jason-fox/fox.jason.prismjs.dark-theme","last_synced_at":"2026-01-07T08:05:45.395Z","repository":{"id":119826083,"uuid":"204273440","full_name":"jason-fox/fox.jason.prismjs.dark-theme","owner":"jason-fox","description":"Extension of the DITA-OT Prism-JS plug-in to amend the look-and-feel of highlighted code","archived":false,"fork":false,"pushed_at":"2022-01-29T12:33:36.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T13:26:58.948Z","etag":null,"topics":["css-theme","dita-ot","dita-ot-html-plugin","dita-ot-pdf-plugin","dita-ot-plugin","html-css","prismjs"],"latest_commit_sha":null,"homepage":"https://jason-fox.github.io/dita-ot-plugins/prismjs","language":"XSLT","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jason-fox.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":"2019-08-25T09:31:39.000Z","updated_at":"2021-10-24T20:35:30.000Z","dependencies_parsed_at":"2023-06-26T01:13:37.540Z","dependency_job_id":null,"html_url":"https://github.com/jason-fox/fox.jason.prismjs.dark-theme","commit_stats":{"total_commits":35,"total_committers":1,"mean_commits":35.0,"dds":0.0,"last_synced_commit":"a4171d7a83b46ef74abb499d9dbc450f6aec6205"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jason-fox%2Ffox.jason.prismjs.dark-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jason-fox%2Ffox.jason.prismjs.dark-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jason-fox%2Ffox.jason.prismjs.dark-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jason-fox%2Ffox.jason.prismjs.dark-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jason-fox","download_url":"https://codeload.github.com/jason-fox/fox.jason.prismjs.dark-theme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246182187,"owners_count":20736707,"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":["css-theme","dita-ot","dita-ot-html-plugin","dita-ot-pdf-plugin","dita-ot-plugin","html-css","prismjs"],"created_at":"2024-10-03T02:01:42.909Z","updated_at":"2026-01-07T08:05:45.389Z","avatar_url":"https://github.com/jason-fox.png","language":"XSLT","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dark Theme CSS for DITA-OT [\u003cimg src=\"https://jason-fox.github.io/fox.jason.prismjs/prismjs.png\" align=\"right\" width=\"300\"\u003e](https://prismjsdita-ot.rtfd.io/)\n\n[![license](https://img.shields.io/github/license/jason-fox/fox.jason.prismjs.dark-theme.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n[![DITA-OT 3.7](https://img.shields.io/badge/DITA--OT-3.7-blue.svg)](http://www.dita-ot.org/3.7)\n\n\u003e This repository is now archived since the [default-theme.css](https://github.com/jason-fox/fox.jason.prismjs/blob/master/css/default-theme.css)\n\u003e is capable of handling Light and Dark modes.\n\nThis is a CSS Theme [DITA-OT Plug-in](https://www.dita-ot.org/plugins) to amend the look-and-feel of highlighted\n`\u003ccodeblock\u003e` elements. It extends the existing\n[DITA-OT Prism-JS plug-in](https://github.com/jason-fox/fox.jason.prismjs) to amend the CSS colors to align with the\n[Dark Theme](https://github.com/PrismJS/prism/blob/master/themes/prism-dark.css) from [Prism](https://prismjs.com/). It\ncan be used as a template for switching to other themes.\n\n\u003e ![](https://jason-fox.github.io/fox.jason.prismjs/highlighted-dark.png)\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eTable of Contents\u003c/strong\u003e\u003c/summary\u003e\n\n-   [Install](#install)\n    -   [Installing DITA-OT](#installing-dita-ot)\n    -   [Installing the Plug-in](#installing-the-plug-in)\n-   [Usage](#usage)\n-   [License](#license)\n\n\u003c/details\u003e\n\n## Install\n\nThe DITA-OT Dark Theme CSS plug-in has been tested against [DITA-OT 3.x](http://www.dita-ot.org/download). It is\nrecommended that you upgrade to the latest version.\n\n### Installing DITA-OT\n\n\u003ca href=\"https://www.dita-ot.org\"\u003e\u003cimg src=\"https://www.dita-ot.org/images/dita-ot-logo.svg\" align=\"right\" height=\"55\"\u003e\u003c/a\u003e\n\nThe Dark Theme CSS plug-in is an override for the standard [Prism-JS](https://github.com/jason-fox/fox.jason.prismjs)\nCSS theme\n\n-   Full installation instructions for downloading DITA-OT can be found\n    [here](https://www.dita-ot.org/3.7/topics/installing-client.html).\n\n    1.  Download the `dita-ot-3.7.zip` package from the project website at\n        [dita-ot.org/download](https://www.dita-ot.org/download)\n    2.  Extract the contents of the package to the directory where you want to install DITA-OT.\n    3.  **Optional**: Add the absolute path for the `bin` directory to the _PATH_ system variable.\n\n    This defines the necessary environment variable to run the `dita` command from the command line.\n\n```console\ncurl -LO https://github.com/dita-ot/dita-ot/releases/download/3.7/dita-ot-3.7.zip\nunzip -q dita-ot-3.7.zip\nrm dita-ot-3.7.zip\n```\n\n### Installing the Plug-in\n\n-   Run the plug-in installation commands:\n\n```console\ndita install https://github.com/doctales/org.doctales.xmltask/archive/master.zip\ndita install https://github.com/jason-fox/fox.jason.extend.css/archive/master.zip\ndita install https://github.com/jason-fox/fox.jason.prismjs/archive/master.zip\ndita install https://github.com/jason-fox/fox.jason.prismjs.dark-theme/archive/master.zip\n```\n\nThe `dita` command line tool requires no additional configuration.\n\n---\n\n## Usage\n\nRun any HTML dita transform e.g.:\n\n```console\nPATH_TO_DITA_OT/bin/dita -f html5 -o out -i document.ditamap\n```\n\nEach HTML output file will include an additional line in the `\u003chead\u003e`\n\n```html\n\u003chead\u003e\n    ...\n    \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"common-extended.css\"\u003e\n\u003c/head\u003e\n```\n\n`common-extended.css` will include the dark theme CSS.\n\n### Altering the static HTML look and feel\n\nAmend the `resource/prism-dark.css` file to alter the look-and-feel of the rendered HTML\n\nAdditional themes are available here:\n\n-   https://github.com/PrismJS/prism/tree/master/themes\n-   https://github.com/PrismJS/prism-themes/tree/master/themes\n\n### Altering the PDF look and feel\n\nThe `cfg/fo/attrs/prismjs-attr.xsl` provides the colors for the PDF output. The names of the attributes match the CSS\nfile.\n\n## License\n\n[Apache 2.0](LICENSE) © 2019 - 2022 Jason Fox\n\nThe Program includes the following additional software components which were obtained under license:\n\n-   prism.js - https://github.com/PrismJS/prism/ - **MIT license**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjason-fox%2Ffox.jason.prismjs.dark-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjason-fox%2Ffox.jason.prismjs.dark-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjason-fox%2Ffox.jason.prismjs.dark-theme/lists"}