@@ -212,8 +212,8 @@ module.exports = {
212
212
wider : '.05em' ,
213
213
widest : '.1em' ,
214
214
} ,
215
- textColor : theme => theme . colors ,
216
- backgroundColor : theme => theme . colors ,
215
+ textColor : theme => theme ( ' colors' ) ,
216
+ backgroundColor : theme => theme ( ' colors' ) ,
217
217
backgroundPosition : {
218
218
bottom : 'bottom' ,
219
219
center : 'center' ,
@@ -238,7 +238,7 @@ module.exports = {
238
238
'8' : '8px' ,
239
239
} ,
240
240
borderColor : theme => {
241
- return global . Object . assign ( { default : theme . colors . gray [ 700 ] } , theme . colors )
241
+ return global . Object . assign ( { default : theme ( ' colors.gray. 700' , 'currentColor' ) } , theme ( ' colors' ) )
242
242
} ,
243
243
borderRadius : {
244
244
none : '0' ,
@@ -257,7 +257,7 @@ module.exports = {
257
257
} ,
258
258
width : theme => ( {
259
259
auto : 'auto' ,
260
- ...theme . spacing ,
260
+ ...theme ( ' spacing' ) ,
261
261
'1/2' : '50%' ,
262
262
'1/3' : '33.33333%' ,
263
263
'2/3' : '66.66667%' ,
@@ -274,7 +274,7 @@ module.exports = {
274
274
} ) ,
275
275
height : theme => ( {
276
276
auto : 'auto' ,
277
- ...theme . spacing ,
277
+ ...theme ( ' spacing' ) ,
278
278
full : '100%' ,
279
279
screen : '100vh' ,
280
280
} ) ,
@@ -304,9 +304,9 @@ module.exports = {
304
304
full : '100%' ,
305
305
screen : '100vh' ,
306
306
} ,
307
- padding : theme => theme . spacing ,
308
- margin : theme => ( { auto : 'auto' , ...theme . spacing } ) ,
309
- negativeMargin : theme => theme . spacing ,
307
+ padding : theme => theme ( ' spacing' ) ,
308
+ margin : theme => ( { auto : 'auto' , ...theme ( ' spacing' ) } ) ,
309
+ negativeMargin : theme => theme ( ' spacing' ) ,
310
310
objectPosition : {
311
311
bottom : 'bottom' ,
312
312
center : 'center' ,
0 commit comments