@@ -44,7 +44,7 @@ export default class CardsScreen extends Component<CardsScreenProps, CardsScreen
44
44
onPress = { ( ) => this . setState ( { selected2 : ! selected2 } ) }
45
45
activeOpacity = { 1 }
46
46
selectionOptions = { {
47
- color : Colors . grey10 ,
47
+ color : Colors . grey40 ,
48
48
indicatorSize : 25 ,
49
49
borderWidth : 3
50
50
} }
@@ -59,13 +59,13 @@ export default class CardsScreen extends Component<CardsScreenProps, CardsScreen
59
59
return (
60
60
< Card . Section
61
61
content = { [
62
- { text : 'You’re Invited!' , text70 : true , grey10 : true } ,
62
+ { text : 'You’re Invited!' , text70 : true , $textDefault : true } ,
63
63
{
64
64
text : '222 Join Old The Town Barbershop Official Store. Download the Wix app to...' ,
65
65
text80 : true ,
66
- grey10 : true
66
+ $textDefault : true
67
67
} ,
68
- { text : 'wix.to/A465c' , text90 : true , grey50 : true }
68
+ { text : 'wix.to/A465c' , text90 : true , $textDisabled : true }
69
69
] }
70
70
style = { { padding : 20 , flex : 1 } }
71
71
/>
@@ -75,14 +75,14 @@ export default class CardsScreen extends Component<CardsScreenProps, CardsScreen
75
75
renderText = ( ) => {
76
76
return (
77
77
< View padding-20 flex >
78
- < Text text70 grey10 >
78
+ < Text text70 $textDefault >
79
79
You’re Invited!
80
80
</ Text >
81
- < Text text80 grey10 >
81
+ < Text text80 $textDefault >
82
82
222 Join Old The Town Barbershop Official Store. Download the Wix app
83
83
to...
84
84
</ Text >
85
- < Text text90 grey50 >
85
+ < Text text90 $textDisabled >
86
86
wix.to/A465c
87
87
</ Text >
88
88
</ View >
@@ -98,7 +98,7 @@ export default class CardsScreen extends Component<CardsScreenProps, CardsScreen
98
98
onPress = { ( ) => { } }
99
99
borderRadius = { borderRadius }
100
100
useNative
101
- backgroundColor = { Colors . white }
101
+ bg-$backgroundElevated
102
102
activeOpacity = { 1 }
103
103
activeScale = { isImageOnLeft ? 0.96 : 1.04 }
104
104
>
@@ -123,10 +123,9 @@ export default class CardsScreen extends Component<CardsScreenProps, CardsScreen
123
123
return (
124
124
< Card style = { { marginBottom : 10 } } onPress = { ( ) => { } } >
125
125
< Card . Section
126
- bg-white
127
126
content = { [
128
- { text : 'You’re Invited!' , text70 : true , grey10 : true } ,
129
- { text : 'join now' , text90 : true , grey50 : true }
127
+ { text : 'You’re Invited!' , text70 : true , $textDefault : true } ,
128
+ { text : 'join now' , text90 : true , $textDisabled : true }
130
129
] }
131
130
style = { { padding : 20 } }
132
131
/>
@@ -139,20 +138,20 @@ export default class CardsScreen extends Component<CardsScreenProps, CardsScreen
139
138
return (
140
139
< Card { ...cardProps } flex height = { 160 } onPress = { ( ) => { } } useNative activeOpacity = { 1 } activeScale = { 0.96 } >
141
140
< Card . Section
142
- bg-red30
141
+ bg-$backgroundDangerHeavy
143
142
padding-20
144
143
flex-3
145
144
content = { [
146
- { text : 'Special sale!' , text70 : true , white : true } ,
147
- { text : '10%' , text60 : true , white : true }
145
+ { text : 'Special sale!' , text70 : true , $textDefaultLight : true } ,
146
+ { text : '10%' , text60 : true , $textDefaultLight : true }
148
147
] }
149
148
contentStyle = { { alignItems : 'center' } }
150
149
/>
151
150
< Card . Section
152
- bg-white
151
+ bg-$backgroundElevated
153
152
padding-20
154
153
flex
155
- content = { [ { text : 'All site' , text70 : true , grey10 : true } ] }
154
+ content = { [ { text : 'All site' , text70 : true , $textDefault : true } ] }
156
155
contentStyle = { { alignItems : 'center' , margin : 0 , padding : 0 } }
157
156
/>
158
157
</ Card >
@@ -173,9 +172,9 @@ export default class CardsScreen extends Component<CardsScreenProps, CardsScreen
173
172
< Card { ...cardProps } flex marginV-10 onPress = { ( ) => { } } useNative activeOpacity = { 1 } activeScale = { 0.96 } >
174
173
{ image }
175
174
< Card . Section
176
- bg-white
175
+ bg-$backgroundElevated
177
176
padding-20
178
- content = { [ { text : 'All site' , text70 : true , grey10 : true } ] }
177
+ content = { [ { text : 'All site' , text70 : true , $textDefault : true } ] }
179
178
contentStyle = { { alignItems : 'center' } }
180
179
/>
181
180
</ Card >
@@ -190,7 +189,6 @@ export default class CardsScreen extends Component<CardsScreenProps, CardsScreen
190
189
this . renderComplexImage ( { 'marginR-5' : true } ,
191
190
< Card . Section
192
191
flex
193
- backgroundColor = { Colors . blue20 }
194
192
imageSource = { featureIcon }
195
193
imageStyle = { {
196
194
width : 25 ,
@@ -211,8 +209,8 @@ export default class CardsScreen extends Component<CardsScreenProps, CardsScreen
211
209
imageSource = { cardImage2 }
212
210
imageStyle = { { height : '100%' } }
213
211
content = { [
214
- { text : 'Special sale!' , text70 : true , blue10 : true } ,
215
- { text : '10%' , text60 : true , blue10 : true }
212
+ { text : 'Special sale!' , text70 : true , $textGeneral : true } ,
213
+ { text : '10%' , text60 : true , $textGeneral : true }
216
214
] }
217
215
contentStyle = { {
218
216
flex : 1 ,
@@ -230,9 +228,9 @@ export default class CardsScreen extends Component<CardsScreenProps, CardsScreen
230
228
< ScrollView style = { { height : 100 , marginBottom : 20 } } horizontal showsHorizontalScrollIndicator = { false } >
231
229
{ _ . times ( 4 , i => {
232
230
return (
233
- < Card key = { i } width = { 100 } style = { { marginRight : 20 } } backgroundColor = { Colors . white } >
231
+ < Card key = { i } width = { 100 } style = { { marginRight : 20 } } >
234
232
< View padding-15 >
235
- < Text text30 grey30 >
233
+ < Text text30 $textNeutral >
236
234
{ i }
237
235
</ Text >
238
236
</ View >
@@ -253,7 +251,7 @@ export default class CardsScreen extends Component<CardsScreenProps, CardsScreen
253
251
254
252
renderComplexExample = ( ) => {
255
253
return _ . map ( posts , ( post , i ) => {
256
- const statusColor = post . status === 'Published' ? Colors . green30 : Colors . orange30 ;
254
+ const statusColor = post . status === 'Published' ? Colors . $textSuccess : Colors . $textMajor ;
257
255
258
256
return (
259
257
< Card
@@ -266,23 +264,23 @@ export default class CardsScreen extends Component<CardsScreenProps, CardsScreen
266
264
imageStyle = { { height : 160 } }
267
265
/>
268
266
269
- < View padding-20 bg-white >
270
- < Text text40 color = { Colors . grey10 } >
267
+ < View padding-20 >
268
+ < Text text40 $textDefault >
271
269
{ post . title }
272
270
</ Text >
273
271
< View row >
274
272
< Text text90 color = { statusColor } >
275
273
{ post . status }
276
274
</ Text >
277
- < Text text90 > | { post . timestamp } </ Text >
275
+ < Text text90 $textDefault > | { post . timestamp } </ Text >
278
276
</ View >
279
277
280
- < Text text70 color = { Colors . grey10 } >
278
+ < Text text70 $textDefault >
281
279
{ post . description }
282
280
</ Text >
283
281
284
282
< View >
285
- < Text text90 color = { Colors . grey50 } >
283
+ < Text text90 $textDisabled >
286
284
{ post . likes } Likes
287
285
</ Text >
288
286
< View row right >
@@ -314,25 +312,25 @@ export default class CardsScreen extends Component<CardsScreenProps, CardsScreen
314
312
315
313
render ( ) {
316
314
return (
317
- < View bg-grey70 >
315
+ < View >
318
316
< ScrollView >
319
317
< View flex padding-20 >
320
- < Text h1 marginB-s4 > Cards</ Text >
321
- < Text h3 > Selectable Cards</ Text >
318
+ < Text h1 marginB-s4 $textDefault > Cards</ Text >
319
+ < Text h3 $textDefault > Selectable Cards</ Text >
322
320
{ this . renderSelectableCards ( ) }
323
- < Text h3 marginV-s5 >
321
+ < Text h3 marginV-s5 $textDefault >
324
322
Horizontal Cards
325
323
</ Text >
326
324
{ this . renderHorizontalCard ( true , 0 , true ) }
327
325
{ this . renderHorizontalCard ( true , 20 , false ) }
328
326
{ this . renderHorizontalCard ( false , 0 , false ) }
329
327
{ this . renderHorizontalCard ( false , 20 , true ) }
330
- < Text h3 marginV-s5 >
328
+ < Text h3 marginV-s5 $textDefault >
331
329
Card Sections
332
330
</ Text >
333
331
{ this . renderCoupons ( ) }
334
332
{ this . renderComplexImages ( ) }
335
- < Text h3 marginB-s4 >
333
+ < Text h3 marginB-s4 $textDefault >
336
334
Others
337
335
</ Text >
338
336
{ this . renderCustomContent ( ) }
0 commit comments