Skip to content

Instantly share code, notes, and snippets.

const styleSheet = createStyleSheet('MyComponent', () => {
return {
base: {
margin: 32
},
button: {
'@scope': 'base',
minWidth: 64
}
}
import React, { Component, PropTypes } from 'react';
import { createStyleSheet } from '../styles/styleSheet';
import ClassNames from 'classnames';
export const styleSheet = createStyleSheet('button', (theme) => {
const { palette, shadows, transitions, typography } = theme;
return {
base: {
extend: typography.button,
export function createMuiTheme(
palette = createPalette(),
...more
) {
const properties = merge({
palette
}, ...more);
if (!properties.hasOwnProperty('id')) {
properties.id = hashObject(properties);
import Promise from 'bluebird';
import map from 'lodash/fp/map';
/**
* @module utils/concurrentGenerator
*/
export default function ConcurrentGenerator ({
concurrency = 5,
items = [],
import Typography from 'material-ui/lib/styles/typography';
export default {
display4: {
color: Typography.textLightBlack,
fontSize: 112,
fontWeight: Typography.fontWeightLight
},
display3: {
color: Typography.textLightBlack,