summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/rouge-4.7.0/lib/rouge/themes/tulip.rb
blob: 5429a662028d3b682bbf58c30ff93dbeddf3dc75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
# -*- coding: utf-8 -*- #
# frozen_string_literal: true

module Rouge
  module Themes
    class Tulip < CSSTheme
      name 'tulip'

      palette :purple      => '#766DAF'
      palette :lpurple     => '#9f93e6'
      palette :orange      => '#FAAF4C'
      palette :green       => '#3FB34F'
      palette :lgreen      => '#41ff5b'
      palette :yellow      => '#FFF02A'
      palette :black       => '#000000'
      palette :gray        => '#6D6E70'
      palette :red         => '#CC0000'
      palette :dark_purple => '#231529'
      palette :lunicorn    => '#faf8ed'
      palette :white       => '#FFFFFF'
      palette :earth       => '#181a27'
      palette :dune        => '#fff0a6'

      style Text, :fg => :white, :bg => :dark_purple

      style Comment, :fg => :gray, :italic => true
      style Comment::Preproc, :fg => :lgreen, :bold => true
      style Error,
            Generic::Error, :fg => :white, :bg => :red
      style Keyword, :fg => :yellow, :bold => true
      style Operator,
            Punctuation, :fg => :lgreen
      style Generic::Deleted, :fg => :red
      style Generic::Inserted, :fg => :green
      style Generic::Emph, :italic => true
      style Generic::EmphStrong, :italic => true, :bold => true
      style Generic::Strong, :bold => true
      style Generic::Traceback,
            Generic::Lineno, :fg => :white, :bg => :purple
      style Keyword::Constant, :fg => :lpurple, :bold => true
      style Keyword::Namespace,
            Keyword::Pseudo,
            Keyword::Reserved,
            Generic::Heading,
            Generic::Subheading, :fg => :white, :bold => true
      style Keyword::Type,
            Name::Constant,
            Name::Class,
            Name::Decorator,
            Name::Namespace,
            Name::Builtin::Pseudo,
            Name::Exception, :fg => :orange, :bold => true
      style Name::Label,
            Name::Tag, :fg => :lpurple, :bold => true
      style Literal::Number,
            Literal::Date,
            Literal::String::Symbol, :fg => :lpurple, :bold => true
      style Literal::String, :fg => :dune, :bold => true
      style Literal::String::Affix, :fg => :yellow, :bold => true
      style Literal::String::Escape,
            Literal::String::Char,
            Literal::String::Interpol, :fg => :orange, :bold => true
      style Name::Builtin, :bold => true
      style Name::Entity, :fg => '#999999', :bold => true
      style Text::Whitespace, :fg => '#BBBBBB'
      style Name::Function,
            Name::Property,
            Name::Attribute, :fg => :lgreen
      style Name::Variable, :fg => :lgreen, :bold => true
    end
  end
end