代码迁移
This commit is contained in:
30
src/Global/Skin/index.js
Normal file
30
src/Global/Skin/index.js
Normal file
@ -0,0 +1,30 @@
|
||||
let theme = {
|
||||
"yingguangse": new Map(),
|
||||
"gonganlan": new Map(),
|
||||
"hong": new Map(),
|
||||
}
|
||||
// 主色
|
||||
theme.yingguangse.set("--color-sdk-base", "#00ffff")
|
||||
// 辅色
|
||||
theme.yingguangse.set("--color-sdk-auxiliary", "#004242")
|
||||
theme.yingguangse.set("--color-sdk-auxiliary-public", "#ffffff")
|
||||
// 预警色
|
||||
theme.yingguangse.set("--color-sdk-warning-0", "#1BF8C3")
|
||||
theme.yingguangse.set("--color-sdk-warning-1", "#F16C55")
|
||||
theme.yingguangse.set("--color-sdk-warning-2", "#FFA145")
|
||||
theme.yingguangse.set("--color-sdk-warning-3", "#FFDF53")
|
||||
// 文本色
|
||||
theme.yingguangse.set("--color-sdk-text-head", "#FFFFFF")
|
||||
theme.yingguangse.set("--color-sdk-text-head-1", "#E6F7FF")
|
||||
theme.yingguangse.set("--color-sdk-text-head-2", "#ADF1FF")
|
||||
// 渐变色
|
||||
theme.yingguangse.set("--color-sdk-gradual", "#00ffff 6.25%, #00ffff 100%")
|
||||
theme.yingguangse.set("--color-sdk-bg-gradual", "#00ffff33 0%, #00ffff00 100%")
|
||||
|
||||
export default theme;
|
||||
|
||||
function setSkin(name) {
|
||||
document.documentElement.style.setProperty('--color-sdk-base', 'rgba(0, 55, 55, 1)');
|
||||
}
|
||||
|
||||
export { setSkin }
|
||||
Reference in New Issue
Block a user