@opentiny/vue-theme 3.1.0-alpha.1 → 3.5.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action-menu/index.css +1 -0
- package/action-menu/index.js +13 -0
- package/alert/index.css +1 -1
- package/alert/index.js +40 -0
- package/amount/index.css +1 -0
- package/amount/index.js +16 -0
- package/area/index.css +1 -0
- package/area/index.js +15 -0
- package/autocomplete/index.css +1 -1
- package/autocomplete/index.js +25 -0
- package/badge/index.css +1 -1
- package/badge/index.js +28 -0
- package/base/index.css +1 -1
- package/base/index.js +65 -0
- package/breadcrumb/index.css +1 -1
- package/breadcrumb/index.js +24 -0
- package/breadcrumb-item/index.js +15 -0
- package/bulletin-board/index.css +1 -1
- package/bulletin-board/index.js +31 -0
- package/button/index.css +1 -1
- package/button/index.js +105 -0
- package/button-group/index.css +1 -1
- package/button-group/index.js +34 -0
- package/calendar/index.css +1 -1
- package/calendar/index.js +38 -0
- package/card/index.js +15 -0
- package/card-container/index.js +15 -0
- package/card-item/index.css +1 -1
- package/card-item/index.js +27 -0
- package/card-layout/index.css +1 -1
- package/card-layout/index.js +16 -0
- package/card-template/index.css +1 -1
- package/card-template/index.js +30 -0
- package/carousel/index.css +1 -1
- package/carousel/index.js +39 -0
- package/carousel-item/index.css +1 -1
- package/carousel-item/index.js +19 -0
- package/cascader/index.css +1 -1
- package/cascader/index.js +41 -0
- package/cascader-menu/index.css +1 -1
- package/cascader-menu/index.js +20 -0
- package/cascader-node/index.css +1 -1
- package/cascader-node/index.js +25 -0
- package/cascader-panel/index.css +1 -1
- package/cascader-panel/index.js +22 -0
- package/chart-core/index.css +1 -1
- package/chart-core/index.js +17 -0
- package/checkbox/index.css +1 -1
- package/checkbox/index.js +40 -0
- package/checkbox-button/index.css +1 -1
- package/checkbox-button/index.js +15 -0
- package/checkbox-group/index.css +1 -1
- package/checkbox-group/index.js +15 -0
- package/col/index.js +15 -0
- package/collapse/index.css +1 -1
- package/collapse/index.js +15 -0
- package/collapse-item/index.css +1 -1
- package/collapse-item/index.js +32 -0
- package/company/index.css +0 -0
- package/company/index.js +15 -0
- package/container/index.js +15 -0
- package/country/index.css +0 -0
- package/country/index.js +15 -0
- package/credit-card/index.css +1 -1
- package/credit-card/index.js +15 -0
- package/credit-card-form/index.css +1 -1
- package/credit-card-form/index.js +15 -0
- package/crop/index.css +1 -1
- package/crop/index.js +31 -0
- package/currency/index.css +0 -0
- package/currency/index.js +15 -0
- package/dept/index.css +1 -0
- package/dept/index.js +20 -0
- package/detail-page/index.css +1 -1
- package/detail-page/index.js +25 -0
- package/dialog-box/index.css +1 -1
- package/dialog-box/index.js +38 -0
- package/drop-roles/index.css +1 -0
- package/drop-roles/index.js +15 -0
- package/drop-times/index.js +15 -0
- package/dropdown/index.css +1 -1
- package/dropdown/index.js +15 -0
- package/dropdown-item/index.css +1 -1
- package/dropdown-item/index.js +27 -0
- package/dropdown-menu/index.css +1 -1
- package/dropdown-menu/index.js +18 -0
- package/error-page/index.css +1 -1
- package/error-page/index.js +42 -0
- package/espace/index.css +1 -0
- package/espace/index.js +17 -0
- package/fall-menu/index.css +1 -1
- package/fall-menu/index.js +27 -0
- package/file-upload/index.css +1 -1
- package/file-upload/index.js +15 -0
- package/floatbar/index.css +1 -1
- package/floatbar/index.js +21 -0
- package/form/index.css +1 -1
- package/form/index.js +15 -0
- package/form-item/index.css +1 -1
- package/form-item/index.js +24 -0
- package/fullscreen/index.js +15 -0
- package/gantt/index.js +15 -0
- package/grid/index.css +1 -1
- package/grid/index.js +65 -0
- package/grid-system/index.css +1 -1
- package/grid-system/index.js +15 -0
- package/hrapprover/index.css +1 -0
- package/hrapprover/index.js +23 -0
- package/image/index.css +1 -1
- package/image/index.js +17 -0
- package/image-viewer/index.css +1 -1
- package/image-viewer/index.js +30 -0
- package/images/credit-background.jpeg +0 -0
- package/images/grid-nodata.png +0 -0
- package/images/grid-nodata.svg +23 -0
- package/images/loading-64.gif +0 -0
- package/index.css +1 -1
- package/index.js +16 -0
- package/input/index.css +1 -1
- package/input/index.js +34 -0
- package/ip-address/index.css +1 -1
- package/ip-address/index.js +25 -0
- package/layout/index.js +15 -0
- package/link/index.css +1 -1
- package/link/index.js +41 -0
- package/link-menu/index.css +1 -1
- package/link-menu/index.js +24 -0
- package/loading/index.css +1 -1
- package/loading/index.js +21 -0
- package/locales/index.css +1 -0
- package/locales/index.js +15 -0
- package/logon-user/index.css +0 -0
- package/logon-user/index.js +15 -0
- package/logout/index.css +1 -0
- package/logout/index.js +15 -0
- package/lowcode.css +1 -0
- package/menubar/index.css +1 -1
- package/menubar/index.js +28 -0
- package/milestone/index.css +1 -1
- package/milestone/index.js +26 -0
- package/modal/index.css +1 -1
- package/modal/index.js +47 -0
- package/nav-menu/index.css +1 -1
- package/nav-menu/index.js +28 -0
- package/notify/index.css +1 -1
- package/notify/index.js +41 -0
- package/numeric/index.css +1 -1
- package/numeric/index.js +26 -0
- package/option/index.css +1 -1
- package/option/index.js +26 -0
- package/option-group/index.css +1 -1
- package/option-group/index.js +18 -0
- package/package.json +41 -5
- package/pager/index.css +1 -1
- package/pager/index.js +40 -0
- package/pbi/index.css +1 -1
- package/pbi/index.js +18 -0
- package/picker/index.css +1 -1
- package/picker/index.js +85 -0
- package/pop-upload/index.css +1 -1
- package/pop-upload/index.js +21 -0
- package/popeditor/index.css +1 -1
- package/popeditor/index.js +21 -0
- package/poplist/index.js +15 -0
- package/popover/index.css +1 -1
- package/popover/index.js +30 -0
- package/progress/index.css +1 -1
- package/progress/index.js +23 -0
- package/radio/index.css +1 -1
- package/radio/index.js +42 -0
- package/radio-button/index.css +1 -1
- package/radio-button/index.js +29 -0
- package/radio-group/index.css +1 -1
- package/radio-group/index.js +15 -0
- package/rate/index.css +1 -1
- package/rate/index.js +18 -0
- package/roles/index.css +1 -0
- package/roles/index.js +20 -0
- package/row/index.css +1 -1
- package/row/index.js +15 -0
- package/scroll-text/index.css +1 -1
- package/scroll-text/index.js +18 -0
- package/scrollbar/index.js +15 -0
- package/search/index.css +1 -1
- package/search/index.js +34 -0
- package/select/index.css +1 -1
- package/select/index.js +27 -0
- package/select-dropdown/index.css +1 -1
- package/select-dropdown/index.js +33 -0
- package/selector/index.css +1 -1
- package/selector/index.js +27 -0
- package/slide-bar/index.css +1 -1
- package/slide-bar/index.js +20 -0
- package/slide-img/index.css +1 -1
- package/slide-img/index.js +15 -0
- package/slider/index.css +1 -1
- package/slider/index.js +52 -0
- package/split/index.css +1 -1
- package/split/index.js +23 -0
- package/steps/index.css +1 -1
- package/steps/index.js +49 -0
- package/svg/index.js +15 -0
- package/svgs/crop.svg +0 -1
- package/svgs/dot-download.svg +24 -0
- package/svgs/download-link.svg +1 -1
- package/svgs/editor-align-center.svg +1 -2
- package/svgs/editor-align-left.svg +1 -1
- package/svgs/editor-align-right.svg +1 -1
- package/svgs/editor-background.svg +1 -1
- package/svgs/editor-bold.svg +1 -1
- package/svgs/editor-code.svg +1 -1
- package/svgs/editor-deleteline.svg +1 -1
- package/svgs/editor-eraser.svg +1 -1
- package/svgs/editor-italic.svg +1 -1
- package/svgs/editor-left-border.svg +1 -1
- package/svgs/editor-list-dot.svg +1 -1
- package/svgs/editor-list-num.svg +1 -1
- package/svgs/editor-list.svg +1 -1
- package/svgs/editor-menu-left.svg +1 -1
- package/svgs/editor-menu-right.svg +1 -1
- package/svgs/editor-quote.svg +1 -1
- package/svgs/editor-redo.svg +1 -1
- package/svgs/editor-right-border.svg +1 -1
- package/svgs/editor-sub.svg +1 -1
- package/svgs/editor-subtitle.svg +1 -1
- package/svgs/editor-super.svg +1 -1
- package/svgs/editor-table.svg +1 -1
- package/svgs/editor-textcolor.svg +1 -1
- package/svgs/editor-title.svg +1 -1
- package/svgs/editor-underline.svg +1 -1
- package/svgs/editor-undo.svg +1 -1
- package/svgs/editor-video.svg +1 -1
- package/svgs/email-add.svg +1 -1
- package/svgs/espace.svg +1 -1
- package/svgs/fullscreen-left.svg +0 -1
- package/svgs/help-query.svg +1 -1
- package/svgs/help.svg +1 -1
- package/svgs/minscreen-left.svg +1 -1
- package/svgs/share-arrow.svg +1 -1
- package/svgs/share.svg +2 -1
- package/svgs/unknown.svg +18 -0
- package/switch/index.css +1 -1
- package/switch/index.js +29 -0
- package/table/index.css +1 -1
- package/table/index.js +27 -0
- package/tabs/index.css +1 -1
- package/tabs/index.js +60 -0
- package/tag/index.css +1 -1
- package/tag/index.js +54 -0
- package/tall-storage/index.css +1 -1
- package/tall-storage/index.js +18 -0
- package/text-popup/index.css +1 -1
- package/text-popup/index.js +18 -0
- package/theme/deep-theme/index.js +22 -0
- package/theme/devui-theme-map.js +164 -0
- package/theme/galaxy-theme/index.js +24 -0
- package/theme/generate-theme.js +51 -0
- package/theme/impression-theme/index.js +14 -0
- package/theme/index.js +44 -0
- package/theme/infinity-theme/index.js +399 -0
- package/theme-tool.js +125 -0
- package/theme.config.js +58 -0
- package/time/index.js +15 -0
- package/tip/index.css +1 -1
- package/tip/index.js +27 -0
- package/toggle-menu/index.css +1 -1
- package/toggle-menu/index.js +24 -0
- package/tooltip/index.css +1 -1
- package/tooltip/index.js +41 -0
- package/top-box/index.css +1 -1
- package/top-box/index.js +21 -0
- package/transfer/index.css +1 -1
- package/transfer/index.js +47 -0
- package/transition/index.js +15 -0
- package/tree/index.css +1 -1
- package/tree/index.js +27 -0
- package/tree-menu/index.css +1 -1
- package/tree-menu/index.js +22 -0
- package/upload/index.css +1 -1
- package/upload/index.js +22 -0
- package/upload-dragger/index.css +1 -1
- package/upload-dragger/index.js +26 -0
- package/upload-list/index.css +1 -1
- package/upload-list/index.js +28 -0
- package/user/index.css +1 -0
- package/user/index.js +17 -0
- package/user-account/index.css +1 -0
- package/user-account/index.js +17 -0
- package/user-card/index.css +1 -1
- package/user-card/index.js +20 -0
- package/user-contact/index.css +1 -1
- package/user-contact/index.js +23 -0
- package/user-head/index.css +1 -1
- package/user-head/index.js +20 -0
- package/user-link/index.css +1 -0
- package/user-link/index.js +18 -0
- package/vars/index.js +169 -0
- package/wizard/index.css +1 -1
- package/wizard/index.js +21 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
3
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
|
6
|
+
*
|
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// 全量 DevUI 主题变量对应的 Tiny 主题变量
|
|
14
|
+
export const DEVUI_THEME_MAP = {
|
|
15
|
+
'devui-global-bg': '#f3f6f8',
|
|
16
|
+
'devui-glass-morphism-bg': 'rgba(243,246,248,0.9)',
|
|
17
|
+
'devui-global-bg-normal': '#ffffff',
|
|
18
|
+
'devui-base-bg': '#ffffff',
|
|
19
|
+
'devui-base-bg-dark': '#333854',
|
|
20
|
+
'devui-brand': 'ti-base-color-brand-6',
|
|
21
|
+
'devui-brand-foil': '#859bff',
|
|
22
|
+
'devui-brand-hover': '#7693f5',
|
|
23
|
+
'devui-brand-active': '#526ecc',
|
|
24
|
+
'devui-brand-active-focus': '#344899',
|
|
25
|
+
'devui-contrast': '#c7000b',
|
|
26
|
+
'devui-text': 'ti-base-color-common-7',
|
|
27
|
+
'devui-text-weak': '#575d6c',
|
|
28
|
+
'devui-aide-text': '#8a8e99',
|
|
29
|
+
'devui-aide-text-hover': '#252b3a',
|
|
30
|
+
'devui-aide-text-stress': '#575d6c',
|
|
31
|
+
'devui-placeholder': '#8a8e99',
|
|
32
|
+
'devui-light-text': '#ffffff',
|
|
33
|
+
'devui-dark-text': '#252b3a',
|
|
34
|
+
'devui-link': '#526ecc',
|
|
35
|
+
'devui-link-active': '#344899',
|
|
36
|
+
'devui-link-light': '#96adfa',
|
|
37
|
+
'devui-link-light-active': '#beccfa',
|
|
38
|
+
'devui-line': '#adb0b8',
|
|
39
|
+
'devui-dividing-line': 'ti-common-color-line-dividing',
|
|
40
|
+
'devui-block': '#ffffff',
|
|
41
|
+
'devui-area': '#f8f8f8',
|
|
42
|
+
'devui-danger': '#f66f6a',
|
|
43
|
+
'devui-warning': '#fac20a',
|
|
44
|
+
'devui-waiting': '#9faad7',
|
|
45
|
+
'devui-success': '#50d4ab',
|
|
46
|
+
'devui-info': '#5e7ce0',
|
|
47
|
+
'devui-initial': '#e9edfa',
|
|
48
|
+
'devui-unavailable': '#f5f5f6',
|
|
49
|
+
'devui-shadow': 'rgba(37, 43, 58, 0.2)',
|
|
50
|
+
'devui-light-shadow': 'rgba(37, 43, 58, 0.1)',
|
|
51
|
+
'devui-connected-overlay-shadow': 'rgba(37, 43, 58, 0.12)',
|
|
52
|
+
'devui-feedback-overlay-shadow': 'rgba(37, 43, 58, 0.16)',
|
|
53
|
+
'devui-icon-text': '#252b3a',
|
|
54
|
+
'devui-icon-bg': '#ffffff',
|
|
55
|
+
'devui-icon-fill': '#252b3a',
|
|
56
|
+
'devui-icon-fill-weak': '#babbc0',
|
|
57
|
+
'devui-icon-fill-hover': '#5e7ce0',
|
|
58
|
+
'devui-icon-fill-active': '#5e7ce0',
|
|
59
|
+
'devui-icon-fill-active-hover': 'ti-grid-icon-fill-hover-bg-color',
|
|
60
|
+
'devui-shape-icon-fill': '#d7d8da',
|
|
61
|
+
'devui-shape-icon-fill-active': '#babbc0',
|
|
62
|
+
'devui-shape-icon-fill-hover': '#babbc0',
|
|
63
|
+
'devui-shape-icon-fill-disabled': '#f5f5f5',
|
|
64
|
+
'devui-form-control-line': '#adb0b8',
|
|
65
|
+
'devui-form-control-bg': '#ffffff',
|
|
66
|
+
'devui-form-control-line-hover': '#575d6c',
|
|
67
|
+
'devui-form-control-line-active': '#5e7ce0',
|
|
68
|
+
'devui-form-control-line-active-hover': '#344899',
|
|
69
|
+
'devui-list-item-active-bg': '#5e7ce0',
|
|
70
|
+
'devui-list-item-active-text': '#ffffff',
|
|
71
|
+
'devui-list-item-active-hover-bg': '#526ecc',
|
|
72
|
+
'devui-list-item-hover-bg': '#f2f5fc',
|
|
73
|
+
'devui-list-item-hover-text': '#526ecc',
|
|
74
|
+
'devui-list-item-selected-bg': '#e9edfa',
|
|
75
|
+
'devui-list-item-strip-bg': '#f2f5fc',
|
|
76
|
+
'devui-disabled-bg': 'ti-common-color-bg-disabled',
|
|
77
|
+
'devui-disabled-line': '#dfe1e6',
|
|
78
|
+
'devui-disabled-text': '#adb0b8',
|
|
79
|
+
'devui-primary-disabled': '#beccfa',
|
|
80
|
+
'devui-icon-fill-active-disabled': '#beccfa',
|
|
81
|
+
'devui-label-bg': '#eef0f5',
|
|
82
|
+
'devui-connected-overlay-bg': '#ffffff',
|
|
83
|
+
'devui-connected-overlay-line': '#526ecc',
|
|
84
|
+
'devui-fullscreen-overlay-bg': '#ffffff',
|
|
85
|
+
'devui-feedback-overlay-bg': '#464d6e',
|
|
86
|
+
'devui-feedback-overlay-text': '#dfe1e6',
|
|
87
|
+
'devui-embed-search-bg': '#f2f5fc',
|
|
88
|
+
'devui-embed-search-bg-hover': '#eef0f5',
|
|
89
|
+
'devui-float-block-shadow': 'rgba(94, 124, 224, 0.3)',
|
|
90
|
+
'devui-highlight-overlay': 'rgba(255, 255, 255, 0.8)',
|
|
91
|
+
'devui-range-item-hover-bg': '#e9edfa',
|
|
92
|
+
'devui-primary': 'ti-base-color-brand-6',
|
|
93
|
+
'devui-primary-hover': '#7693f5',
|
|
94
|
+
'devui-primary-active': '#344899',
|
|
95
|
+
'devui-contrast-hover': '#d64a52',
|
|
96
|
+
'devui-contrast-active': '#b12220',
|
|
97
|
+
'devui-danger-line': '#f66f6a',
|
|
98
|
+
'devui-danger-bg': '#ffeeed',
|
|
99
|
+
'devui-warning-line': '#fa9841',
|
|
100
|
+
'devui-warning-bg': '#fff3e8',
|
|
101
|
+
'devui-info-line': '#5e7ce0',
|
|
102
|
+
'devui-info-bg': '#f2f5fc',
|
|
103
|
+
'devui-success-line': '#50d4ab',
|
|
104
|
+
'devui-success-bg': '#edfff9',
|
|
105
|
+
'devui-primary-line': '#5e7ce0',
|
|
106
|
+
'devui-primary-bg': '#f2f5fc',
|
|
107
|
+
'devui-default-line': '#5e7ce0',
|
|
108
|
+
'devui-default-bg': '#f3f6f8',
|
|
109
|
+
'devui-shadow-length-base': '0 1px 4px 0',
|
|
110
|
+
'devui-shadow-length-slide-left': '-2px 0 8px 0',
|
|
111
|
+
'devui-shadow-length-slide-right': '2px 0 8px 0',
|
|
112
|
+
'devui-shadow-length-connected-overlay': '0 4px 8px 0',
|
|
113
|
+
'devui-shadow-length-hover': '0 8px 16px 0',
|
|
114
|
+
'devui-shadow-length-feedback-overlay': '0 8px 16px 0',
|
|
115
|
+
'devui-shadow-length-fullscreen-overlay': '0 12px 24px 0',
|
|
116
|
+
'devui-border-radius': '2px',
|
|
117
|
+
'devui-border-radius-feedback': '4px',
|
|
118
|
+
'devui-border-radius-card': '6px',
|
|
119
|
+
'devui-border-radius-full': '100px',
|
|
120
|
+
'devui-font-size': '12px',
|
|
121
|
+
'devui-font-size-card-title': '14px',
|
|
122
|
+
'devui-font-size-page-title': '16px',
|
|
123
|
+
'devui-font-size-modal-title': '18px',
|
|
124
|
+
'devui-font-size-price': '20px',
|
|
125
|
+
'devui-font-size-data-overview': '24px',
|
|
126
|
+
'devui-font-size-icon': '16px',
|
|
127
|
+
'devui-font-size-sm': '12px',
|
|
128
|
+
'devui-font-size-md': '12px',
|
|
129
|
+
'devui-font-size-lg': '14px',
|
|
130
|
+
'devui-font-title-weight': 'bold',
|
|
131
|
+
'devui-font-content-weight': 'normal',
|
|
132
|
+
'devui-line-height-base': '1.5',
|
|
133
|
+
'devui-animation-ease-in-smooth': 'cubic-bezier(0.645, 0.045, 0.355, 1)',
|
|
134
|
+
'devui-animation-duration-slow': '300ms',
|
|
135
|
+
'devui-animation-duration-base': '200ms',
|
|
136
|
+
'devui-animation-duration-fast': '100ms',
|
|
137
|
+
'devui-animation-ease-in': 'cubic-bezier(0.5, 0, 0.84, 0.25)',
|
|
138
|
+
'devui-animation-ease-out': 'cubic-bezier(0.16, 0.75, 0.5, 1)',
|
|
139
|
+
'devui-animation-ease-in-out': 'cubic-bezier(0.5, 0.05, 0.5, 0.95)',
|
|
140
|
+
'devui-animation-ease-in-out-smooth': 'cubic-bezier(0.645, 0.045, 0.355, 1)',
|
|
141
|
+
'devui-animation-linear': 'cubic-bezier(0, 0, 1, 1)',
|
|
142
|
+
'devui-z-index-full-page-overlay': '1080',
|
|
143
|
+
'devui-z-index-pop-up': '1060',
|
|
144
|
+
'devui-z-index-dropdown': '1052',
|
|
145
|
+
'devui-z-index-modal': '1050',
|
|
146
|
+
'devui-z-index-drawer': '1040',
|
|
147
|
+
'devui-z-index-framework': '1000',
|
|
148
|
+
'devui-icon-active-color': '#ffffff',
|
|
149
|
+
|
|
150
|
+
'devui-btn-sm-padding': '0 12px',
|
|
151
|
+
'devui-btn-padding': '0 16px',
|
|
152
|
+
'devui-btn-lg-padding': '0 20px',
|
|
153
|
+
'devui-btn-common-bg': 'ti-button-normal-background-color',
|
|
154
|
+
'devui-btn-common-border-color': 'transparent',
|
|
155
|
+
'devui-btn-common-bg-hover': '#d1d1d1',
|
|
156
|
+
'devui-btn-common-color-hover': '#252b3a',
|
|
157
|
+
'devui-btn-common-border-color-hover': 'transparent',
|
|
158
|
+
'devui-btn-common-bg-active': '#BDBDBD',
|
|
159
|
+
'devui-btn-common-color-active': '#252b3a',
|
|
160
|
+
'devui-btn-common-border-color-active': 'transparent',
|
|
161
|
+
'devui-btn-common-border-disabled': 'transparent',
|
|
162
|
+
'devui-icon-hover-bg': '#ebebeb',
|
|
163
|
+
'devui-icon-active-bg': '#d1d1d1'
|
|
164
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
3
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
|
6
|
+
*
|
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export const galaxyTheme = {
|
|
14
|
+
'ti-base-color-bg-1': '#1A1A1C',
|
|
15
|
+
'ti-base-color-common-7': '#CED1DB',
|
|
16
|
+
'ti-button-normal-background-color': '#393a3e',
|
|
17
|
+
'ti-button-normal-hover-background-color': '#4e5057',
|
|
18
|
+
'ti-base-color-border': '#353638',
|
|
19
|
+
'ti-base-color-light': '#292A2E',
|
|
20
|
+
'ti-base-color-info-normal': 'var(--ti-base-color-common-7)',
|
|
21
|
+
'ti-base-color-hover-background': '#393A3E',
|
|
22
|
+
'ti-base-color-selected-background': '#393A3E',
|
|
23
|
+
'ti-button-primary-text-color': '#ffffff'
|
|
24
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
3
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
|
6
|
+
*
|
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
const fs = require('fs')
|
|
14
|
+
require('esbuild-register')
|
|
15
|
+
|
|
16
|
+
const { DEVUI_THEME_MAP } = require('./devui-theme-map')
|
|
17
|
+
const themes = ['impression-theme', 'infinity-theme', 'deep-theme', 'galaxy-theme']
|
|
18
|
+
|
|
19
|
+
function generateTheme(themeName) {
|
|
20
|
+
const themeData = {}
|
|
21
|
+
|
|
22
|
+
for (let mapItemKey of Object.keys(DEVUI_THEME_MAP)) {
|
|
23
|
+
const mapItemValue = DEVUI_THEME_MAP[mapItemKey]
|
|
24
|
+
if (mapItemValue.indexOf('ti-') !== -1) {
|
|
25
|
+
const themeJson = require(`./${themeName}/devui.json`)
|
|
26
|
+
for (let themeItemKey in themeJson) {
|
|
27
|
+
if (themeItemKey === mapItemKey) {
|
|
28
|
+
themeData[mapItemValue] = themeJson[themeItemKey]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
fs.writeFile(
|
|
35
|
+
`./${themeName}/index.json`,
|
|
36
|
+
JSON.stringify(themeData, null, ' '),
|
|
37
|
+
(err) => {
|
|
38
|
+
if (err) {
|
|
39
|
+
throw new Error('写入文件出错!')
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function main() {
|
|
46
|
+
for (let theme of themes) {
|
|
47
|
+
generateTheme(theme)
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
main()
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
3
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
|
6
|
+
*
|
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export const impressionTheme = {
|
|
14
|
+
}
|
package/theme/index.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
3
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
|
6
|
+
*
|
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { impressionTheme } from './impression-theme'
|
|
14
|
+
import { infinityTheme } from './infinity-theme'
|
|
15
|
+
import { deepTheme } from './deep-theme'
|
|
16
|
+
import { galaxyTheme } from './galaxy-theme'
|
|
17
|
+
|
|
18
|
+
export const tinyImpressionTheme = {
|
|
19
|
+
id: 'tiny-impression-theme',
|
|
20
|
+
name: 'Impression',
|
|
21
|
+
cnName: '印象',
|
|
22
|
+
data: impressionTheme
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const tinyInfinityTheme = {
|
|
26
|
+
id: 'tiny-infinity-theme',
|
|
27
|
+
name: 'Infinity',
|
|
28
|
+
cnName: '无限',
|
|
29
|
+
data: infinityTheme
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const tinyDeepTheme = {
|
|
33
|
+
id: 'tiny-deep-theme',
|
|
34
|
+
name: 'Deep',
|
|
35
|
+
cnName: '深邃夜空',
|
|
36
|
+
data: deepTheme
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export const tinyGalaxyTheme = {
|
|
40
|
+
id: 'tiny-galaxy-theme',
|
|
41
|
+
name: 'Galaxy',
|
|
42
|
+
cnName: '追光',
|
|
43
|
+
data: galaxyTheme
|
|
44
|
+
}
|