Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

easiest way to invert css to dark mode

// easist way to make dark color but its not complete perfect but mostly 
// works 

html.dark-mode {
    filter: invert(100%);
}
// if you want make sure primary color should not change
html.dark-mode{
filter: invert(100%) hue-rotate(180deg);
}

html.dark-mode img {
    filter: invert(100%);
}
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #easiest #invert #css #dark #mode
ADD COMMENT
Topic
Name
3+2 =