Syntax highlighting with a new theme

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2018-04-24 17:40:12 +04:00
parent b6cc956fd4
commit 62ed2560dc
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
3 changed files with 272 additions and 205 deletions

View File

@ -1,267 +1,358 @@
/*! pygments-css | github.com/richleland/pygments-css */ /*! pygments-css | github.com/richleland/pygments-css */
@import 'utilities/base16'; // Tango theme
$color01: #000;
$color02: #000080;
$color03: #0000cf;
$color04: #00a000;
$color05: #204a87;
$color06: #3465a4;
$color07: #4e9a06;
$color08: #5c35cc;
$color09: #800080;
$color10: #8f5902;
$color11: #a40000;
$color12: #c4a000;
$color13: #c00;
$color14: #ce5c00;
$color15: #ef2929;
$color16: #f57900;
$color17: #f8f8f8;
.highlight { .highlight {
background: $base00;
color: $base07;
.bp {
color: $base07;
}
.c { .c {
color: $base03; color: $color10;
}
.c1 {
color: $base03;
}
.cm {
color: $base03;
}
.cp {
color: $base03;
}
.cs {
color: $base03;
}
.err {
color: $base08;
}
.gd {
color: $base08;
}
.ge {
font-style: italic; font-style: italic;
} }
.err {
border: 1px solid $color15;
color: $color11;
}
.g {
color: $color01;
}
.k {
color: $color05;
font-weight: bold;
}
.l {
color: $color01;
}
.n {
color: $color01;
}
.o {
color: $color14;
font-weight: bold;
}
.x {
color: $color01;
}
.p {
color: $color01;
font-weight: bold;
}
.ch {
color: $color10;
font-style: italic;
}
.cm {
color: $color10;
font-style: italic;
}
.cp {
color: $color10;
font-style: italic;
}
.cpf {
color: $color10;
font-style: italic;
}
.c1 {
color: $color10;
font-style: italic;
}
.cs {
color: $color10;
font-style: italic;
}
.gd {
color: $color11;
}
.ge {
color: $color01;
font-style: italic;
}
.gr {
color: $color15;
}
.gh { .gh {
color: $base07; color: $color02;
font-weight: bold; font-weight: bold;
} }
.gi { .gi {
color: $base0B; color: $color04;
}
.go {
color: $color01;
font-style: italic;
} }
.gp { .gp {
color: $base03; color: $color10;
font-weight: bold;
} }
.gs { .gs {
color: $color01;
font-weight: bold; font-weight: bold;
} }
.gu { .gu {
color: $base0C; color: $color09;
font-weight: bold; font-weight: bold;
} }
.hll { .gt {
background-color: $base02; color: $color11;
} font-weight: bold;
.il {
color: $base09;
}
.k {
color: $base0E;
} }
.kc { .kc {
color: $base0E; color: $color05;
font-weight: bold;
} }
.kd { .kd {
color: $base0E; color: $color05;
font-weight: bold;
} }
.kn { .kn {
color: $base0C; color: $color05;
font-weight: bold;
} }
.kp { .kp {
color: $base0E; color: $color05;
font-weight: bold;
} }
.kr { .kr {
color: $base0E; color: $color05;
font-weight: bold;
} }
.kt { .kt {
color: $base0A; color: $color05;
} font-weight: bold;
.l {
color: $base09;
} }
.ld { .ld {
color: $base0B; color: $color01;
} }
.m { .m {
color: $base09; color: $color03;
} font-weight: bold;
.mf {
color: $base09;
}
.mh {
color: $base09;
}
.mi {
color: $base09;
}
.mo {
color: $base09;
}
.n {
color: $base07;
}
.na {
color: $base0D;
}
.nb {
color: $base07;
}
.nc {
color: $base0A;
}
.nd {
color: $base0C;
}
.ne {
color: $base08;
}
.nf {
color: $base0D;
}
.ni {
color: $base07;
}
.nl {
color: $base07;
}
.nn {
color: $base0A;
}
.no {
color: $base08;
}
.nt {
color: $base0C;
}
.nv {
color: $base08;
}
.nx {
color: $base0D;
}
.o {
color: $base0C;
}
.ow {
color: $base0C;
}
.p {
color: $base07;
}
.py {
color: $base07;
} }
.s { .s {
color: $base0B; color: $color07;
} }
.s1 { .na {
color: $base0B; color: $color12;
} }
.s2 { .nb {
color: $base0B; color: $color05;
} }
.sb { .nc {
color: $base0B; color: $color01;
} }
.sc { .no {
color: $base07; color: $color01;
} }
.sd { .nd {
color: $base03; color: $color08;
font-weight: bold;
} }
.se { .ni {
color: $base09; color: $color14;
} }
.sh { .ne {
color: $base0B; color: $color13;
font-weight: bold;
} }
.si { .nf {
color: $base09; color: $color01;
} }
.sr { .nl {
color: $base0B; color: $color16;
} }
.ss { .nn {
color: $base0B; color: $color01;
} }
.sx { .nx {
color: $base0B; color: $color01;
} }
.vc { .py {
color: $base08; color: $color01;
} }
.vg { .nt {
color: $base08; color: $color05;
font-weight: bold;
} }
.vi { .nv {
color: $base08; color: $color01;
}
.ow {
color: $color05;
font-weight: bold;
} }
.w { .w {
color: $base07; color: $color17;
text-decoration: underline;
}
.mb {
color: $color03;
font-weight: bold;
}
.mf {
color: $color03;
font-weight: bold;
}
.mh {
color: $color03;
font-weight: bold;
}
.mi {
color: $color03;
font-weight: bold;
}
.mo {
color: $color03;
font-weight: bold;
}
.sa {
color: $color07;
}
.sb {
color: $color07;
}
.sc {
color: $color07;
}
.dl {
color: $color07;
}
.sd {
color: $color10;
font-style: italic;
}
.s2 {
color: $color07;
}
.se {
color: $color07;
}
.sh {
color: $color07;
}
.si {
color: $color07;
}
.sx {
color: $color07;
}
.sr {
color: $color07;
}
.s1 {
color: $color07;
}
.ss {
color: $color07;
}
.bp {
color: $color06;
}
.fm {
color: $color01;
}
.vc {
color: $color01;
}
.vg {
color: $color01;
}
.vi {
color: $color01;
}
.vm {
color: $color01;
}
.il {
color: $color03;
font-weight: bold;
} }
} }

View File

@ -1,18 +0,0 @@
/* Tomorrow Night by Chris Kempson (http://chriskempson.com) */
$base00: #1d1f21;
$base01: #282a2e;
$base02: #373b41;
$base03: #969896;
$base04: #b4b7b4;
$base05: #c5c8c6;
$base06: #e0e0e0;
$base07: #ffffff;
$base08: #cc6666;
$base09: #de935f;
$base0A: #f0c674;
$base0B: #b5bd68;
$base0C: #8abeb7;
$base0D: #81a2be;
$base0E: #b294bb;
$base0F: #a3685a;

View File

@ -1,6 +0,0 @@
---
# Pygments, a Python-based code highlighting tool, comes with a set of builtin
# styles (not css files) for code highlighting.
---
@import 'base/highlight';