Control light/dark mode rendering for your screenshots
How it works
The color_scheme parameter sets Chrome to render the page as if the user has explicitly chosen light or dark mode. This affects websites that use the CSS prefers-color-scheme media query.
Values
Value
Description
light
Render as if the user prefers light mode
dark
Render as if the user prefers dark mode
When to use it
Use color_scheme when:
Taking screenshots of websites that support dark mode
Testing how your designs look in both color schemes
Generating consistent screenshots regardless of system settings
Creating dark mode variants of images
Example usage
Screenshot in dark mode
curl -X POST https://hcti.io/v1/image -u'UserID:APIKey'\--data-urlencodeurl="https://github.com"\--datacolor_scheme=dark