Sorbus is a SCSS Auto-Theme for the Rouge Higlighter.
Easily create a full Rouge Higlighter SCSS Theme by only defining 16 colors!
- Copy the
highlighter/
folder in you project SCSS directory - In your main SCSS file, import the color palette you want tu use, followed by an import to the sorbus file:
/// In this example we use the Solarized Dark color palette
@import "highlighter/palettes/solarized-dark";
@import "highlighter/sorbus";
If you don't import a color palette the default one (rowan.scss
) will be used automatically.
To avoid copy of unused data to your project, by design Sorbus in shipped with only 4 color palettes:
Rowan | Monokai | Solarized | Solarized Dark |
---|---|---|---|
Rowan is the default color palette, this means that if you avoid (or forget) to import a color palette it's the one that will be used.
In the palettes/
folder at the root if this repository you will find lots of cool color palettes you can use.
- After you copied the
highlighter/
folder in you project SCSS directory, go to the subfolderpalettes/
- Copy an existing color palette file and rename it to your preference
- Open the file and edit the color HEX values
- In your main SCSS file change the color palette you import by the name of the new color palette you created
Sorbus was created to be used with Jekyll (especially Jekyll Github Pages) since Rouge Highlighter is the default code highlighter used by Jekyll, and there is no theme file by default.
Sorbus has been created and is currently maintained by Ben Souchet.
The code present in this repository is under MIT license.