手册版本 V3.0
文本颜色
.grace-black /* 黑色 #333333 */
.grace-black6 // 黑色 #666666
.grace-black9 // 黑色 #999999
.grace-white // 白色 #FFFFFF
.grace-blue // 蓝色 #3688FF
.grace-light-blue // 浅蓝色 #AFCFFF
.grace-blue-sky // 天空蓝 #61CBEF
.grace-gray // 灰色 #A5A7B2
.grace-red // 红色 #FF0036
.grace-yellow // 黄色 #FFCC00
.grace-light-yellow // 浅黄色 #ECD1A8
.grace-green // 绿色 #9DD26D
演示代码
UNI 普通版本
NVUE 版本
微信小程序独立版本
<template>
<gracePage :customHeader="false">
<!-- 页面主体 -->
<view slot="gBody" class="grace-body">
<view class="grace-title grace-margin-top">
<view class="grace-title-border"></view>
<text class="grace-title-text grace-blue">文本颜色</text>
<text class="grace-text-small grace-gray">grace.hcoder.net</text>
</view>
<view class="grace-wrap grace-margin-top">
<text class="grace-black color-demo">标黑</text>
<text class="grace-black6 color-demo">次黑</text>
<text class="grace-black9 color-demo">浅黑</text>
<text class="color-demo grace-white grace-bg-blue">白色</text>
<text class="grace-blue color-demo">蓝色</text>
<text class="grace-light-blue color-demo">浅蓝</text>
<text class="grace-blue-sky color-demo">天蓝</text>
<text class="grace-gray color-demo">灰色</text>
<text class="grace-red color-demo">红色</text>
<text class="grace-green color-demo">绿色</text>
<text class="grace-yellow color-demo">橙色</text>
<text class="grace-light-yellow color-demo">浅黄</text>
</view>
</view>
</gracePage>
</template>
<script>
import gracePage from "../../graceUI/components/gracePage.vue";
export default {
components:{
gracePage
}
}
</script>
<style>
.color-demo{text-align:center; width:212rpx; height:66rpx; font-size:22rpx; line-height:66rpx; border-radius:6rpx; background-color:#F6F7F8; margin:10rpx;}
</style>
<template>
<gracePage :customHeader="false">
<!-- 页面主体 -->
<view slot="gBody" class="grace-body">
<view class="grace-margin-top">
<text class="grace-title">文本颜色</text>
</view>
<view class="grace-wrap">
<text class="grace-black color-demo">标黑</text>
<text class="grace-black6 color-demo">次黑</text>
<text class="grace-black9 color-demo">浅黑</text>
<text class="color-demo grace-white grace-bg-blue">白色</text>
<text class="grace-blue color-demo">蓝色</text>
<text class="grace-light-blue color-demo">浅蓝</text>
<text class="grace-blue-sky color-demo">天蓝</text>
<text class="grace-gray color-demo">灰色</text>
<text class="grace-red color-demo">红色</text>
<text class="grace-green color-demo">绿色</text>
<text class="grace-yellow color-demo">橙色</text>
<text class="grace-light-yellow color-demo">浅黄</text>
</view>
</view>
</gracePage>
</template>
<script>
import gracePage from "../../graceUI/weexComponents/gracePage.nvue";
export default {
data() {
return {}
},
components:{
gracePage
}
}
</script>
<style>
.color-demo{text-align:center; width:212rpx; height:66rpx; font-size:22rpx; line-height:66rpx; border-radius:6rpx; background-color:#F6F7F8; margin:10rpx;}
</style>
.wxml
<gracePage customHeader="{{false}}">
<!-- 页面主体 -->
<view slot="gBody" class="grace-body">
<view class="grace-margin-top">
<text class="grace-title">文本颜色</text>
</view>
<view class="grace-wrap">
<text class="grace-black color-demo">标黑</text>
<text class="grace-black6 color-demo">次黑</text>
<text class="grace-black9 color-demo">浅黑</text>
<text class="color-demo grace-white grace-bg-blue">白色</text>
<text class="grace-blue color-demo">蓝色</text>
<text class="grace-light-blue color-demo">浅蓝</text>
<text class="grace-blue-sky color-demo">天蓝</text>
<text class="grace-gray color-demo">灰色</text>
<text class="grace-red color-demo">红色</text>
<text class="grace-green color-demo">绿色</text>
<text class="grace-yellow color-demo">橙色</text>
<text class="grace-light-yellow color-demo">浅黄</text>
</view>
</view>
</gracePage>.wxss
.color-demo{text-align:center; width:212rpx; height:66rpx; font-size:22rpx; line-height:66rpx; border-radius:6rpx; background-color:#F6F7F8; margin:10rpx;}.json
{
"usingComponents": {
"gracePage": "../../graceUI/components/gracePage"
}
}