[Vuejs]-How to enable dark mode using darkreader package in Vue js website?

0๐Ÿ‘

I was trying to import darkreader like โ€“ import {DarkReader} from 'darkreader'

Solved the issue by importing as follows

    enable as enableDarkMode,
    disable as disableDarkMode,
    auto as followSystemColorScheme, } from 'darkreader';   enableDarkMode({
    brightness: 100,
    contrast: 90,
    sepia: 10, });   disableDarkMode();   followSystemColorScheme(); ```

https://www.npmjs.com/package/darkreader

Leave a comment