Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Inject CSS with Javascript
require(['injectCSS'], function(injectCSS) {
injectCSS(function(){/*
.case1 {
border: 3px solid #0f0;
}
*/});
injectCSS('.case2 { border: 3px solid #00f; } ');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment