DEV Community

Amr  khaled kilany
Amr khaled kilany

Posted on

the easiest dark mode for beginners

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

Top comments (1)

Collapse
 
amr2010m profile image
Amr khaled kilany

Plss give us your feedback