Sha256: 2aba0e4f45f3eb23537b19d4c0329297a9b077d91002f1f79be9d2b06b2e99c3

Contents?: true

Size: 1.69 KB

Versions: 2

Compression:

Stored size: 1.69 KB

Contents

# frozen_string_literal: true

module RubyJard
  class ColorSchemes
    class X256LightColorScheme < ColorScheme
      # Shameless copy from https://github.com/sonph/onehalf/blob/master/vim/colors/onehalflight.vim
      GRAY1      = '237'
      GRAY2      = '252'
      GRAY3      = '247'
      GRAY4      = '247'
      GRAY5      = '237'

      WHITE      = '231'
      RED        = '167'
      GREEN      = '22'
      YELLOW     = '136'
      BLUE       = '31'
      PURPLE     = '127'
      CYAN       = '31'

      BACKGROUND = WHITE
      STYLES = {
        background:        [GRAY5, BACKGROUND],
        border:            [GRAY3, BACKGROUND],
        title:             [WHITE, GREEN],
        title_secondary:   [GRAY5, GRAY2],
        title_background:  [GRAY3, BACKGROUND],
        source_line_mark:  [YELLOW, BACKGROUND],
        source_lineno:     [GRAY4, BACKGROUND],
        text_primary:      [GRAY5, BACKGROUND],
        text_dim:          [GRAY5, BACKGROUND],
        text_highlighted:  [BLUE, BACKGROUND],
        text_special:      [RED, BACKGROUND],
        text_selected:     [GREEN, BACKGROUND],
        keyword:           [PURPLE, BACKGROUND],
        method:            [BLUE, BACKGROUND],
        comment:           [GRAY4, BACKGROUND],
        literal:           [YELLOW, BACKGROUND],
        string:            [GREEN, BACKGROUND],
        local_variable:    [RED, BACKGROUND],
        instance_variable: [RED, BACKGROUND],
        constant:          [YELLOW, BACKGROUND],
        normal_token:      [GRAY5, BACKGROUND],
        object:            [YELLOW, BACKGROUND]
      }.freeze
    end
  end
end

RubyJard::ColorSchemes.add_color_scheme('256-light', RubyJard::ColorSchemes::X256LightColorScheme)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_jard-0.3.1 lib/ruby_jard/color_schemes/256_light_color_scheme.rb
ruby_jard-0.3.0 lib/ruby_jard/color_schemes/256_light_color_scheme.rb