ThemeColor

ThemeColor["name"]

represents a named color setting that is resolved according to the current notebook theme.

Details

  • ThemeColor["name"] evaluates to itself.
  • When applied as part of a style setting, the notebook front end resolves the value to a color as part of the process of rendering.
  • ThemeColor may use a "light" or "dark" version of the color settings depending upon whether the notebook is running in light or dark mode. The setting of light or dark mode is based upon the value of the LightDark option.
  • Typical values for "name", with typical defaults in light mode, include:
  • "Foreground"foreground text and related elements
    "Background"background color of the notebook
    "Accent1"title- and sectionrelated styles
    "Accent2"title- and sectionrelated styles
    "Accent3"cell labels and brackets
    "Accent4"entity coloring
    "Accent5"quantity coloring
    "Accent6"chat/LLM coloring
    "Accent7"external code coloring
    "Accent8"error colors
    "Accent9"general interface coloring

Examples

open allclose all

Basic Examples  (2)

Display text with the "Accent1" color:

Display a disk with the "Accent9" color:

Properties & Relations  (2)

The value of a ThemeColor can vary between light and dark mode:

ThemeColor is effectively resolved by doing a StyleHints lookup:

Wolfram Research (2025), ThemeColor, Wolfram Language function, https://reference.wolfram.com/language/ref/ThemeColor.html.

Text

Wolfram Research (2025), ThemeColor, Wolfram Language function, https://reference.wolfram.com/language/ref/ThemeColor.html.

CMS

Wolfram Language. 2025. "ThemeColor." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ThemeColor.html.

APA

Wolfram Language. (2025). ThemeColor. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ThemeColor.html

BibTeX

@misc{reference.wolfram_2024_themecolor, author="Wolfram Research", title="{ThemeColor}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/ThemeColor.html}", note=[Accessed: 15-January-2025 ]}

BibLaTeX

@online{reference.wolfram_2024_themecolor, organization={Wolfram Research}, title={ThemeColor}, year={2025}, url={https://reference.wolfram.com/language/ref/ThemeColor.html}, note=[Accessed: 15-January-2025 ]}