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_DARKA11y Dark — accessibility-focused dark theme with high contrast. |
A11Y_LIGHTA11y Light — accessibility-focused light theme with high contrast. |
AGATEAgate — bold dark theme with vivid syntax colors. |
AN_OLD_HOPEAn Old Hope — Star Wars-inspired dark theme with warm retro colors. |
ANDROIDSTUDIOAndroid Studio — dark theme matching Android Studio's Darcula scheme. |
ARDUINO_LIGHTArduino Light — light theme for Arduino IDE style. |
ARTAArta — dark theme with desaturated earth-tone syntax colors. |
ASCETICAscetic — ultra-minimal light theme with almost no color. |
ATOM_ONE_DARKAtom One Dark — hugely popular dark theme from the Atom editor. |
ATOM_ONE_DARK_REASONABLEAtom One Dark Reasonable — a more muted variant of Atom One Dark. |
ATOM_ONE_LIGHTAtom One Light — clean, warm light theme from the Atom editor family. |
BROWN_PAPERBrown Paper — a warm brown mid-tone theme resembling aged paper. |
CODEPEN_EMBEDCodePen Embed — dark theme matching CodePen's embedded code style. |
COLOR_BREWERColor Brewer — light theme using ColorBrewer palette for data visualization. |
DARKDark — the generic dark theme from highlight.js. |
DEFAULTDefault — the standard highlight.js theme; light gray background. |
DEVIBEANSDevibeans — a deep black dark theme with vivid accent colors. |
DOCCODocco — light theme inspired by the Docco documentation generator. |
DRACULADracula — popular dark theme with purple and cyan accents on deep charcoal. |
FARFar — dark blue theme inspired by the FAR Manager file manager. |
FELIPECFelipec — a minimalist dark theme with muted colors. |
FOUNDATIONFoundation — light theme with Zurb Foundation styling. |
GITHUBGitHub — the familiar light theme from GitHub's code rendering. |
GITHUB_DARKGitHub Dark — GitHub's official dark mode code rendering. |
GITHUB_DARK_DIMMEDGitHub Dark Dimmed — a softer, less contrasty variant of GitHub Dark. |
GMLGML — dark theme for GameMaker Language style. |
GOOGLECODEGoogle Code — light theme inspired by old Google Code syntax highlighting. |
GRADIENT_DARKGradient Dark — dark theme with subtle gradient backgrounds. |
GRADIENT_LIGHTGradient Light — light theme with subtle gradient backgrounds. |
GRAYSCALEGrayscale — monochrome light theme using only gray tones. |
GRUVBOX_DARKGruvbox Dark — retro, earthy dark palette with warm tones. |
GRUVBOX_LIGHTGruvbox Light — retro, earthy light palette with warm tones. |
HYBRIDHybrid — a dark theme blending multiple color palettes. |
IDEAIDEA — IntelliJ IDEA classic light scheme. |
INTELLIJ_LIGHTIntelliJ Light — inspired by JetBrains IntelliJ IDEA's default scheme. |
IR_BLACKIR Black — a classic dark terminal-style theme. |
ISBL_EDITOR_DARKISBL Editor Dark — dark variant of the ISBL editor theme. |
ISBL_EDITOR_LIGHTISBL Editor Light — light variant of the ISBL editor theme. |
KIMBIE_DARKKimbie Dark — warm dark theme with brown-orange tones. |
KIMBIE_LIGHTKimbie Light — warm cream-toned light theme. |
LIGHTFAIRLightfair — bright, clean light theme with blue accents. |
LIOSHILioshi — a dark theme with green and cyan accents. |
MAGULAMagula — soft light theme with muted colors. |
MONO_BLUEMono Blue — light theme using only shades of blue. |
MONOKAIMonokai — the iconic dark theme originating from Sublime Text. |
MONOKAI_SUBLIMEMonokai Sublime — the Monokai variant popularized by Sublime Text. |
NIGHT_OWLNight Owl — a dark theme optimized for accessibility and contrast. |
NNFX_DARKNNFX Dark — dark variant of the No Nonsense FX theme. |
NNFX_LIGHTNNFX Light — light variant of the No Nonsense FX theme. |
NORDNord — an elegant arctic-inspired dark color palette. |
OBSIDIANObsidian — a dark theme with olive and amber accents. |
PANDA_SYNTAX_DARKPanda Syntax Dark — dark variant of the popular Panda theme. |
PANDA_SYNTAX_LIGHTPanda Syntax Light — light variant of the popular Panda theme. |
PARAISO_DARKParaiso Dark — dark variant with warm tropical-inspired colors. |
PARAISO_LIGHTParaiso Light — light variant with warm tropical-inspired colors. |
POJOAQUEPojoaque — a dark Solarized-like theme with teal backgrounds. |
PUREBASICPureBasic — light theme styled after the PureBasic IDE. |
QTCREATOR_DARKQt Creator Dark — dark variant of the Qt Creator IDE theme. |
QTCREATOR_LIGHTQt Creator Light — light variant of the Qt Creator IDE theme. |
RAINBOWRainbow — a vivid dark theme with colorful syntax highlighting. |
ROUTEROSRouterOS — light theme inspired by MikroTik RouterOS style. |
SCHOOL_BOOKSchool Book — playful light theme with a notebook-paper feel. |
SHADES_OF_PURPLEShades of Purple — a vibrant purple-toned dark theme. |
SOLARIZED_DARKSolarized Dark — Ethan Schoonover's carefully designed dark palette. |
SOLARIZED_LIGHTSolarized Light — Ethan Schoonover's carefully designed light palette. |
SRCERYSrcery — a dark theme inspired by the Gruvbox and Apprentice palettes. |
STACKOVERFLOW_DARKStack Overflow Dark — the dark theme from Stack Overflow. |
STACKOVERFLOW_LIGHTStack Overflow Light — the clean light theme from Stack Overflow. |
SUNBURSTSunburst — a classic dark theme with warm highlight colors. |
TOKYO_NIGHT_DARKTokyo Night Dark — a deep blue-black theme with vivid accents. |
TOKYO_NIGHT_LIGHTTokyo Night Light — soft pastel light variant of the Tokyo Night family. |
TOMORROW_NIGHT_BLUETomorrow Night Blue — a deep blue dark theme from the Tomorrow family. |
TOMORROW_NIGHT_BRIGHTTomorrow Night Bright — a vivid dark theme from the Tomorrow family. |
VSVisual Studio — classic Visual Studio light color scheme. |
VS2015VS 2015 — Visual Studio 2015 / VS Code dark theme. |
XCODEXcode — Apple's Xcode IDE default light theme. |
XT256XT256 — 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.