Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ayu Light Theme #804

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/rouge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,4 @@ def highlight(text, lexer, formatter, &b)
load load_dir.join('rouge/themes/monokai_sublime.rb')
load load_dir.join('rouge/themes/gruvbox.rb')
load load_dir.join('rouge/themes/tulip.rb')
load load_dir.join('rouge/themes/ayu_light.rb')
91 changes: 91 additions & 0 deletions lib/rouge/themes/ayu_light.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# -*- coding: utf-8 -*- #

module Rouge
module Themes
# ayu light theme by Ike Ku:
# /~https://github.com/ayu-theme/ayu-colors
class AyuLight < CSSTheme
name 'ayu_light'

palette :accent => "#ff6a00"
palette :foreground => "#6e7580"
palette :background => "#fafafa"

palette :error => "#f51818"

palette :tag => "#55b4d4"
palette :func => "#f29718"
palette :entity => "#399ee6"
palette :string => "#86b300"
palette :regexp => "#4cbf99"
palette :markup => "#f07171"
palette :keyword => "#fa6e32"
palette :special => "#e6b673"
palette :comment => "#abb0b6"
palette :constant => "#a37acc"
palette :operator => "#ed9366"

style Comment,
Comment::Multiline,
Comment::Single, :fg => :comment
style Comment::Preproc, :fg => :comment
style Comment::Special, :fg => :special
style Error, :fg => :background, :bg => :error
style Generic::Inserted, :fg => :string
style Generic::Deleted, :fg => :error
style Generic::Emph, :italic => true
style Generic::Error,
Generic::Traceback, :fg => :background, :bg => :error
style Generic::Heading, :fg => :accent
style Generic::Output, :fg => :foreground
style Generic::Prompt, :fg => :foreground
style Generic::Strong, :bold => true
style Generic::Subheading, :fg => :foreground
style Keyword,
Keyword::Constant,
Keyword::Declaration,
Keyword::Pseudo,
Keyword::Reserved,
Keyword::Type, :fg => :keyword
style Keyword::Namespace,
Operator::Word,
Operator, :fg => :operator
style Literal::Number::Float,
Literal::Number::Hex,
Literal::Number::Integer::Long,
Literal::Number::Integer,
Literal::Number::Oct,
Literal::Number,
Literal::String::Escape, :fg => :constant
style Literal::String::Backtick,
Literal::String::Char,
Literal::String::Doc,
Literal::String::Double,
Literal::String::Heredoc,
Literal::String::Interpol,
Literal::String::Other,
Literal::String::Single,
Literal::String, :fg => :string
style Literal::String::Symbol, :fg => :tag
style Literal::String::Regex, :fg => :regexp
style Name::Attribute, :fg => :markup
style Name::Class,
Name::Decorator,
Name::Exception,
Name::Function, :fg => :func
style Name::Constant, :fg => :constant
style Name::Builtin::Pseudo,
Name::Builtin,
Name::Entity,
Name::Namespace,
Name::Variable::Class,
Name::Variable::Global,
Name::Variable::Instance,
Name::Variable,
Text::Whitespace, :fg => :entity
style Name::Label, :fg => :entity
style Name::Tag, :fg => :tag
style Text, :fg => :foreground, :bg => :background
end
end
end