Skip to content

Commit 2439ab5

Browse files
committed
Revert to v1.0.1
1 parent 3dc0b98 commit 2439ab5

File tree

8 files changed

+2822
-2700
lines changed

8 files changed

+2822
-2700
lines changed

CHANGELOG.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

README.md

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ import { styles as s } from 'tachyons-react-native'
5959
export default class App extends React.Component {
6060
render () {
6161
return (
62-
<View style={[s.flex, s.alignCenter, s.justifyCenter, s.theme.primaryBg]}>
63-
<Text style={[s.tc, s.b, s.i, s.ba, s.theme.primaryText]}>Open up App.js to start working on your app!</Text>
62+
<View style={[s.flex, s.alignCenter, s.justifyCenter, s.primaryBg]}>
63+
<Text style={[s.tc, s.b, s.i, s.ba, s.primaryText]}>Open up App.js to start working on your app!</Text>
6464
</View >
6565
)
6666
}
@@ -79,14 +79,11 @@ import { styles as s, withTheme } from 'tachyons-react-native'
7979
export default withTheme(class App extends React.Component {
8080
render () {
8181
return (
82-
<View style={[s.flex, s.flexColumn, s.alignCenter, s.justifyCenter, s.theme.primaryBg]}>
83-
<Text style={[s.tc, s.b, s.i, s.theme.primaryText]}>Open up App.js to start working on your app!</Text>
84-
<View style={[s.flex1, s.justifyCenter, s.mh5, s.mv2]}>
85-
<TouchableOpacity style={[s.pa2, s.theme.accentBg]}
86-
onPress={() => this.props.setTheme(this.props.theme === 'dark' ? 'light' : 'dark')}>
87-
<Text style={[s.tc]}>Toggle Theme</Text>
88-
</TouchableOpacity>
89-
</View>
82+
<View style={[s.flex, s.alignCenter, s.justifyCenter, s.primaryBg]}>
83+
<Text style={[s.tc, s.b, s.i, s.ba, s.primaryText]}>Open up App.js to start working on your app!</Text>
84+
<TouchableOpacity onPress={() => this.props.setTheme(this.props.theme === 'dark' ? 'light' : 'dark')}>
85+
<Text>Toggle Theme</Text>
86+
</TouchableOpacity>
9087
</View >
9188
)
9289
}
@@ -97,33 +94,33 @@ export default withTheme(class App extends React.Component {
9794

9895
STYLE NAME | STYLES
9996
|-------|---------------------------------
100-
theme.${name} | {"color": ${color}}
101-
theme.${name}TextShadow | {"textShadowColor": ${color}}
102-
theme.${name}TextDecoration | {"textDecorationColor": ${color}}
103-
theme.${name}Bg | {"backgroundColor": ${color}}
104-
theme.${name}Ba | {"borderColor": ${color}}
105-
theme.${name}Bt | {"borderTopColor": ${color}}
106-
theme.${name}Br | { borderRightColor: ${color} }
107-
theme.${name}Bb | {"borderBottomColor": ${color}}
108-
theme.${name}Bl | {"borderLeftColor": ${color}}
109-
theme.${name}Tint | {"tintColor": ${color}}
110-
theme.${name}Overlay | {"overlayColor": ${color}}
97+
${name} | {"color": ${color}}
98+
${name}TextShadow | {"textShadowColor": ${color}}
99+
${name}TextDecoration | {"textDecorationColor": ${color}}
100+
${name}Bg | {"backgroundColor": ${color}}
101+
${name}Ba | {"borderColor": ${color}}
102+
${name}Bt | {"borderTopColor": ${color}}
103+
${name}Br | { borderRightColor: ${color} }
104+
${name}Bb | {"borderBottomColor": ${color}}
105+
${name}Bl | {"borderLeftColor": ${color}}
106+
${name}Tint | {"tintColor": ${color}}
107+
${name}Overlay | {"overlayColor": ${color}}
111108

112109
### Sample Styles (Primary)
113110

114111
STYLE NAME | STYLES
115112
|-------|---------------------------------
116-
theme.primary | {"color": ${color}}
117-
theme.primaryTextShadow | {"textShadowColor": ${color}}
118-
theme.primaryTextDecoration | {"textDecorationColor": ${color}}
119-
theme.primaryBg | {"backgroundColor": ${color}}
120-
theme.primaryBa | {"borderColor": ${color}}
121-
theme.primaryBt | {"borderTopColor": ${color}}
122-
theme.primaryBr | { borderRightColor: ${color} }
123-
theme.primaryBb | {"borderBottomColor": ${color}}
124-
theme.primaryBl | {"borderLeftColor": ${color}}
125-
theme.primaryTint | {"tintColor": ${color}}
126-
theme.primaryOverlay | {"overlayColor": ${color}}
113+
primary | {"color": ${color}}
114+
primaryTextShadow | {"textShadowColor": ${color}}
115+
primaryTextDecoration | {"textDecorationColor": ${color}}
116+
primaryBg | {"backgroundColor": ${color}}
117+
primaryBa | {"borderColor": ${color}}
118+
primaryBt | {"borderTopColor": ${color}}
119+
primaryBr | { borderRightColor: ${color} }
120+
primaryBb | {"borderBottomColor": ${color}}
121+
primaryBl | {"borderLeftColor": ${color}}
122+
primaryTint | {"tintColor": ${color}}
123+
primaryOverlay | {"overlayColor": ${color}}
127124

128125
# Style Guide
129126

0 commit comments

Comments
 (0)