/* custom-tab-bar/index.wxss */ .tab-item { .icon { width: 50rpx; height: 50rpx; } .name { font-size: 24rpx; color: #CCCCCC; &.active{ color: #CF5375; } &.drug-active{ color: #25D9C8; } } }