Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #16 from pbrisbin/master

add zenburn css style
  • Loading branch information...
commit 458a7cf5b32ce95159035e4a59e0c3da7c3e51c5 2 parents 7306baf + e617cd1
@jgm authored
Showing with 24 additions and 1 deletion.
  1. +24 −1 Text/Highlighting/Kate/Styles.hs
View
25 Text/Highlighting/Kate/Styles.hs
@@ -11,7 +11,7 @@ Styles for rendering annotated source lines.
-}
module Text.Highlighting.Kate.Styles ( pygments, kate, espresso, tango,
- haddock, monochrome )
+ haddock, monochrome, zenburn )
where
import Text.Highlighting.Kate.Types
@@ -138,3 +138,26 @@ monochrome = Style{
, (ErrorTok, defStyle{ tokenBold = True })
]
}
+
+-- | Style based on the popular zenburn vim color scheme
+zenburn :: Style
+zenburn = Style{
+ backgroundColor = toColor "#303030"
+ , defaultColor = toColor "#cccccc"
+ , lineNumberColor = Nothing
+ , lineNumberBackgroundColor = Nothing
+ , tokenStyles =
+ [ (KeywordTok, defStyle{ tokenColor = toColor "#f0dfaf" })
+ , (DataTypeTok, defStyle{ tokenColor = toColor "#dfdfbf" })
+ , (DecValTok, defStyle{ tokenColor = toColor "#dcdccc" })
+ , (BaseNTok, defStyle{ tokenColor = toColor "#dca3a3" })
+ , (FloatTok, defStyle{ tokenColor = toColor "#c0bed1" })
+ , (CharTok, defStyle{ tokenColor = toColor "#dca3a3" })
+ , (StringTok, defStyle{ tokenColor = toColor "#cc9393" })
+ , (CommentTok, defStyle{ tokenColor = toColor "#7f9f7f" })
+ , (OtherTok, defStyle{ tokenColor = toColor "#efef8f" })
+ , (AlertTok, defStyle{ tokenColor = toColor "#ffcfaf" })
+ , (FunctionTok, defStyle{ tokenColor = toColor "#efef8f" })
+ , (ErrorTok, defStyle{ tokenColor = toColor "#c3bf9f" })
+ ]
+ }
Please sign in to comment.
Something went wrong with that request. Please try again.