public static enum SyntaxHighlighter.HighlightTheme extends Enum<SyntaxHighlighter.HighlightTheme>
Each theme corresponds to a CSS file stored as a classpath resource. The CSS
styles target elements with hljs-* classes (e.g. hljs-keyword,
hljs-string, hljs-comment) produced by the highlighting engine.
Themes are organized into curated and extended sets. Each theme is classified as light, dark, or neutral.
| Constant | Description |
|---|---|
ATOM_ONE_LIGHT | Atom editor — clean, warm tones |
DEFAULT | Standard highlight.js — minimal |
GITHUB | GitHub code rendering |
INTELLIJ_LIGHT | JetBrains IntelliJ IDEA |
STACKOVERFLOW_LIGHT | Stack Overflow light |
TOKYO_NIGHT_LIGHT | Soft pastel Tokyo Night |
VS | Visual Studio classic |
XCODE | Apple Xcode IDE |
| Constant | Description |
|---|---|
ATOM_ONE_DARK | Atom editor dark palette |
GITHUB_DARK | GitHub dark mode |
MONOKAI | Sublime Text classic |
NIGHT_OWL | Accessibility-optimized dark |
NORD | Arctic-inspired cool tones |
STACKOVERFLOW_DARK | Stack Overflow dark |
TOKYO_NIGHT_DARK | Deep blue-black with vivid accents |
VS2015 | Visual Studio 2015 / VS Code dark |
An additional 61 themes from the highlight.js catalog, including popular
styles such as Dracula, Gruvbox,
Solarized, Android Studio,
A11y (accessibility), and many more. See the individual
enum constants for descriptions.
Theme CSS can be loaded without instantiating the highlighter via
SyntaxHighlighter.loadThemeCss(HighlightTheme).
| Enum Constant and Description |
|---|
A11Y_DARK
A11y Dark — accessibility-focused dark theme with high contrast.
|
A11Y_LIGHT
A11y Light — accessibility-focused light theme with high contrast.
|
AGATE
Agate — bold dark theme with vivid syntax colors.
|
AN_OLD_HOPE
An Old Hope — Star Wars-inspired dark theme with warm retro colors.
|
ANDROIDSTUDIO
Android Studio — dark theme matching Android Studio's Darcula scheme.
|
ARDUINO_LIGHT
Arduino Light — light theme for Arduino IDE style.
|
ARTA
Arta — dark theme with desaturated earth-tone syntax colors.
|
ASCETIC
Ascetic — ultra-minimal light theme with almost no color.
|
ATOM_ONE_DARK
Atom One Dark — hugely popular dark theme from the Atom editor.
|
ATOM_ONE_DARK_REASONABLE
Atom One Dark Reasonable — a more muted variant of Atom One Dark.
|
ATOM_ONE_LIGHT
Atom One Light — clean, warm light theme from the Atom editor family.
|
BROWN_PAPER
Brown Paper — a warm brown mid-tone theme resembling aged paper.
|
CODEPEN_EMBED
CodePen Embed — dark theme matching CodePen's embedded code style.
|
COLOR_BREWER
Color Brewer — light theme using ColorBrewer palette for data visualization.
|
DARK
Dark — the generic dark theme from highlight.js.
|
DEFAULT
Default — the standard highlight.js theme; light gray background.
|
DEVIBEANS
Devibeans — a deep black dark theme with vivid accent colors.
|
DOCCO
Docco — light theme inspired by the Docco documentation generator.
|
DRACULA
Dracula — popular dark theme with purple and cyan accents on deep charcoal.
|
FAR
Far — dark blue theme inspired by the FAR Manager file manager.
|
FELIPEC
Felipec — a minimalist dark theme with muted colors.
|
FOUNDATION
Foundation — light theme with Zurb Foundation styling.
|
GITHUB
GitHub — the familiar light theme from GitHub's code rendering.
|
GITHUB_DARK
GitHub Dark — GitHub's official dark mode code rendering.
|
GITHUB_DARK_DIMMED
GitHub Dark Dimmed — a softer, less contrasty variant of GitHub Dark.
|
GML
GML — dark theme for GameMaker Language style.
|
GOOGLECODE
Google Code — light theme inspired by old Google Code syntax highlighting.
|
GRADIENT_DARK
Gradient Dark — dark theme with subtle gradient backgrounds.
|
GRADIENT_LIGHT
Gradient Light — light theme with subtle gradient backgrounds.
|
GRAYSCALE
Grayscale — monochrome light theme using only gray tones.
|
GRUVBOX_DARK
Gruvbox Dark — retro, earthy dark palette with warm tones.
|
GRUVBOX_LIGHT
Gruvbox Light — retro, earthy light palette with warm tones.
|
HYBRID
Hybrid — a dark theme blending multiple color palettes.
|
IDEA
IDEA — IntelliJ IDEA classic light scheme.
|
INTELLIJ_LIGHT
IntelliJ Light — inspired by JetBrains IntelliJ IDEA's default scheme.
|
IR_BLACK
IR Black — a classic dark terminal-style theme.
|
ISBL_EDITOR_DARK
ISBL Editor Dark — dark variant of the ISBL editor theme.
|
ISBL_EDITOR_LIGHT
ISBL Editor Light — light variant of the ISBL editor theme.
|
KIMBIE_DARK
Kimbie Dark — warm dark theme with brown-orange tones.
|
KIMBIE_LIGHT
Kimbie Light — warm cream-toned light theme.
|
LIGHTFAIR
Lightfair — bright, clean light theme with blue accents.
|
LIOSHI
Lioshi — a dark theme with green and cyan accents.
|
MAGULA
Magula — soft light theme with muted colors.
|
MONO_BLUE
Mono Blue — light theme using only shades of blue.
|
MONOKAI
Monokai — the iconic dark theme originating from Sublime Text.
|
MONOKAI_SUBLIME
Monokai Sublime — the Monokai variant popularized by Sublime Text.
|
NIGHT_OWL
Night Owl — a dark theme optimized for accessibility and contrast.
|
NNFX_DARK
NNFX Dark — dark variant of the No Nonsense FX theme.
|
NNFX_LIGHT
NNFX Light — light variant of the No Nonsense FX theme.
|
NORD
Nord — an elegant arctic-inspired dark color palette.
|
OBSIDIAN
Obsidian — a dark theme with olive and amber accents.
|
PANDA_SYNTAX_DARK
Panda Syntax Dark — dark variant of the popular Panda theme.
|
PANDA_SYNTAX_LIGHT
Panda Syntax Light — light variant of the popular Panda theme.
|
PARAISO_DARK
Paraiso Dark — dark variant with warm tropical-inspired colors.
|
PARAISO_LIGHT
Paraiso Light — light variant with warm tropical-inspired colors.
|
POJOAQUE
Pojoaque — a dark Solarized-like theme with teal backgrounds.
|
PUREBASIC
PureBasic — light theme styled after the PureBasic IDE.
|
QTCREATOR_DARK
Qt Creator Dark — dark variant of the Qt Creator IDE theme.
|
QTCREATOR_LIGHT
Qt Creator Light — light variant of the Qt Creator IDE theme.
|
RAINBOW
Rainbow — a vivid dark theme with colorful syntax highlighting.
|
ROUTEROS
RouterOS — light theme inspired by MikroTik RouterOS style.
|
SCHOOL_BOOK
School Book — playful light theme with a notebook-paper feel.
|
SHADES_OF_PURPLE
Shades of Purple — a vibrant purple-toned dark theme.
|
SOLARIZED_DARK
Solarized Dark — Ethan Schoonover's carefully designed dark palette.
|
SOLARIZED_LIGHT
Solarized Light — Ethan Schoonover's carefully designed light palette.
|
SRCERY
Srcery — a dark theme inspired by the Gruvbox and Apprentice palettes.
|
STACKOVERFLOW_DARK
Stack Overflow Dark — the dark theme from Stack Overflow.
|
STACKOVERFLOW_LIGHT
Stack Overflow Light — the clean light theme from Stack Overflow.
|
SUNBURST
Sunburst — a classic dark theme with warm highlight colors.
|
TOKYO_NIGHT_DARK
Tokyo Night Dark — a deep blue-black theme with vivid accents.
|
TOKYO_NIGHT_LIGHT
Tokyo Night Light — soft pastel light variant of the Tokyo Night family.
|
TOMORROW_NIGHT_BLUE
Tomorrow Night Blue — a deep blue dark theme from the Tomorrow family.
|
TOMORROW_NIGHT_BRIGHT
Tomorrow Night Bright — a vivid dark theme from the Tomorrow family.
|
VS
Visual Studio — classic Visual Studio light color scheme.
|
VS2015
VS 2015 — Visual Studio 2015 / VS Code dark theme.
|
XCODE
Xcode — Apple's Xcode IDE default light theme.
|
XT256
XT256 — a retro dark theme inspired by vintage terminal displays.
|
| Modifier and Type | Method and Description |
|---|---|
String |
fileName()
Returns the CSS file name without extension (e.g.
|
static SyntaxHighlighter.HighlightTheme |
forName(String fileName)
Finds a theme by its CSS file name (case-insensitive).
|
String |
getName()
Returns the human-readable display name for this theme.
|
boolean |
isCurated()
Returns
true if this theme is in the curated set. |
boolean |
isDark()
Returns
true if this is a dark theme. |
boolean |
isLight()
Returns
true if this is a light theme. |
boolean |
isNeutral()
Returns
true if this is a neutral (mid-tone) theme. |
String |
resourcePath()
Returns the classpath resource path for this theme's CSS file.
|
SyntaxHighlighter.ThemeSet |
themeSet()
Returns which set this theme belongs to.
|
SyntaxHighlighter.ThemeType |
themeType()
Returns the theme type classification.
|
static SyntaxHighlighter.HighlightTheme |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SyntaxHighlighter.HighlightTheme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SyntaxHighlighter.HighlightTheme ATOM_ONE_LIGHT
public static final SyntaxHighlighter.HighlightTheme DEFAULT
public static final SyntaxHighlighter.HighlightTheme GITHUB
public static final SyntaxHighlighter.HighlightTheme INTELLIJ_LIGHT
public static final SyntaxHighlighter.HighlightTheme STACKOVERFLOW_LIGHT
public static final SyntaxHighlighter.HighlightTheme TOKYO_NIGHT_LIGHT
public static final SyntaxHighlighter.HighlightTheme VS
public static final SyntaxHighlighter.HighlightTheme XCODE
public static final SyntaxHighlighter.HighlightTheme ATOM_ONE_DARK
public static final SyntaxHighlighter.HighlightTheme GITHUB_DARK
public static final SyntaxHighlighter.HighlightTheme MONOKAI
public static final SyntaxHighlighter.HighlightTheme NIGHT_OWL
public static final SyntaxHighlighter.HighlightTheme NORD
public static final SyntaxHighlighter.HighlightTheme STACKOVERFLOW_DARK
public static final SyntaxHighlighter.HighlightTheme TOKYO_NIGHT_DARK
public static final SyntaxHighlighter.HighlightTheme VS2015
public static final SyntaxHighlighter.HighlightTheme A11Y_LIGHT
public static final SyntaxHighlighter.HighlightTheme ARDUINO_LIGHT
public static final SyntaxHighlighter.HighlightTheme ASCETIC
public static final SyntaxHighlighter.HighlightTheme COLOR_BREWER
public static final SyntaxHighlighter.HighlightTheme DOCCO
public static final SyntaxHighlighter.HighlightTheme FOUNDATION
public static final SyntaxHighlighter.HighlightTheme GOOGLECODE
public static final SyntaxHighlighter.HighlightTheme GRADIENT_LIGHT
public static final SyntaxHighlighter.HighlightTheme GRUVBOX_LIGHT
public static final SyntaxHighlighter.HighlightTheme GRAYSCALE
public static final SyntaxHighlighter.HighlightTheme IDEA
public static final SyntaxHighlighter.HighlightTheme ISBL_EDITOR_LIGHT
public static final SyntaxHighlighter.HighlightTheme KIMBIE_LIGHT
public static final SyntaxHighlighter.HighlightTheme LIGHTFAIR
public static final SyntaxHighlighter.HighlightTheme MAGULA
public static final SyntaxHighlighter.HighlightTheme MONO_BLUE
public static final SyntaxHighlighter.HighlightTheme NNFX_LIGHT
public static final SyntaxHighlighter.HighlightTheme PANDA_SYNTAX_LIGHT
public static final SyntaxHighlighter.HighlightTheme PARAISO_LIGHT
public static final SyntaxHighlighter.HighlightTheme PUREBASIC
public static final SyntaxHighlighter.HighlightTheme QTCREATOR_LIGHT
public static final SyntaxHighlighter.HighlightTheme ROUTEROS
public static final SyntaxHighlighter.HighlightTheme SCHOOL_BOOK
public static final SyntaxHighlighter.HighlightTheme SOLARIZED_LIGHT
public static final SyntaxHighlighter.HighlightTheme A11Y_DARK
public static final SyntaxHighlighter.HighlightTheme AGATE
public static final SyntaxHighlighter.HighlightTheme AN_OLD_HOPE
public static final SyntaxHighlighter.HighlightTheme ANDROIDSTUDIO
public static final SyntaxHighlighter.HighlightTheme ARTA
public static final SyntaxHighlighter.HighlightTheme ATOM_ONE_DARK_REASONABLE
public static final SyntaxHighlighter.HighlightTheme CODEPEN_EMBED
public static final SyntaxHighlighter.HighlightTheme DARK
public static final SyntaxHighlighter.HighlightTheme DEVIBEANS
public static final SyntaxHighlighter.HighlightTheme DRACULA
public static final SyntaxHighlighter.HighlightTheme FAR
public static final SyntaxHighlighter.HighlightTheme FELIPEC
public static final SyntaxHighlighter.HighlightTheme GITHUB_DARK_DIMMED
public static final SyntaxHighlighter.HighlightTheme GML
public static final SyntaxHighlighter.HighlightTheme GRADIENT_DARK
public static final SyntaxHighlighter.HighlightTheme GRUVBOX_DARK
public static final SyntaxHighlighter.HighlightTheme HYBRID
public static final SyntaxHighlighter.HighlightTheme IR_BLACK
public static final SyntaxHighlighter.HighlightTheme ISBL_EDITOR_DARK
public static final SyntaxHighlighter.HighlightTheme KIMBIE_DARK
public static final SyntaxHighlighter.HighlightTheme LIOSHI
public static final SyntaxHighlighter.HighlightTheme MONOKAI_SUBLIME
public static final SyntaxHighlighter.HighlightTheme NNFX_DARK
public static final SyntaxHighlighter.HighlightTheme OBSIDIAN
public static final SyntaxHighlighter.HighlightTheme PANDA_SYNTAX_DARK
public static final SyntaxHighlighter.HighlightTheme PARAISO_DARK
public static final SyntaxHighlighter.HighlightTheme POJOAQUE
public static final SyntaxHighlighter.HighlightTheme QTCREATOR_DARK
public static final SyntaxHighlighter.HighlightTheme RAINBOW
public static final SyntaxHighlighter.HighlightTheme SHADES_OF_PURPLE
public static final SyntaxHighlighter.HighlightTheme SOLARIZED_DARK
public static final SyntaxHighlighter.HighlightTheme SRCERY
public static final SyntaxHighlighter.HighlightTheme SUNBURST
public static final SyntaxHighlighter.HighlightTheme TOMORROW_NIGHT_BLUE
public static final SyntaxHighlighter.HighlightTheme TOMORROW_NIGHT_BRIGHT
public static final SyntaxHighlighter.HighlightTheme XT256
public static final SyntaxHighlighter.HighlightTheme BROWN_PAPER
public static SyntaxHighlighter.HighlightTheme[] values()
for (SyntaxHighlighter.HighlightTheme c : SyntaxHighlighter.HighlightTheme.values()) System.out.println(c);
public static SyntaxHighlighter.HighlightTheme valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getName()
Examples: "GitHub Dark", "VS 2015", "Stack Overflow Light",
"Android Studio", "IDEA".
null.public String fileName()
"github-dark").public SyntaxHighlighter.ThemeType themeType()
public SyntaxHighlighter.ThemeSet themeSet()
public boolean isLight()
true if this is a light theme.public boolean isDark()
true if this is a dark theme.public boolean isNeutral()
true if this is a neutral (mid-tone) theme.public boolean isCurated()
true if this theme is in the curated set.public String resourcePath()
Curated themes are located at /co/mindus/utils/hl/css/curated/<n>.css,
extended themes at /co/mindus/utils/hl/css/extended/<n>.css.
public static SyntaxHighlighter.HighlightTheme forName(String fileName)
fileName - The CSS file name without extension (e.g. "github-dark").null if not found.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.