ng-zorro-antd-mobile
Version:
An enterprise-class mobile UI components based on Ant Design and Angular
203 lines (165 loc) • 5.33 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function createCustomTheme() {
return ` "../node_modules/ng-zorro-antd-mobile/src/ng-zorro-antd-mobile.less";
: 1px; // 基本单位
// 支付宝钱包默认主题
// https://github.com/ant-design/ant-design-mobile/wiki/设计变量表及命名规范
// 色彩
// ---
// 文字色
-text-base: #000; // 基本
-text-base-inverse: #fff; // 基本 - 反色
-text-secondary: #a4a9b0; // 辅助色
-text-placeholder: #bbb; // 文本框提示
-text-disabled: #bbb; // 失效
-text-caption: #888; // 辅助描述
-text-paragraph: #333; // 段落
-link: -primary; // 链接
// 背景色
-base: #fff; // 组件默认背景
-body: #f5f5f9; // 页面背景
-tap: #ddd; // 组件默认背景 - 按下
-disabled: #ddd; // 通用失效背景
-mask: rgba(0, 0, 0, 0.4); // 遮罩背景
-icon-base: #ccc; // 许多小图标的背景,比如一些小圆点,加减号
-grey: #f7f7f7;
// 透明度
-disabled: 0.3; // switch checkbox radio 等组件禁用的透明度
// 全局/品牌色
-primary: #108ee9;
-primary-tap: #0e80d2;
-success: #6abf47;
-warning: #ffc600;
-error: #f4333c;
-important: #ff5b05; // 用于小红点
-wait: #108ee9;
// 边框色
-color-base: #ddd;
// 字体尺寸
// ---
-size-icontext: 10 * ;
-size-caption-sm: 12 * ;
-size-base: 14 * ;
-size-subhead: 15 * ;
-size-caption: 16 * ;
-size-heading: 17 * ;
// 圆角
// ---
-xs: 2 * ;
-sm: 3 * ;
-md: 5 * ;
-lg: 7 * ;
-circle: 50%;
// 边框尺寸
// ---
-width-sm: 1px;
-width-md: 1px;
-width-lg: 2 * ;
// 间距
// ---
// 水平间距
-spacing-sm: 5 * ;
-spacing-md: 8 * ;
-spacing-lg: 15 * ;
// 垂直间距
-spacing-xs: 3 * ;
-spacing-sm: 6 * ;
-spacing-md: 9 * ;
-spacing-lg: 15 * ;
-spacing-xl: 21 * ;
// 高度
// ---
-height-base: 1; // 单行行高
-height-paragraph: 1.5; // 多行行高
// 图标尺寸
// ---
-size-xxs: 15 * ;
-size-xs: 18 * ;
-size-sm: 21 * ;
-size-md: 22 * ; // 导航条上的图标、grid的图标大小
-size-lg: 36 * ;
// 动画缓动
// ---
-in-out-quint: cubic-bezier(.86, 0, .07, 1);
// 组件变量
// ---
-item-height: 50 * ;
-item-font-size: 18 * ;
// button
-height: 47 * ;
-font-size: 18 * ;
-height-sm: 30 * ;
-font-size-sm: 13 * ;
-button-fill: -primary;
-button-fill-tap: -primary-tap;
-button-color: -primary; // 同时应用于背景、文字颜色、边框色
-button-fill-tap: fade( -primary, 60%);
-button-fill: #e94f4f;
-button-fill-tap: #d24747;
-button-fill-tap: #ddd;
-button-font-size: 16 * ;
// menu
-multi-select-btns-height: -height;
// modal
-font-size-heading: 18 * ;
-button-font-size: 18 * ; // 按钮字号
-button-height: 50 * ; // 按钮高度
// list
-title-height: 30 * ;
-item-height-sm: 35 * ;
-item-height: 44 * ;
// input
-label-width: 17 * ; // InputItem、TextareaItem 文字长度基础值
-font-size: 17 * ;
-color-icon: #ccc; // input clear icon 的背景色
-color-icon-tap: -primary;
// tabs
-color: -primary;
-height: 43.5 * ;
-font-size-heading: 15 * ;
-ink-bar-height: -width-lg;
// segmented-control
-control-color: -primary; // 同时应用于背景、文字颜色、边框色
-control-height: 27 * ;
-control-fill-tap: fade( -primary, 0.1);
// tab-bar
-bar-fill: #ebeeef;
-bar-height: 50 * ;
// toast
-fill: rgba(58, 58, 58, 0.9); // toast, activity-indicator 的背景颜色
// search-bar
-bar-fill: #efeff4;
-bar-height: 44 * ;
-bar-input-height: 28 * ;
-bar-font-size: 15 * ;
-color-icon: #bbb; // input search icon 的背景色
// notice-bar
-bar-fill: #fefcec;
-bar-height: 36 * ;
-bar-color: #f76a24;
// switch
-fill: #4dd865;
-fill-android: -primary;
// tag
-height: 25 * ;
-height-sm: 15 * ;
-color: -primary;
// keyboard
-confirm-color: -primary;
-confirm-tap-color: -primary-tap;
// picker
-height: 42 * ; // picker 标题的高度
// z-index
-zindex: 3000; // toast.show 应该最大,其他应该较小
-zindex: 2001;
-zindex: 2000;
-zindex: 1999;
-sheet-zindex: 1000; // actonsheet 会放到 popup / modal 中
-zindex: 1000;
-zindex: 999;
-pagination-zindex: 999;
`;
}
exports.createCustomTheme = createCustomTheme;
//# sourceMappingURL=custom-theme.js.map