WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

LightDark

is an option for notebooks that specifies whether to display notebook contents in light or dark mode.

Details
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Properties & Relations  
See Also
Related Guides
History
Cite this Page

LightDark

is an option for notebooks that specifies whether to display notebook contents in light or dark mode.

Details

  • The default global setting is LightDarkAutomatic .
  • LightDark can also be applied as an option to Rasterize . The default behavior uses the LightDark setting of the notebook where the evaluation is running.
  • LightDark can take the following settings:
  • "Dark" display notebook contents in dark mode
    "Light" display notebook contents in light mode
    Automatic display notebook contents in the mode set globally in your operating system

Examples

open all close all

Basic Examples  (3)

Query the mode of the current notebook:

Create a dark mode notebook:

Control the light-dark setting for Rasterize :

Scope  (3)

LightDark affects the display of text and equations:

LightDark affects the default colors used by 2D graphics:

LightDark affects the default colors of labels and lines in 3D graphics:

The colors produced by lighting effects for polygons and shapes are not affected:

Properties & Relations  (3)

LightDark affects how LightDarkSwitched directives are displayed:

LightDark settings affect how ThemeColor directives are displayed:

LightDark"Dark" normally has no effect on explicit colors:

When LightDarkAutoColorRules is used, explicit colors can be remapped to preserve contrast:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2025_lightdark, author="Wolfram Research", title="{LightDark}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/LightDark.html}", note=[Accessed: 05-December-2025]}

BibLaTeX

@online{reference.wolfram_2025_lightdark, organization={Wolfram Research}, title={LightDark}, year={2025}, url={https://reference.wolfram.com/language/ref/LightDark.html}, note=[Accessed: 05-December-2025]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /