the easiest dark mode for beginners
butterfly css blog

butterfly css blog @butterflycss

About: cd : Cannot find path 'C:\feelings\giving-up' because it does not exist

Location:
egypt
Joined:
May 31, 2025

the easiest dark mode for beginners

Publish Date: Jul 26 '25
1 1

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

Comments 1 total

Add comment