solarized_light.scss 9.71 KB
Newer Older
1
/* https://gist.github.com/qguv/7936275 */
2

Sam Rose's avatar
Sam Rose committed
3 4 5 6 7 8 9 10 11 12 13 14 15
/*
* Solarized light syntax colors
*/
$solarized-light-matchline-bg: rgba(255, 255, 255, 0.4);
$solarized-light-new-bg: rgba(133, 153, 0, 0.2);
$solarized-light-new-idiff: rgba(133, 153, 0, 0.25);
$solarized-light-old-bg: rgba(220, 50, 47, 0.2);
$solarized-light-old-idiff: rgba(220, 50, 47, 0.25);
$solarized-light-border: #c5d0d4;
$solarized-light-pre-bg: #002b36;
$solarized-light-pre-bg: #fdf6e3;
$solarized-light-pre-color: #586e75;
$solarized-light-line-bg: #fdf6e3;
dimitrieh's avatar
dimitrieh committed
16 17 18
$solarized-light-line-color: rgba(0, 0, 0, 0.3);
$solarized-light-line-color-new: #a1a080;
$solarized-light-line-color-old: #ad9186;
Sam Rose's avatar
Sam Rose committed
19 20
$solarized-light-highlight: #eee8d5;
$solarized-light-hll-bg: #ddd8c5;
21
$solarized-light-over-bg: #ded7fc;
22 23
$solarized-light-expanded-border: #d2cdbd;
$solarized-light-expanded-bg: #ece6d4;
Sam Rose's avatar
Sam Rose committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
$solarized-light-c: #93a1a1;
$solarized-light-err: #586e75;
$solarized-light-g: #586e75;
$solarized-light-k: #859900;
$solarized-light-l: #586e75;
$solarized-light-n: #586e75;
$solarized-light-o: #859900;
$solarized-light-x: #cb4b16;
$solarized-light-p: #586e75;
$solarized-light-cm: #93a1a1;
$solarized-light-cp: #859900;
$solarized-light-c1: #93a1a1;
$solarized-light-cs: #859900;
$solarized-light-gd: #2aa198;
$solarized-light-ge: #586e75;
$solarized-light-gr: #dc322f;
$solarized-light-gh: #cb4b16;
$solarized-light-gi: #859900;
$solarized-light-go: #586e75;
$solarized-light-gp: #586e75;
$solarized-light-gs: #586e75;
$solarized-light-gu: #cb4b16;
$solarized-light-gt: #586e75;
$solarized-light-kc: #cb4b16;
$solarized-light-kd: #268bd2;
$solarized-light-kn: #859900;
$solarized-light-kp: #859900;
$solarized-light-kr: #268bd2;
$solarized-light-kt: #dc322f;
$solarized-light-ld: #586e75;
$solarized-light-m: #2aa198;
$solarized-light-s: #2aa198;
$solarized-light-na: #586e75;
$solarized-light-nb: #b58900;
$solarized-light-nc: #268bd2;
$solarized-light-no: #cb4b16;
$solarized-light-nd: #268bd2;
$solarized-light-ni: #cb4b16;
$solarized-light-ne: #cb4b16;
$solarized-light-nf: #268bd2;
$solarized-light-nl: #586e75;
$solarized-light-nn: #586e75;
$solarized-light-nx: #586e75;
$solarized-light-py: #586e75;
$solarized-light-nt: #268bd2;
$solarized-light-nv: #268bd2;
$solarized-light-ow: #859900;
$solarized-light-w: #586e75;
$solarized-light-mf: #2aa198;
$solarized-light-mh: #2aa198;
$solarized-light-mi: #2aa198;
$solarized-light-mo: #2aa198;
$solarized-light-sb: #93a1a1;
$solarized-light-sc: #2aa198;
$solarized-light-sd: #586e75;
$solarized-light-s2: #2aa198;
$solarized-light-se: #cb4b16;
$solarized-light-sh: #586e75;
$solarized-light-si: #2aa198;
$solarized-light-sx: #2aa198;
$solarized-light-sr: #dc322f;
$solarized-light-s1: #2aa198;
$solarized-light-ss: #2aa198;
$solarized-light-bp: #268bd2;
$solarized-light-vc: #268bd2;
$solarized-light-vg: #268bd2;
$solarized-light-vi: #268bd2;
$solarized-light-il: #2aa198;

93 94
@mixin matchLine {
  color: $black-transparent;
Sam Rose's avatar
Sam Rose committed
95
  background: $solarized-light-matchline-bg;
96 97
}

98
.code.solarized-light {
99
  // Line numbers
100 101
  .line-numbers,
  .diff-line-num {
Sam Rose's avatar
Sam Rose committed
102
    background-color: $solarized-light-line-bg;
103
  }
104

105 106
  .diff-line-num,
  .diff-line-num a {
dimitrieh's avatar
dimitrieh committed
107
    color: $solarized-light-line-color;
108 109
  }

110
  // Code itself
111 112
  pre.code,
  .diff-line-num {
Sam Rose's avatar
Sam Rose committed
113
    border-color: $solarized-light-border;
114 115
  }

116 117 118
  &,
  pre.code,
  .line_holder .line_content {
Sam Rose's avatar
Sam Rose committed
119 120
    background-color: $solarized-light-pre-bg;
    color: $solarized-light-pre-color;
121 122 123 124
  }

  // Diff line
  .line_holder {
125 126 127 128
    &.match .line_content {
      @include matchLine;
    }

129 130
    td.diff-line-num.hll:not(.empty-cell),
    td.line_content.hll:not(.empty-cell) {
Sam Rose's avatar
Sam Rose committed
131 132
      background-color: $solarized-light-hll-bg;
      border-color: darken($solarized-light-hll-bg, 15%);
133 134
    }

135 136
    .diff-line-num.new,
    .line_content.new {
Sam Rose's avatar
Sam Rose committed
137 138
      @include diff_background($solarized-light-new-bg,
      $solarized-light-new-idiff, $solarized-light-border);
dimitrieh's avatar
dimitrieh committed
139 140 141 142 143

      &::before,
      a {
        color: $solarized-light-line-color-new;
      }
144 145
    }

146 147
    .diff-line-num.old,
    .line_content.old {
Sam Rose's avatar
Sam Rose committed
148
      @include diff_background($solarized-light-old-bg, $solarized-light-old-idiff, $solarized-light-border);
dimitrieh's avatar
dimitrieh committed
149 150 151 152 153

      &::before,
      a {
        color: $solarized-light-line-color-old;
      }
154 155
    }

156
    .diff-line-num {
Phil Hughes's avatar
Phil Hughes committed
157 158
      &.is-over,
      &.hll:not(.empty-cell).is-over {
159 160
        background-color: $solarized-light-over-bg;
        border-color: darken($solarized-light-over-bg, 5%);
161 162

        a {
163
          color: darken($solarized-light-over-bg, 15%);
164 165 166 167
        }
      }
    }

168
    .line_content.match {
169
      @include matchLine;
170
    }
171 172 173 174 175

    &:not(.diff-expanded) + .diff-expanded,
    &.diff-expanded + .line_holder:not(.diff-expanded) {
      > .diff-line-num,
      > .line_content {
176
        border-top: 1px solid $solarized-light-expanded-border;
177 178 179 180 181 182
      }
    }

    &.diff-expanded {
      > .diff-line-num,
      > .line_content {
183 184
        background: $solarized-light-expanded-bg;
        border-color: $solarized-light-expanded-bg;
185 186
      }
    }
187 188
  }

189
  // highlight line via anchor
190
  pre .hll {
Sam Rose's avatar
Sam Rose committed
191
    background-color: $solarized-light-hll-bg !important;
192 193
  }

194 195
  // Search result highlight
  span.highlight_word {
Sam Rose's avatar
Sam Rose committed
196
    background-color: $solarized-light-highlight !important;
197 198
  }

Douwe Maan's avatar
Douwe Maan committed
199 200 201 202 203
  // Links to URLs, emails, or dependencies
  .line a {
    color: $solarized-light-kd;
  }

204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221
  /* Solarized Light

  For use with Jekyll and Pygments

  http://ethanschoonover.com/solarized

  SOLARIZED HEX      ROLE
  --------- -------- ------------------------------------------
  base01    #586e75  body text / default code / primary content
  base1     #93a1a1  comments / secondary content
  base3     #fdf6e3  background
  orange    #cb4b16  constants
  red       #dc322f  regex, special keywords
  blue      #268bd2  reserved keywords
  cyan      #2aa198  strings, numbers
  green     #859900  operators, other keywords
  */

Sam Rose's avatar
Sam Rose committed
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
  .c { color: $solarized-light-c; } /* Comment */
  .err { color: $solarized-light-err; } /* Error */
  .g { color: $solarized-light-g; } /* Generic */
  .k { color: $solarized-light-k; } /* Keyword */
  .l { color: $solarized-light-l; } /* Literal */
  .n { color: $solarized-light-n; } /* Name */
  .o { color: $solarized-light-o; } /* Operator */
  .x { color: $solarized-light-x; } /* Other */
  .p { color: $solarized-light-p; } /* Punctuation */
  .cm { color: $solarized-light-cm; } /* Comment.Multiline */
  .cp { color: $solarized-light-cp; } /* Comment.Preproc */
  .c1 { color: $solarized-light-c1; } /* Comment.Single */
  .cs { color: $solarized-light-cs; } /* Comment.Special */
  .gd { color: $solarized-light-gd; } /* Generic.Deleted */
  .ge { color: $solarized-light-ge; font-style: italic; } /* Generic.Emph */
  .gr { color: $solarized-light-gr; } /* Generic.Error */
  .gh { color: $solarized-light-gh; } /* Generic.Heading */
  .gi { color: $solarized-light-gi; } /* Generic.Inserted */
  .go { color: $solarized-light-go; } /* Generic.Output */
  .gp { color: $solarized-light-gp; } /* Generic.Prompt */
242
  .gs { color: $solarized-light-gs; font-weight: $gl-font-weight-bold; } /* Generic.Strong */
Sam Rose's avatar
Sam Rose committed
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
  .gu { color: $solarized-light-gu; } /* Generic.Subheading */
  .gt { color: $solarized-light-gt; } /* Generic.Traceback */
  .kc { color: $solarized-light-kc; } /* Keyword.Constant */
  .kd { color: $solarized-light-kd; } /* Keyword.Declaration */
  .kn { color: $solarized-light-kn; } /* Keyword.Namespace */
  .kp { color: $solarized-light-kp; } /* Keyword.Pseudo */
  .kr { color: $solarized-light-kr; } /* Keyword.Reserved */
  .kt { color: $solarized-light-kt; } /* Keyword.Type */
  .ld { color: $solarized-light-ld; } /* Literal.Date */
  .m { color: $solarized-light-m; } /* Literal.Number */
  .s { color: $solarized-light-s; } /* Literal.String */
  .na { color: $solarized-light-na; } /* Name.Attribute */
  .nb { color: $solarized-light-nb; } /* Name.Builtin */
  .nc { color: $solarized-light-nc; } /* Name.Class */
  .no { color: $solarized-light-no; } /* Name.Constant */
  .nd { color: $solarized-light-nd; } /* Name.Decorator */
  .ni { color: $solarized-light-ni; } /* Name.Entity */
  .ne { color: $solarized-light-ne; } /* Name.Exception */
  .nf { color: $solarized-light-nf; } /* Name.Function */
  .nl { color: $solarized-light-nl; } /* Name.Label */
  .nn { color: $solarized-light-nn; } /* Name.Namespace */
  .nx { color: $solarized-light-nx; } /* Name.Other */
  .py { color: $solarized-light-py; } /* Name.Property */
  .nt { color: $solarized-light-nt; } /* Name.Tag */
  .nv { color: $solarized-light-nv; } /* Name.Variable */
  .ow { color: $solarized-light-ow; } /* Operator.Word */
  .w { color: $solarized-light-w; } /* Text.Whitespace */
  .mf { color: $solarized-light-mf; } /* Literal.Number.Float */
  .mh { color: $solarized-light-mh; } /* Literal.Number.Hex */
  .mi { color: $solarized-light-mi; } /* Literal.Number.Integer */
  .mo { color: $solarized-light-mo; } /* Literal.Number.Oct */
  .sb { color: $solarized-light-sb; } /* Literal.String.Backtick */
  .sc { color: $solarized-light-sc; } /* Literal.String.Char */
  .sd { color: $solarized-light-sd; } /* Literal.String.Doc */
  .s2 { color: $solarized-light-s2; } /* Literal.String.Double */
  .se { color: $solarized-light-se; } /* Literal.String.Escape */
  .sh { color: $solarized-light-sh; } /* Literal.String.Heredoc */
  .si { color: $solarized-light-si; } /* Literal.String.Interpol */
  .sx { color: $solarized-light-sx; } /* Literal.String.Other */
  .sr { color: $solarized-light-sr; } /* Literal.String.Regex */
  .s1 { color: $solarized-light-s1; } /* Literal.String.Single */
  .ss { color: $solarized-light-ss; } /* Literal.String.Symbol */
  .bp { color: $solarized-light-bp; } /* Name.Builtin.Pseudo */
  .vc { color: $solarized-light-vc; } /* Name.Variable.Class */
  .vg { color: $solarized-light-vg; } /* Name.Variable.Global */
  .vi { color: $solarized-light-vi; } /* Name.Variable.Instance */
  .il { color: $solarized-light-il; } /* Literal.Number.Integer.Long */
290
}