{"id":17348110,"url":"https://github.com/userdocs/docusaurus-vscode-to-prism","last_synced_at":"2025-03-27T11:22:21.003Z","repository":{"id":107483816,"uuid":"602560908","full_name":"userdocs/docusaurus-vscode-to-prism","owner":"userdocs","description":"A vscode theme converter","archived":false,"fork":false,"pushed_at":"2023-10-24T02:09:06.000Z","size":532,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T15:45:59.242Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/userdocs.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":"2023-02-16T13:26:29.000Z","updated_at":"2023-07-19T18:22:05.000Z","dependencies_parsed_at":"2025-02-01T15:45:24.987Z","dependency_job_id":null,"html_url":"https://github.com/userdocs/docusaurus-vscode-to-prism","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/userdocs%2Fdocusaurus-vscode-to-prism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userdocs%2Fdocusaurus-vscode-to-prism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userdocs%2Fdocusaurus-vscode-to-prism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userdocs%2Fdocusaurus-vscode-to-prism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/userdocs","download_url":"https://codeload.github.com/userdocs/docusaurus-vscode-to-prism/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245832855,"owners_count":20679731,"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-10-15T16:51:08.358Z","updated_at":"2025-03-27T11:22:20.992Z","avatar_url":"https://github.com/userdocs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docusaurus-vscode-to-prism\n\nA vscode theme converter using this tool\n\nhttps://github.com/FormidableLabs/prism-react-renderer/tree/master/tools/themeFromVsCode\n\nIt has been slightly modified to output a working Docusaurus prism js file with no further user intervention required.\n\n## How it works\n\nIt will take any vscode theme json files in the `vscode-themes` directory and create Docusaurus compatible themes from them and place them in the `docusaurus-themes/src/prism/themes` directory.\n\n## How to use it\n\nThis is done either by a workflow in this repo. Fork it and activate the workflows. It should just work.\n\nBy cloning the locally repo, adding your themes and running the `build.sh` script.\n\n## Installation\n\nCopy the themes you want from the\n\n```text\ndocusaurus-themes/src/prism/themes/themeName\n```\n\nPlace them in this folder, create it if it does not exist\n\n```text\nsrc/prism/themes/themeName\n```\n\nNow in your `docusaurus.config.js` modify the theme lines to this, where it points to the themes you selected.\n\nHere the example is the `bearded-theme-black-ruby.js` from the `bearded` folder.\n\n```js\nconst lightCodeTheme = require(\"./src/prism/themes/bearded/bearded-theme-black-ruby.js\");\nconst darkCodeTheme = require(\"./src/prism/themes/bearded/bearded-theme-black-ruby.js\");\n```\n\nYou can take a single theme `js` file and rename to `index.js` and place it in a folder. The point to the folder and it will autoload this theme.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserdocs%2Fdocusaurus-vscode-to-prism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuserdocs%2Fdocusaurus-vscode-to-prism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserdocs%2Fdocusaurus-vscode-to-prism/lists"}