π How about change your web to darkmode?
μ ν¬λ νμ¬ ν΄λΌμ΄μΈνΈμ μꡬμ λ§μΆ° λΉ λ₯΄κ² λ€μν κΈ°λ₯μ ꡬνν΄μΌνλ Si νμ¬μ 근무νκ³ μμ΅λλ€. ν¨κ» μ¬λ¬ κΈ°λ₯λ€μ μμ
νλ μ€ βμ΄λ° κΈ°λ₯λ€μ μ¬μ©μ± μ’μ λΌμ΄λΈλ¬λ¦¬λ‘ ꡬμΆν΄ λμΌλ©΄ λ§μ μ¬λλ€μ΄ νΈνκ³ λΉ λ₯΄κ² μμ
ν μ μμ§ μμκΉ?βλΌλ μκ°μ νκ² λμμ΅λλ€.
κ·Έλ κ² βDarkMode Open Sourceβ λ₯Ό 첫 νλ‘μ νΈλ‘ ν¨κ» μμ νκ² λμμ΅λλ€!
TypeScriptμ Reactλ₯Ό μ¬μ©νμ¬ μΈν°λμ ꡬνκΉμ§ μλ£ μμ μ΄λ©° νμ¬ μ λ°μ΄νΈ μ§νμ€μ λλ€. μ΄ν μ¬λ¬ μΈμ΄λ₯Ό μ¬μ©νλ©° Open Source νμ μ§ν μμ μ λλ€.
κ·Έλ κ² βDarkMode Open Sourceβ λ₯Ό 첫 νλ‘μ νΈλ‘ ν¨κ» μμ νκ² λμμ΅λλ€!
TypeScriptμ Reactλ₯Ό μ¬μ©νμ¬ μΈν°λμ ꡬνκΉμ§ μλ£ μμ μ΄λ©° νμ¬ μ λ°μ΄νΈ μ§νμ€μ λλ€. μ΄ν μ¬λ¬ μΈμ΄λ₯Ό μ¬μ©νλ©° Open Source νμ μ§ν μμ μ λλ€.
npm install @ysms/ts-darkmode
import Darkmode from "@ysms/ts-darkmode";
// This creates a dark mode toggle button on your web.
const darkmode = new Darkmode({ content: "π" });
darkmode.activeDark();
// 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>
Copyright 2022. YunMinSeok&ChoYeSeul(ysms) all rights reserved.