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