https://github.com/discourse/hljs-theme-picker
A Discourse theme component that allows you to change the highlight colors used in code blocks
https://github.com/discourse/hljs-theme-picker
discourse-theme-component
Last synced: 11 months ago
JSON representation
A Discourse theme component that allows you to change the highlight colors used in code blocks
- Host: GitHub
- URL: https://github.com/discourse/hljs-theme-picker
- Owner: discourse
- License: mit
- Created: 2020-04-01T05:42:35.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2025-06-06T11:30:11.000Z (about 1 year ago)
- Last Synced: 2025-06-06T12:32:44.092Z (about 1 year ago)
- Topics: discourse-theme-component
- Language: CSS
- Homepage:
- Size: 621 KB
- Stars: 3
- Watchers: 21
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hljs-theme-picker
A Discourse theme component that allows you to change the highlight colors used in code blocks.
### Developer updates
To update the list of themes, follow these steps:
- clone the HighlightJS repo
- copy over the CSS styles under assets
- update `about.json`
- update settings.yml
- prepend `body` to all CSS styles (in VSCode, you can do a search for `^.` on the assets folder and replace with `body .`)