A hard fork of pygments-css with WCAG AA passing stylesheets.
When you're choosing a theme for your personal IDE feel free to choose whatever you'd like. But when you're publishing to the web, keep in mind that you're not the only one reading the code using the selected theme.
These high contrast themes pass WCAG AA's standards, making them more friendly to the large segment of the population with color vision deficiency.
Converting a stylesheet
Original pygments stylesheets are automatically converted by the
tools/make-stylesheet Ruby script.
In order to convert a new stylesheet, first add the original to the
Next you'll need to install the gems
make-stylesheet uses to convert the original. Do this from within the
make-stylesheet, first passing it the path to the original stylesheet, followed by the destination location. Converted stylesheets should be placed in the root directory of the project.
./make-stylesheet ../original-stylesheets/new-stylesheet.css ../new-stylesheet.css
Updating the demos
After you've converted a stylesheet, you should update the demos on index.html. This page is dynamically generated by the
At the top of the file, there's an array of stylesheet file names that are added to the demos...
demos = [ "autumn", "colorful", "fruity", ...
Add your stylesheet to the list.
Now you can commit your changes and submit a pull request!