Skip to content

Instantly share code, notes, and snippets.

@addisonschultz
Last active February 18, 2021 16:31
Show Gist options
  • Save addisonschultz/c73d1aed04ebb84517a1890f8f8f9d56 to your computer and use it in GitHub Desktop.
Save addisonschultz/c73d1aed04ebb84517a1890f8f8f9d56 to your computer and use it in GitHub Desktop.
A quick utility file to add CSS to a Framer Project
function Add() {
let css = document.createElement("link");
css.href = "path/to/styles.css";
css.id = "framerCustomCSS";
document.head.appendChild(css);
}
if (
document.getElementById("framerCustomCSS")
) {
console.log("Loading CSS...");
Add();
console.log("CSS Loaded!");
} else {
console.log("CSS already loaded!");
return;
}
Add();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment