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