Skip to content

Instantly share code, notes, and snippets.

🤙

Reggie Paquette regpaq

🤙
Block or report user

Report or block regpaq

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@regpaq
regpaq / lightswitch.js
Last active Jul 11, 2019 — forked from nickpunt/lightswitch.js
Lightswitch: A dark mode switcher with user override
View lightswitch.js
/*******************************************************************************
LIGHTSWITCH: A DARK MODE SWITCHER WITH USER OVERRIDE
Originally By Nick Punt 10/26/2018
How to use:
1. Create two data theme sets with CSS Variables 'light' and 'dark' such as:
html[data-theme="light"] {
--color-text: #000;
You can’t perform that action at this time.