personal-site/themes/theme/static/enable-darkmode.js

9 lines
159 B
JavaScript

const options = {
bottom: '16px',
right: '16px',
buttonColorDark: '#666',
buttonColorLight: '#aaa',
label: '🌙',
};
new Darkmode(options).showWidget();