basic-theme
v0.1.2
Published
learning how to create npm package
Downloads
15
Readme
Getting started
You would need to compile the sass file into CSS, then link your css into your html page.
<head>
...
<link rel="stylesheet" href="path/to/file/compiledcss.css">
...
</head>Css toggle checkbox
You would need to to use the below html structure tags to get the correct render, by default the text is on the left of the toggle. check the code below to see
Code:
<label class="theme-toggle-switch-container">
<input type="checkbox">
<span class="toggle-text">Allow Notification</span>
<span class="toggle-switch"></span>
</label>Output would be

Text on right
To make the text on the right of the toggle to add css class "right-text" to the theme-toggle-switch-container
Code:
<label class="theme-toggle-switch-container right-text">
<input type="checkbox">
<span class="toggle-text">Allow Notification</span>
<span class="toggle-switch"></span>
</label>Output would be

Round toggle
by default the toggle do have round edged corners, to make them round add class "round" to "toggle-switch"
Code:
<label class="theme-toggle-switch-container">
<input type="checkbox">
<span class="toggle-text">Allow Notification</span>
<span class="toggle-switch radius"></span>
</label>Output would be

Round toggle - text on the right
To make the text on the right of the toggle to add css class "right-text" to the theme-toggle-switch-container
Code:
<label class="theme-toggle-switch-container right-text">
<input type="checkbox">
<span class="toggle-text">Allow Notification</span>
<span class="toggle-switch radius"></span>
</label>Output would be

