docfx icon indicating copy to clipboard operation
docfx copied to clipboard

[Feature Request] Images for light and dark theme

Open okvalsralos opened this issue 2 years ago • 6 comments

Describe the solution you'd like docfx has a switcher in the header that lets readers choose between the light and the dark theme. If applicable authors should provide both the light and the dark version of every screenshot used in the documentation.

Additional context Add the _dark.png suffix to the name of the dark image version. This image will be then used when the user switches to the dark theme.

For example, save images as example.png and example_dark.png.

okvalsralos avatar Nov 06 '23 19:11 okvalsralos

+1

BarkenBark avatar Dec 12 '23 12:12 BarkenBark

+1

CaseyHofland avatar Dec 30 '23 00:12 CaseyHofland

Until this feature is implemented, do you known of any trick or workaround how to provide different images (and some icons) based on the theme?

bitbonk avatar Feb 02 '24 13:02 bitbonk