global.config.js 4.34 KB
Newer Older
wb-ct393452's avatar
wb-ct393452 committed
1 2 3
// 全部的配置数据
const globalConfig = {
    //调色板 颜色
4
    palettes: ['#f5222d', '#fa541c', '#fadb14', '#3eaf7c', '#13c2c2', '#1890ff', '#722ed1', '#eb2f96'],
wb-ct393452's avatar
wb-ct393452 committed
5 6 7 8
    //tab出入动画效果
    animates: {
        preset: [
            //参考Animate.css 各种特效的css命名,default对应没有 direction的情况
9 10
            { name: 'back', alias: '渐近', directions: ['Left', 'Right'] },
            { name: 'bounce', alias: '弹跳', directions: ['Left', 'Right', 'Default'] },
wb-ct393452's avatar
wb-ct393452 committed
11
            {
12 13 14
                name: 'fade',
                alias: '淡化',
                directions: ['Left', 'LeftBig', 'Right', 'RightBig', 'Default'],
wb-ct393452's avatar
wb-ct393452 committed
15
            },
16 17
            { name: 'lightSpeed', alias: '光速', directions: ['Left', 'Right'] },
            { name: 'slide', alias: '滑动', directions: ['Left', 'Right'] },
wb-ct393452's avatar
wb-ct393452 committed
18 19 20 21
        ],
    },
    //当前主色调 + 3个功能颜色 + 3个模式菜单颜色
    primary: {
22 23 24 25
        color: '#3eaf7c',
        warning: '#faad14',
        success: '#52c41a',
        error: '#f5222d',
wb-ct393452's avatar
wb-ct393452 committed
26
        light: {
27
            menuColors: ['#000c17', '#001529', '#002140'],
wb-ct393452's avatar
wb-ct393452 committed
28 29
        },
        dark: {
30
            menuColors: ['#000c17', '#001529', '#002140'],
wb-ct393452's avatar
wb-ct393452 committed
31 32
        },
        night: {
33
            menuColors: ['#151515', '#1f1f1f', '#1e1e1e'],
wb-ct393452's avatar
wb-ct393452 committed
34 35 36 37 38
        },
    },
    //主题
    theme: {
        mode: {
39 40 41
            DARK: 'dark',
            LIGHT: 'light',
            NIGHT: 'night',
wb-ct393452's avatar
wb-ct393452 committed
42 43
        },
        dark: {
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
            'layout-body-background': '#f0f2f5',
            'body-background': '#fff',
            'component-background': '#fff',
            'heading-color': 'rgba(0, 0, 0, 0.85)',
            'text-color': 'rgba(0, 0, 0, 0.65)',
            'text-color-inverse': '#fff',
            'text-color-secondary': 'rgba(0, 0, 0, 0.45)',
            'shadow-color': 'rgba(0, 0, 0, 0.15)',
            'border-color-split': '#f0f0f0',
            'background-color-light': '#fafafa',
            'background-color-base': '#f5f5f5',
            'table-selected-row-bg': '#fafafa',
            'table-expanded-row-bg': '#fbfbfb',
            'checkbox-check-color': '#fff',
            'disabled-color': 'rgba(0, 0, 0, 0.25)',
            'menu-dark-color': 'rgba(254, 254, 254, 0.65)',
            'menu-dark-highlight-color': '#fefefe',
            'menu-dark-arrow-color': '#fefefe',
            'btn-primary-color': '#fff',
wb-ct393452's avatar
wb-ct393452 committed
63 64
        },
        light: {
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
            'layout-body-background': '#f0f2f5',
            'body-background': '#fff',
            'component-background': '#fff',
            'heading-color': 'rgba(0, 0, 0, 0.85)',
            'text-color': 'rgba(0, 0, 0, 0.65)',
            'text-color-inverse': '#fff',
            'text-color-secondary': 'rgba(0, 0, 0, 0.45)',
            'shadow-color': 'rgba(0, 0, 0, 0.15)',
            'border-color-split': '#f0f0f0',
            'background-color-light': '#fafafa',
            'background-color-base': '#f5f5f5',
            'table-selected-row-bg': '#fafafa',
            'table-expanded-row-bg': '#fbfbfb',
            'checkbox-check-color': '#fff',
            'disabled-color': 'rgba(0, 0, 0, 0.25)',
            'menu-dark-color': 'rgba(1, 1, 1, 0.65)',
            'menu-dark-highlight-color': '#fefefe',
            'menu-dark-arrow-color': '#fefefe',
            'btn-primary-color': '#fff',
wb-ct393452's avatar
wb-ct393452 committed
84 85
        },
        night: {
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
            'layout-body-background': '#000',
            'body-background': '#141414',
            'component-background': '#141414',
            'heading-color': 'rgba(255, 255, 255, 0.85)',
            'text-color': 'rgba(255, 255, 255, 0.85)',
            'text-color-inverse': '#141414',
            'text-color-secondary': 'rgba(255, 255, 255, 0.45)',
            'shadow-color': 'rgba(255, 255, 255, 0.15)',
            'border-color-split': '#303030',
            'background-color-light': '#ffffff0a',
            'background-color-base': '#2a2a2a',
            'table-selected-row-bg': '#ffffff0a',
            'table-expanded-row-bg': '#ffffff0b',
            'checkbox-check-color': '#141414',
            'disabled-color': 'rgba(255, 255, 255, 0.25)',
            'menu-dark-color': 'rgba(254, 254, 254, 0.65)',
            'menu-dark-highlight-color': '#fefefe',
            'menu-dark-arrow-color': '#fefefe',
            'btn-primary-color': '#141414',
wb-ct393452's avatar
wb-ct393452 committed
105 106 107
        },
    },
    layout: {
108 109
        SIDE: 'side',
        HEAD: 'head',
wb-ct393452's avatar
wb-ct393452 committed
110 111 112 113
    },
};

module.exports = globalConfig;