Skip to content

Instantly share code, notes, and snippets.

View davo's full-sized avatar
🏠

Davo Galavotti davo

🏠
View GitHub Profile
@davo
davo / settings.json
Created January 11, 2019 18:10
VS Code customization for Framer X projects
{
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#05f",
"titleBar.inactiveBackground": "#09f",
"titleBar.inactiveForeground": "#262626",
"titleBar.activeForeground": "#ffffff"
}
}
@davo
davo / GoogleFontPlus.tsx
Created January 8, 2019 13:47
Dynamic ControlType.Enum values on Framer X
import * as React from 'react'
import { fonts } from './fonts'
const fontNames = fontArray => {
let fontList = []
fontArray.forEach((elem, index) => fontList.push(elem.family))
return fontList
}
const filterFontsByCategory = (category: string) => {
@davo
davo / framer-x-pain-points.md
Last active November 29, 2018 13:01
Framer X - Designer Developer Experience Pain Points

Framer X

Designer/Developer Experience Pain Points

Code Components

  • Classes as the only way to create Code Components to Framer X.

    • ES6 Classes are awesome but hardly the only way to code reusable components in React. If I wanted to create a stateless functional component there is no way for Framer X to view or create an instance of such component inside the Components panel.
  • Examples on how to Extend a Framer X Class component (ie: PageComponent)

    • This might be solved with a little documentation effort. I’m doing that to understand the relationship between the core components of Framer X and external community driven components (FX/React/JS).
@davo
davo / manifest.json
Last active November 2, 2018 01:19
React Sketchapp SVG
{
"compatibleVersion": 3,
"bundleVersion": 1,
"commands": [
{
"name": "SVG",
"identifier": "main",
"script": "./svg.js"
}
],
@davo
davo / heuristic_evaluation.md
Last active August 24, 2018 21:49
Heuristic evaluation
@davo
davo / .block
Last active August 21, 2018 18:52
Network flow with happy path
license: mit
@davo
davo / Grid.tsx
Last active September 15, 2018 16:28
CSS Grid for Framer X
import * as React from 'react'
const container: React.CSSProperties = {
width: '100%',
height: '100%',
display: 'grid',
gridTemplateColumns: '10rem 10rem 10rem 10rem'
}
const item: React.CSSProperties = {
@davo
davo / MaterialIcon.tsx
Last active August 17, 2018 04:53
Framer X - Material Icon Component via Styled Components
import * as React from 'react'
import { ControlType } from 'framer'
import styled, { injectGlobal } from 'styled-components'
injectGlobal`
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
`
interface iconProps {
stretch: boolean
import * as React from 'react'
import { Frame, PropertyControls, ControlType } from 'framer'
interface Props {
color: string
}
export class componentName extends React.Component<Props> {
static defaultProps = {
width: 1600,
@davo
davo / open-safari-tabs-in-chrome.scpt
Created August 12, 2018 17:34 — forked from paulirish/open-chrome-tabs-in-safari.scpt
Open Safari tabs in Google Chrome
tell application "Safari"
set tab_list to every tab in the front window
repeat with the_tab in tab_list
set the_url to the URL of the_tab
tell application "Google Chrome" to open location the_url
end repeat
end tell