Skip to content

Instantly share code, notes, and snippets.

View SaraVieira's full-sized avatar
🤷‍♀️
open sourcy and shit

Sara Vieira SaraVieira

🤷‍♀️
open sourcy and shit
View GitHub Profile
@SaraVieira
SaraVieira / .hyper.js
Last active March 1, 2017 20:27
Hyper
// -- hyper-stylesheet-hash:3668d1255e9fc3fde9cd8c87cbdeb358 --
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
@SaraVieira
SaraVieira / gist:caf6b9e327eac9a43485d508489f6b5a
Created April 23, 2017 11:39
Ideas for 30 components in 30ish days
Buttons
Drop-down button
Weather widget
body * { border-radius: 4px; }
img { border-radius: 50%; }
import styled from 'styled-components';
export const Section = styled.main`
display: flex;
flex-direction: column;
background: #fff;
`;
export const Paragraph = styled.p`
font-size: 14px;
import React from 'react';
import styled from 'styled-components';
import { Section, Paragraph } from './style.js';
const Button = styled.button`
display: inline-block;
border-radius: 3px;
padding: 0.5rem 0;
margin: 0.5rem 1rem;
@SaraVieira
SaraVieira / index.js
Last active August 18, 2017 21:24
Styled Components article
import React from 'react';
import styled from 'styled-components';
const Section = styled.main`
display: flex;
flex-direction: column;
background: #fff;
`;
const Paragraph = styled.p`
import styled, { css } from 'styled-components';
export const Section = styled.main`
display: flex;
flex-direction: column;
background: #fff;
`;
export const Paragraph = styled.p`
font-size: 14px;
import React from 'react';
import styled from 'styled-components';
import { Section, Paragraph, ButtonStyles } from './style.js';
const Button = styled.button`${ButtonStyles};`;
const Main = () => (
<Section>
<Paragraph>