Last active
January 10, 2017 15:47
-
-
Save jamesmcallister/909bfe815990c69056a5507fbeb28266 to your computer and use it in GitHub Desktop.
aphrodte react inline tachyons css
This file contains 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} from 'react' | |
import logo from './logo.svg' | |
import {StyleSheet, css} from 'aphrodite' | |
import t from 'tachyons-js' | |
class App extends Component { | |
render() { | |
const {styles} = App | |
return ( | |
<div className={css(styles.App)}> | |
<div className={css(styles.App_header)}> | |
<img src={logo} className={css(styles.App_logo)} alt="logo"/> | |
<h2>Welcome to React</h2> | |
</div> | |
<p className={css(styles.App_intro)}> | |
To get started, edit | |
<code>src/App.js</code> | |
and save to reload. | |
</p> | |
</div> | |
); | |
} | |
} | |
App.styles = StyleSheet.create({ | |
App_logo: { | |
animationName: { | |
'from': { | |
transform: 'rotate(0deg)' | |
}, | |
'to': { | |
transform: "rotate(360deg)" | |
} | |
}, | |
animationDuration: '20s', | |
animationIterationCount: 'infinite', | |
...t.h4 | |
}, | |
App: { | |
...t.tc | |
}, | |
App_header: { | |
...t.bg_black, | |
...t.h5, | |
...t.pa3, | |
...t.white | |
}, | |
App_intro: { | |
...t.f3 | |
} | |
}) | |
export default App |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ive taken create-react-app and converted it to aphrodite with tachyons-js.