Sha256: 721296843d810f50b3855e806fdbd0375d92fdad31aba11a5ef50c487f8bb9af

Contents?: true

Size: 1.14 KB

Versions: 25

Compression:

Stored size: 1.14 KB

Contents

@import 'colors.styl'

set-ansi(val)
  &-fg
    if light($bg-color)
      newval = darken(val, 10%)
      if contrast(newval, $bg-color).ratio < 1.2
        color darken(newval, 30%)
      else
        color newval

      if contrast(newval, $status-bg-color).ratio < 1.5
        #status &
          color activate(val, 50%)
        #dialog &
          color activate(val, 50%)
    else
      color val
  &-bg
    background-color val
  &-bg&-fg
    color val

.ansi-black
  set-ansi(rgb(41, 41, 41))
.ansi-red
  set-ansi(rgb(187, 0, 0))
.ansi-green
  set-ansi(rgb(0, 187, 0))
.ansi-yellow
  set-ansi(rgb(187, 187, 0))
.ansi-blue
  set-ansi(rgb(35, 75, 198))
.ansi-magenta
  set-ansi(rgb(187, 0, 187))
.ansi-cyan
  set-ansi(rgb(0, 187, 187))
.ansi-white
  set-ansi(rgb(255,255,255))
.ansi-bright-black
  set-ansi(rgb(85, 85, 85))
.ansi-bright-red
  set-ansi(rgb(255, 85, 85))
.ansi-bright-green
  set-ansi(rgb(0, 255, 0))
.ansi-bright-yellow
  set-ansi(rgb(255, 255, 85))
.ansi-bright-blue
  set-ansi(rgb(85, 85, 255))
.ansi-bright-magenta
  set-ansi(rgb(255, 85, 255))
.ansi-bright-cyan
  set-ansi(rgb(85, 255, 255))
.ansi-bright-white
  set-ansi(rgb(255, 255, 255))

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
flammarion-0.2.1 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.2.0 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.14 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.13 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.12 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.11 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.10pre2 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.10pre1 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.9 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.8 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.8pre1 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.8pre lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.7 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.7pre2 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.7pre lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.6 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.5 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.4 lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.4pre lib/html/source/stylesheets/ansi_colors.styl
flammarion-0.1.3 lib/html/source/stylesheets/ansi_colors.styl