GithubHelp home page GithubHelp logo

mpchadwick / pygments-high-contrast-stylesheets Goto Github PK

View Code? Open in Web Editor NEW
42.0 4.0 4.0 633 KB

WCAG AA passing Pygments stylesheets

Home Page: https://maxchadwick.xyz/pygments-high-contrast-stylesheets/

License: The Unlicense

CSS 92.17% HTML 4.98% Ruby 2.84%
pygments pygments-css contrast-stylesheets stylesheets

pygments-high-contrast-stylesheets's Introduction

pygments-high-contrast-stylesheets

A hard fork of pygments-css with WCAG AA passing stylesheets.

Why?

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.

Examples

vim.css

Before

After

View demos for all stylesheets here

Contributing

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 original-stylesheets directory.

Next you'll need to install the gems make-stylesheet uses to convert the original. Do this from within the tools directory:

bundle install

Then invoke 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 tools/make-demos script.

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.

Then invoke make-demos.

./make-demos

Now you can commit your changes and submit a pull request!

pygments-high-contrast-stylesheets's People

Contributors

colinta avatar cs01 avatar dflock avatar helenst avatar mpchadwick avatar richleland avatar theodox avatar wbinnssmith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pygments-high-contrast-stylesheets's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.