colorScheme
Type: <string>
Default: 'no-preference'
Default: 'no-preference'
Sets
prefers-color-scheme
CSS media feature, indicating user preference to use 'light'
or 'dark'
color theme over the target url.- CLI
- JavaScript
- Shell
- Python
- Ruby
const mql = require('@microlink/mql')
const { status, data } = await mql(
'https://googlechromelabs.github.io/dark-mode-toggle/demo/',
{ screenshot: true, colorScheme: 'dark' }
)
mql.render(data)