Greenprint - A Prism syntax highlighting theme

I have started the development of my own Prism theme. I was mostly inspired by the awesome Prism theme of Mozilla Developer Network. I thought it would be difficult, but in general it is just defining some colors. The theme is also used by blog.

Sass

With the help of Sass I have just defined some basic colors like $blue: #4078f2; for example. Those defined colors will be later matched to the token colors. For example $function-color: $blue;. The token colors will be applied the following code for example.

.token {
    // some other tokens classes ...
    &.function {
        color: $function-color;
    }
    // some more tokens classes ...
}

My Greenprint theme is awailable on Github GordonLesti/prism-greenprint.

Next Previous