This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Variables | |
$alert-padding: 2rem; | |
$alert-padding-small: 1.5rem; | |
$alert-padding-large: 5rem 5.5rem; | |
// Alert | |
.vl-alert { | |
display: flex; | |
position: relative; | |
background-color: $alt-bg; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sass-lint:disable force-element-nesting placeholder-in-extend | |
.vl-typography ul, | |
.ul { | |
list-style-type: disc; | |
} | |
.vl-typography ol, | |
.ol { | |
list-style-type: decimal; | |
} | |
.vl-typography ol, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"records": [ | |
{ | |
"id": "recqk05WCliPoNTw5", | |
"fields": { | |
"optimizedImage": [ | |
{ | |
"id": "attFyUkYRxrRX0lAc", | |
"url": "https://dl.airtable.com/seMnqW5nQa2Z5k2Jywto_blade-runner-2049.jpg", | |
"filename": "blade-runner-2049.jpg", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
title: "Film", | |
name: "film", | |
type: "document", | |
fields: [ | |
{ | |
title: "Name", | |
name: "name", | |
type: "string", | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Change this to your AI files folder (Be sure to end with a /) | |
var location = "/Users/Downloads/my-file/"; | |
function getFiles() { | |
var folder = new Folder(location); | |
if (folder.exists) { | |
return folder.getFiles("*.svg"); | |
} else { | |
alert("Unable to find SVG Files Folder"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// About the shortest code I could write to render an image out from the Figma API and make it clear whether it is loading/has loaded. | |
// https://github.com/wolfr | |
// If you use this code please change to your own access token | |
const PERSONAL_ACCESS_TOKEN = ''; // Your personal access token here | |
function apiRequest(endpoint) { | |
return fetch('https://api.figma.com/v1' + endpoint, { | |
method: 'GET', | |
headers: { "x-figma-token": PERSONAL_ACCESS_TOKEN } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
each category, id in icons.svg | |
if id | |
h3 #{id} | |
each icon in category | |
.svg-icon | |
+icon(icon.category+'/'+icon.name) | |
p #{icon.name} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Here is the simplest component I could write | |
import * as React from "react"; | |
import { PropertyControls, ControlType } from "framer"; | |
export class test extends React.Component<Props> { | |
render() { | |
return ( | |
<div>Hey</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Here is a basic Framer X component where we use CSS directly | |
import * as React from "react"; | |
import { PropertyControls, ControlType } from "framer"; | |
// Define type of property | |
interface Props { | |
width: number | |
height: number | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ========================================================================== | |
Colors | |
Only define colors here. Don't use sass color functions, stick to hex values, | |
or the color component in styleguide won't regenerate automatically anymore. | |
========================================================================== */ | |
/* Red | |
========================================================================== */ | |
$material-color-red-50: #ffebee; |