# Images Images can be a great supplement to technical documentation text. Sphinx provides control for their alignment in the content, as well as the ability to add captions. ## Basic Usage ```{furo-demo} ![](https://source.unsplash.com/200x200/daily?cute+animals) This is from Markdown. +++ .. image:: https://source.unsplash.com/200x200/daily?cute+animals This is from reStructuredText. ``` ## Alignment ````{furo-demo} ```{image} https://source.unsplash.com/200x200/daily?cute+animals :align: center ``` This is from Markdown. +++ .. image:: https://source.unsplash.com/200x200/daily?cute+animals :align: center This is from reStructuredText. ```` ## Captions ````{furo-demo} ```{figure} https://source.unsplash.com/200x200/daily?cute+animals This is a captioned image, which needs the "figure" directive. ``` This is from Markdown. +++ .. figure:: https://source.unsplash.com/200x200/daily?cute+animals This is a captioned image, which needs the "figure" directive. This is from reStructuredText. ```` (light-dark-images)= ## Different images for dark/light mode Furo supports [light mode and dark mode](../customisation/colors) colours out-of-the-box. However, certain images do not work well against certain backgrounds (eg: if the image has a white background). You can use the `only-light` and `only-dark` classes, to show different images based on the currently active colour scheme. ````{furo-demo} ```{image} https://source.unsplash.com/200x200/daily?cute+dogs :align: center :class: only-light ``` ```{image} https://source.unsplash.com/200x200/daily?cute+cats :align: center :class: only-dark ``` ```{figure} https://source.unsplash.com/200x200/daily?cute+cats :align: center :figclass: only-light ``` ```{figure} https://source.unsplash.com/200x200/daily?cute+dogs :align: center :figclass: only-dark ``` This is from Markdown. +++ .. image:: https://source.unsplash.com/200x200/daily?cute+dogs :align: center :class: only-light .. image:: https://source.unsplash.com/200x200/daily?cute+cats :align: center :class: only-dark .. figure:: https://source.unsplash.com/200x200/daily?cute+cats :align: center :figclass: only-light .. figure:: https://source.unsplash.com/200x200/daily?cute+dogs :align: center :figclass: only-dark This is from reStructuredText. ````