1.3.0 β’ Published 4 years ago
@ysms/ts-darkmode v1.3.0
@ysms/ts-darkmodejs
π How about change your web to darkmode?
π― Getting started
npm install @ysms/ts-darkmodeimport Darkmode from "@ysms/ts-darkmode";π How to use
// This creates a dark mode toggle button on your web.
const darkmode = new Darkmode({ content: "π" });
darkmode.activeDark();π Setting Options
// it's all default value
{
bottom: "30px", // Button's bottom position
right: "30px", // You can choose between right and left
left: "unset",
transitionTime: "0.3s", // Transition Time
backgroundColor: "#fff", // Light mode background color setting
buttonDarkColor: "#141414", // Dark mode button color
buttonLightColor: "#fff", // Light mode button color
content: "π", // Content in button
saveInCookies: true, // If you want to remember whether it's dark mode or not, write this section true or false
buttonWidth: "3rem", // Button size
buttonHeight: "3rem", // Button size
}<!-- add 'darkmode-ignore' class-->
<div class="darkmode-ignore"><img href="@@@"></div>πͺ License
Copyright 2022. YunMinSeok&ChoYeSeul(ysms) all rights reserved.
1.3.0
4 years ago
1.2.9
4 years ago
1.2.8
4 years ago
1.2.7
4 years ago
1.2.6
4 years ago
1.2.5
4 years ago
1.2.4
4 years ago
1.2.3
4 years ago
1.2.2
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.9
4 years ago
1.1.8
4 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago