mirror of
https://github.com/picocss/pico.git
synced 2025-02-24 00:39:20 -05:00
21 lines
437 B
JavaScript
21 lines
437 B
JavaScript
/*
|
|
* Add some magic to Pico docs
|
|
*
|
|
* Pico.css - https://picocss.com
|
|
* Copyright 2019-2021 - Licensed under MIT
|
|
*/
|
|
|
|
// Imports
|
|
import themeSwitcher from './src/theme-switcher.js';
|
|
import toggleNavigation from './src/toggle-navigation';
|
|
|
|
// Theme switcher
|
|
themeSwitcher.addButton({
|
|
tag: 'BUTTON',
|
|
class: 'contrast switcher theme-switcher',
|
|
target: 'body',
|
|
});
|
|
themeSwitcher.init();
|
|
|
|
// Toggle navigation
|
|
toggleNavigation.init(); |