Skip to content

Instantly share code, notes, and snippets.

@theking2
Created December 18, 2023 15:36
Show Gist options
  • Save theking2/cde3afab24f97b80e3f95ef82df9ea27 to your computer and use it in GitHub Desktop.
Save theking2/cde3afab24f97b80e3f95ef82df9ea27 to your computer and use it in GitHub Desktop.
add styles
const style = document.createElement('style');
document.haad.appendChild(style);
const styleSheet = style.sheet;
styleSheet.insertRule('h1{font-size:123px;}');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment