Skip to content

Instantly share code, notes, and snippets.

import React from "react"
export default () => (
<div
css={{
backgroundColor: 'hotpink',
'&:hover': {
color: 'lightgreen'
}
}}
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@KyleAMathews
KyleAMathews / gatsby-recipe-emotion
Last active March 20, 2020 02:47
Gatsby Recipes
# Emotion
This recipe helps you start developing with the Emotion CSS in JS library
<Config
conflictsWith="gatsby-recipe-styled-components"
/>
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<style id="typography.js">
html {
font-family: sans-serif;
@KyleAMathews
KyleAMathews / SketchSystems.spec
Created June 12, 2019 17:44
Incremental Builds
Incremental Builds
Running Full Build
finished build -> Deployed
Running Incremental Build
finished build -> Deployed
Deployed
data change not affecting static queries -> Running Incremental Build
data change affecting static queries -> Running Full Build
code change -> Running Full Build
<html>
<head>
<link
rel="prefetch"
as="image"
href="https://images.pexels.com/photos/248797/pexels-photo-248797.jpeg"
onload="fetch('https://images.pexels.com/photos/248797/pexels-photo-248797.jpeg')"
/>
</head>
<body>
import React from "react"
import { render, Static, Box, Color, Text } from "ink"
import BigText from "ink-big-text"
import BBox from "ink-box"
import TextInput from "ink-text-input"
import { Tabs, Tab } from "ink-tab"
import _ from "lodash"
const purple = [102, 51, 153]
const hexPurple = `#663399`
{"total":740,"results":[{"package":{"name":"gatsby-plugin-react-helmet","scope":"unscoped","version":"3.0.6","description":"Manage document head data with react-helmet. Provides drop-in server rendering support for Gatsby.","keywords":["gatsby","gatsby-plugin","favicon","react-helmet","seo","document","head","title","meta","link","script","base","noscript","style"],"date":"2019-02-01T12:25:14.983Z","links":{"npm":"https://www.npmjs.com/package/gatsby-plugin-react-helmet","homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-react-helmet#readme","repository":"https://github.com/gatsbyjs/gatsby","bugs":"https://github.com/gatsbyjs/gatsby/issues"},"author":{"name":"Kyle Mathews","email":"matthews.kyle@gmail.com"},"publisher":{"username":"pieh","email":"misiek.piechowiak@gmail.com"},"maintainers":[{"username":"dschau","email":"dustinschau@gmail.com"},{"username":"freiksenet","email":"freiksenet@gmail.com"},{"username":"kylemathews","email":"mathews.kyle@gmail.com"},{"username":"m-allan
<!DOCTYPE html>
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<style data-href="/component---src-posts-2018-09-13-why-i-migrated-away-from-medium-mdx.942e966dd04428ca9417.css">
.body-module--h1--26YIz {
margin-bottom: 2rem;
exports.onCreateNode = ({ node, actions, createNodeId, createContentDigest }) => {
const { createNode, createNodeField } = actions
if (node.internal.type === `NodeTypeWithMarkdownField`) {
const newNode = createNode({
id: createNodeId(`${node.id} markdown field`),
children: [],
parent: node.id,
internal: {
content: node.markdownField,
mediaType: `text/markdown`,