|
| 1 | +# -*- coding: utf-8 -*- # |
| 2 | +# frozen_string_literal: true |
| 3 | + |
| 4 | +# this is based on https://github.com/rouge-ruby/rouge/blob/master/lib/rouge/themes/monokai_sublime.rb |
| 5 | +# but without the added background, and changed styling for JSON keys to be soft_yellow instead of white |
| 6 | + |
| 7 | +module Rouge |
| 8 | + module Themes |
| 9 | + class MonokaiSublimeSlate < CSSTheme |
| 10 | + name 'monokai.sublime.slate' |
| 11 | + |
| 12 | + palette :black => '#000000' |
| 13 | + palette :bright_green => '#a6e22e' |
| 14 | + palette :bright_pink => '#f92672' |
| 15 | + palette :carmine => '#960050' |
| 16 | + palette :dark => '#49483e' |
| 17 | + palette :dark_grey => '#888888' |
| 18 | + palette :dark_red => '#aa0000' |
| 19 | + palette :dimgrey => '#75715e' |
| 20 | + palette :emperor => '#555555' |
| 21 | + palette :grey => '#999999' |
| 22 | + palette :light_grey => '#aaaaaa' |
| 23 | + palette :light_violet => '#ae81ff' |
| 24 | + palette :soft_cyan => '#66d9ef' |
| 25 | + palette :soft_yellow => '#e6db74' |
| 26 | + palette :very_dark => '#1e0010' |
| 27 | + palette :whitish => '#f8f8f2' |
| 28 | + palette :orange => '#f6aa11' |
| 29 | + palette :white => '#ffffff' |
| 30 | + |
| 31 | + style Generic::Heading, :fg => :grey |
| 32 | + style Literal::String::Regex, :fg => :orange |
| 33 | + style Generic::Output, :fg => :dark_grey |
| 34 | + style Generic::Prompt, :fg => :emperor |
| 35 | + style Generic::Strong, :bold => false |
| 36 | + style Generic::Subheading, :fg => :light_grey |
| 37 | + style Name::Builtin, :fg => :orange |
| 38 | + style Comment::Multiline, |
| 39 | + Comment::Preproc, |
| 40 | + Comment::Single, |
| 41 | + Comment::Special, |
| 42 | + Comment, :fg => :dimgrey |
| 43 | + style Error, |
| 44 | + Generic::Error, |
| 45 | + Generic::Traceback, :fg => :carmine |
| 46 | + style Generic::Deleted, |
| 47 | + Generic::Inserted, |
| 48 | + Generic::Emph, :fg => :dark |
| 49 | + style Keyword::Constant, |
| 50 | + Keyword::Declaration, |
| 51 | + Keyword::Reserved, |
| 52 | + Name::Constant, |
| 53 | + Keyword::Type, :fg => :soft_cyan |
| 54 | + style Literal::Number::Float, |
| 55 | + Literal::Number::Hex, |
| 56 | + Literal::Number::Integer::Long, |
| 57 | + Literal::Number::Integer, |
| 58 | + Literal::Number::Oct, |
| 59 | + Literal::Number, |
| 60 | + Literal::String::Char, |
| 61 | + Literal::String::Escape, |
| 62 | + Literal::String::Symbol, :fg => :light_violet |
| 63 | + style Literal::String::Doc, |
| 64 | + Literal::String::Double, |
| 65 | + Literal::String::Backtick, |
| 66 | + Literal::String::Heredoc, |
| 67 | + Literal::String::Interpol, |
| 68 | + Literal::String::Other, |
| 69 | + Literal::String::Single, |
| 70 | + Literal::String, :fg => :soft_yellow |
| 71 | + style Name::Attribute, |
| 72 | + Name::Class, |
| 73 | + Name::Decorator, |
| 74 | + Name::Exception, |
| 75 | + Name::Function, :fg => :bright_green |
| 76 | + style Name::Variable::Class, |
| 77 | + Name::Namespace, |
| 78 | + Name::Entity, |
| 79 | + Name::Builtin::Pseudo, |
| 80 | + Name::Variable::Global, |
| 81 | + Name::Variable::Instance, |
| 82 | + Name::Variable, |
| 83 | + Text::Whitespace, |
| 84 | + Text, |
| 85 | + Name, :fg => :white |
| 86 | + style Name::Label, :fg => :bright_pink |
| 87 | + style Operator::Word, |
| 88 | + Name::Tag, |
| 89 | + Keyword, |
| 90 | + Keyword::Namespace, |
| 91 | + Keyword::Pseudo, |
| 92 | + Operator, :fg => :bright_pink |
| 93 | + end |
| 94 | + end |
| 95 | + end |
0 commit comments