Skip to content

Navigation Menu

Sign in
Sign up

Repository files navigation

Umbra

Run tests

🌚 A simple dark mode toggle library that makes it easy to implement dark mode on your website without additional configuration

Please make sure to read the Wiki for detailed documentation and examples

πŸ“¦ Installation

Use npm or any other package manager:

npm install @emrocode/umbra

βš™οΈ Setup

// main.js
import Umbra from '@emrocode/umbra';
const options = {
 autoMatchTheme: true,
};
// autoMatchTheme: true,
// useColorScheme: ['#ffffff', '#000000'],
// useStorage: 'local',
// usePlugins: []
new Umbra('#element', options);

Releases

Used by

Contributors

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /