/** * 这里是uni-app内置的常用样式变量 * * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App * */ /** * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 * * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 */ :root, page { /* 纯色 */ --u-white-color: #ffffff; --u-black-color: #000000; --u-main-color: #303133; --u-content-color: #606266; --u-tips-color: #909399; --u-light-color: #c0c4cc; --u-border-color: #e4e7ed; --u-divider-color: #e4e7ed; --u-mask-color: rgba(0, 0, 0, 0.4); --u-shadow-color: rgba(0, 0, 0, 0.1); /* 背景色 */ --u-bg-color: #f3f4f6; --u-bg-white: #ffffff; --u-bg-gray-light: #f1f1f1; --u-bg-gray-dark: #2f343c; --u-bg-black: #000000; /* 主色 */ --u-type-primary: #17447a; --u-type-primary-light: #d5dde7; --u-type-primary-disabled: #8fa6c3; --u-type-primary-dark: #123662; /* 警告色 */ --u-type-warning: #ff9900; --u-type-warning-disabled: #fcbd71; --u-type-warning-dark: #f29100; --u-type-warning-light: #fdf6ec; /* 成功色 */ --u-type-success: #19be6b; --u-type-success-disabled: #71d5a1; --u-type-success-dark: #18b566; --u-type-success-light: #dbf1e1; /* 错误色 */ --u-type-error: #fa3534; --u-type-error-disabled: #fab6b6; --u-type-error-dark: #dd6161; --u-type-error-light: #fef0f0; /* 信息色 */ --u-type-info: #909399; --u-type-info-disabled: #c8c9cc; --u-type-info-dark: #82848a; --u-type-info-light: #f4f4f5; } /* 颜色变量 */ /* 行为相关颜色 */ /* 文字基本颜色 */ /* 背景颜色 */ /* 边框颜色 */ /* 尺寸变量 */ /* 文字尺寸 */ /* 图片尺寸 */ /* Border Radius */ /* 水平间距 */ /* 垂直间距 */ /* 透明度 */ /* 文章场景相关 */ .u-wrap { background-color: #ffffff; width: 100%; height: calc(100vh - 52px - env(safe-area-inset-bottom)); } .u-wrap .fab { padding: 20rpx 40rpx; position: fixed; bottom: 200rpx; left: 0; right: 0; z-index: 9999999999999; }