1.3.0 β€’ Published 3 years ago

@ysms/ts-darkmode v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@ysms/ts-darkmodejs

πŸŒ™ How about change your web to darkmode?

Status License

🎯 Getting started

npm install @ysms/ts-darkmode
import 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

MIT License

Copyright 2022. YunMinSeok&ChoYeSeul(ysms) all rights reserved.

1.3.0

3 years ago

1.2.9

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago