the easiest dark mode for beginners



This content originally appeared on DEV Community and was authored by Amr khaled kilany

hi devs i made a small opensource project for beginners who want to make fast,easy dark mode in their website with local storage without external frameworks
it’s here:
<script src="https://cdn.jsdelivr.net/gh/AMR2010M/butterfly-css@main/dark.js"></script>

attributes:
dark-btn => for the toogle dark mode switch
d+color =>when dark set the bg-color to this color
l+color =>light mode bg-color
dt+color text in dark mode
tl+color text in light mode

supported colors:
white,purple,blue,green,orange,black,yellow
pls give me your feedback

this dark mode will be in v2 of my framework butterfly css


This content originally appeared on DEV Community and was authored by Amr khaled kilany