@@ -212,8 +212,8 @@ module.exports = {
212212 wider : '.05em' ,
213213 widest : '.1em' ,
214214 } ,
215- textColor : theme => theme . colors ,
216- backgroundColor : theme => theme . colors ,
215+ textColor : theme => theme ( ' colors' ) ,
216+ backgroundColor : theme => theme ( ' colors' ) ,
217217 backgroundPosition : {
218218 bottom : 'bottom' ,
219219 center : 'center' ,
@@ -238,7 +238,7 @@ module.exports = {
238238 '8' : '8px' ,
239239 } ,
240240 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' ) )
242242 } ,
243243 borderRadius : {
244244 none : '0' ,
@@ -257,7 +257,7 @@ module.exports = {
257257 } ,
258258 width : theme => ( {
259259 auto : 'auto' ,
260- ...theme . spacing ,
260+ ...theme ( ' spacing' ) ,
261261 '1/2' : '50%' ,
262262 '1/3' : '33.33333%' ,
263263 '2/3' : '66.66667%' ,
@@ -274,7 +274,7 @@ module.exports = {
274274 } ) ,
275275 height : theme => ( {
276276 auto : 'auto' ,
277- ...theme . spacing ,
277+ ...theme ( ' spacing' ) ,
278278 full : '100%' ,
279279 screen : '100vh' ,
280280 } ) ,
@@ -304,9 +304,9 @@ module.exports = {
304304 full : '100%' ,
305305 screen : '100vh' ,
306306 } ,
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' ) ,
310310 objectPosition : {
311311 bottom : 'bottom' ,
312312 center : 'center' ,
0 commit comments