diff --git a/.vscode/opendesign.token.code-snippets b/.vscode/opendesign.token.code-snippets index 84668efa833c40a4764afe5bd13fbf4e1bda7c59..fa7f59cb7c136f55b2931408a6c1bd809fc52029 100644 --- a/.vscode/opendesign.token.code-snippets +++ b/.vscode/opendesign.token.code-snippets @@ -1,786 +1,1442 @@ { - "--o-color-primary1": { + "--o-blue-1": { "prefix": [ - "--o-color-primary1" + "var(--o-blue-1)" ], - "body": "--o-color-primary1", - "description": "常规色: 用于按钮、文本、链接强调状态时常规颜色[light: #002fa7, dark: #406fe7]", + "body": "var(--o-blue-1)", + "description": "[light: 232, 243, 255, dark: 0, 13, 77]", "scope": "css,scss,less" }, - "--o-color-primary2": { + "--o-blue-2": { "prefix": [ - "--o-color-primary2" + "var(--o-blue-2)" ], - "body": "--o-color-primary2", - "description": "悬浮色: 用于按钮、文本、链接强调状态时悬浮颜色[light: #406fe7, dark: #5988ff]", + "body": "var(--o-blue-2)", + "description": "[light: 190, 218, 255, dark: 4, 27, 121]", "scope": "css,scss,less" }, - "--o-color-primary3": { + "--o-blue-3": { "prefix": [ - "--o-color-primary3" + "var(--o-blue-3)" ], - "body": "--o-color-primary3", - "description": "聚焦色: 用于按钮、文本、链接强调状态时聚焦颜色[light: #00288d, dark: #002fa7]", + "body": "var(--o-blue-3)", + "description": "[light: 148, 191, 255, dark: 14, 50, 166]", "scope": "css,scss,less" }, - "--o-color-primary4": { + "--o-blue-4": { "prefix": [ - "--o-color-primary4" + "var(--o-blue-4)" ], - "body": "--o-color-primary4", - "description": "禁用色: 用于按钮、文本、链接强调状态时禁用颜色[light: #b2c0e4, dark: #0c2360]", + "body": "var(--o-blue-4)", + "description": "[light: 106, 161, 255, dark: 29, 77, 210]", "scope": "css,scss,less" }, - "--o-color-major1": { + "--o-blue-5": { "prefix": [ - "--o-color-major1" + "var(--o-blue-5)" ], - "body": "--o-color-major1", - "description": "常规色: 用于按钮、文本、链接major状态时文本颜色[light: #feb32a, dark: #feb32a]", + "body": "var(--o-blue-5)", + "description": "[light: 64, 128, 255, dark: 48, 111, 255]", "scope": "css,scss,less" }, - "--o-color-normal1": { + "--o-blue-6": { "prefix": [ - "--o-color-normal1" + "var(--o-blue-6)" ], - "body": "--o-color-normal1", - "description": "常规色: 用于按钮、文本、链接常态时常规颜色[light: var(--o-color-info1), dark: var(--o-color-info1)]", + "body": "var(--o-blue-6)", + "description": "[light: 22, 93, 255, dark: 60, 126, 255]", "scope": "css,scss,less" }, - "--o-color-normal2": { + "--o-blue-7": { "prefix": [ - "--o-color-normal2" + "var(--o-blue-7)" ], - "body": "--o-color-normal2", - "description": "悬浮色: 用于按钮、文本、链接常态时悬浮颜色[light: var(--o-color-primary2), dark: var(--o-color-primary2)]", + "body": "var(--o-blue-7)", + "description": "[light: 14, 66, 210, dark: 104, 159, 255]", "scope": "css,scss,less" }, - "--o-color-normal3": { + "--o-blue-8": { "prefix": [ - "--o-color-normal3" + "var(--o-blue-8)" ], - "body": "--o-color-normal3", - "description": "聚焦色: 用于按钮、文本、链接常态时聚焦颜色[light: var(--o-color-primary3), dark: var(--o-color-primary3)]", + "body": "var(--o-blue-8)", + "description": "[light: 7, 44, 166, dark: 147, 190, 255]", "scope": "css,scss,less" }, - "--o-color-normal4": { + "--o-blue-9": { "prefix": [ - "--o-color-normal4" + "var(--o-blue-9)" ], - "body": "--o-color-normal4", - "description": "禁用色: 用于按钮、文本、链接常态时禁用颜色[light: var(--o-color-info4), dark: var(--o-color-info4)]", + "body": "var(--o-blue-9)", + "description": "[light: 3, 26, 121, dark: 190, 218, 255]", "scope": "css,scss,less" }, - "--o-color-success1": { + "--o-blue-10": { "prefix": [ - "--o-color-success1" + "var(--o-blue-10)" ], - "body": "--o-color-success1", - "description": "常规色: 用于按钮、文本、链接成功状态时常规颜色[light: #6dc335, dark: #6dc335]", + "body": "var(--o-blue-10)", + "description": "[light: 0, 13, 77, dark: 234, 244, 255]", "scope": "css,scss,less" }, - "--o-color-success2": { + "--o-yellow-1": { "prefix": [ - "--o-color-success2" + "var(--o-yellow-1)" ], - "body": "--o-color-success2", - "description": "悬浮色: 用于按钮、文本、链接成功状态时悬浮颜色[light: #93e95b, dark: #93e95b]", + "body": "var(--o-yellow-1)", + "description": "[light: 254, 255, 232, dark: 77, 56, 0]", "scope": "css,scss,less" }, - "--o-color-success3": { + "--o-yellow-2": { "prefix": [ - "--o-color-success3" + "var(--o-yellow-2)" ], - "body": "--o-color-success3", - "description": "聚焦色: 用于按钮、文本、链接成功状态时聚焦颜色[light: #62af30, dark: #62af30]", + "body": "var(--o-yellow-2)", + "description": "[light: 254, 254, 190, dark: 120, 94, 7]", "scope": "css,scss,less" }, - "--o-color-success4": { + "--o-yellow-3": { "prefix": [ - "--o-color-success4" + "var(--o-yellow-3)" ], - "body": "--o-color-success4", - "description": "禁用色: 用于按钮、文本、链接成功状态时禁用颜色[light: #c5e7ae, dark: #355f1a]", + "body": "var(--o-yellow-3)", + "description": "[light: 253, 250, 148, dark: 163, 134, 20]", "scope": "css,scss,less" }, - "--o-color-warning1": { + "--o-yellow-4": { "prefix": [ - "--o-color-warning1" + "var(--o-yellow-4)" ], - "body": "--o-color-warning1", - "description": "常规色: 用于按钮、文本、链接告警状态时常规颜色[light: #ff8e36, dark: #ff8e36]", + "body": "var(--o-yellow-4)", + "description": "[light: 252, 242, 107, dark: 207, 179, 37]", "scope": "css,scss,less" }, - "--o-color-warning2": { + "--o-yellow-5": { "prefix": [ - "--o-color-warning2" + "var(--o-yellow-5)" ], - "body": "--o-color-warning2", - "description": "悬浮色: 用于按钮、文本、链接告警状态时悬浮颜色[light: #ffb45c, dark: #ffb45c]", + "body": "var(--o-yellow-5)", + "description": "[light: 251, 232, 66, dark: 250, 225, 60]", "scope": "css,scss,less" }, - "--o-color-warning3": { + "--o-yellow-6": { "prefix": [ - "--o-color-warning3" + "var(--o-yellow-6)" ], - "body": "--o-color-warning3", - "description": "聚焦色: 用于按钮、文本、链接告警状态时聚焦颜色[light: #ff801c, dark: #ff801c]", + "body": "var(--o-yellow-6)", + "description": "[light: 250, 220, 25, dark: 251, 233, 75]", "scope": "css,scss,less" }, - "--o-color-warning4": { + "--o-yellow-7": { "prefix": [ - "--o-color-warning4" + "var(--o-yellow-7)" ], - "body": "--o-color-warning4", - "description": "禁用色: 用于按钮、文本、链接告警状态时禁用颜色[light: #ffd2af, dark: #b54f00]", + "body": "var(--o-yellow-7)", + "description": "[light: 207, 175, 15, dark: 252, 243, 116]", "scope": "css,scss,less" }, - "--o-color-danger1": { + "--o-yellow-8": { "prefix": [ - "--o-color-danger1" + "var(--o-yellow-8)" ], - "body": "--o-color-danger1", - "description": "常规色: 用于按钮、文本、链接错误状态时常规颜色[light: #f3524d, dark: #f3524d]", + "body": "var(--o-yellow-8)", + "description": "[light: 163, 132, 8, dark: 253, 250, 157]", "scope": "css,scss,less" }, - "--o-color-danger2": { + "--o-yellow-9": { "prefix": [ - "--o-color-danger2" + "var(--o-yellow-9)" ], - "body": "--o-color-danger2", - "description": "悬浮色: 用于按钮、文本、链接错误状态时悬浮颜色[light: #ff7873, dark: #ff7873]", + "body": "var(--o-yellow-9)", + "description": "[light: 120, 93, 3, dark: 254, 254, 198]", "scope": "css,scss,less" }, - "--o-color-danger3": { + "--o-yellow-10": { "prefix": [ - "--o-color-danger3" + "var(--o-yellow-10)" ], - "body": "--o-color-danger3", - "description": "聚焦色: 用于按钮、文本、链接错误状态时聚焦颜色[light: #f13b35, dark: #f13b35]", + "body": "var(--o-yellow-10)", + "description": "[light: 77, 56, 0, dark: 254, 255, 240]", "scope": "css,scss,less" }, - "--o-color-danger4": { + "--o-green-1": { + "prefix": [ + "var(--o-green-1)" + ], + "body": "var(--o-green-1)", + "description": "[light: 232, 255, 234, dark: 0, 77, 28]", + "scope": "css,scss,less" + }, + "--o-green-2": { + "prefix": [ + "var(--o-green-2)" + ], + "body": "var(--o-green-2)", + "description": "[light: 175, 240, 181, dark: 4, 102, 37]", + "scope": "css,scss,less" + }, + "--o-green-3": { + "prefix": [ + "var(--o-green-3)" + ], + "body": "var(--o-green-3)", + "description": "[light: 123, 225, 136, dark: 10, 128, 45]", + "scope": "css,scss,less" + }, + "--o-green-4": { + "prefix": [ + "var(--o-green-4)" + ], + "body": "var(--o-green-4)", + "description": "[light: 76, 210, 99, dark: 18, 154, 55]", + "scope": "css,scss,less" + }, + "--o-green-5": { + "prefix": [ + "var(--o-green-5)" + ], + "body": "var(--o-green-5)", + "description": "[light: 35, 195, 67, dark: 29, 180, 64]", + "scope": "css,scss,less" + }, + "--o-green-6": { + "prefix": [ + "var(--o-green-6)" + ], + "body": "var(--o-green-6)", + "description": "[light: 0, 180, 42, dark: 39, 195, 70]", + "scope": "css,scss,less" + }, + "--o-green-7": { + "prefix": [ + "var(--o-green-7)" + ], + "body": "var(--o-green-7)", + "description": "[light: 0, 154, 41, dark: 80, 210, 102]", + "scope": "css,scss,less" + }, + "--o-green-8": { + "prefix": [ + "var(--o-green-8)" + ], + "body": "var(--o-green-8)", + "description": "[light: 0, 128, 38, dark: 126, 225, 139]", + "scope": "css,scss,less" + }, + "--o-green-9": { + "prefix": [ + "var(--o-green-9)" + ], + "body": "var(--o-green-9)", + "description": "[light: 0, 102, 34, dark: 178, 240, 183]", + "scope": "css,scss,less" + }, + "--o-green-10": { + "prefix": [ + "var(--o-green-10)" + ], + "body": "var(--o-green-10)", + "description": "[light: 0, 77, 28, dark: 235, 255, 236]", + "scope": "css,scss,less" + }, + "--o-orange-1": { + "prefix": [ + "var(--o-orange-1)" + ], + "body": "var(--o-orange-1)", + "description": "[light: 255, 247, 232, dark: 77, 27, 0]", + "scope": "css,scss,less" + }, + "--o-orange-2": { + "prefix": [ + "var(--o-orange-2)" + ], + "body": "var(--o-orange-2)", + "description": "[light: 255, 228, 186, dark: 121, 48, 4]", + "scope": "css,scss,less" + }, + "--o-orange-3": { + "prefix": [ + "var(--o-orange-3)" + ], + "body": "var(--o-orange-3)", + "description": "[light: 255, 207, 139, dark: 166, 75, 10]", + "scope": "css,scss,less" + }, + "--o-orange-4": { + "prefix": [ + "var(--o-orange-4)" + ], + "body": "var(--o-orange-4)", + "description": "[light: 255, 182, 93, dark: 210, 105, 19]", + "scope": "css,scss,less" + }, + "--o-orange-5": { + "prefix": [ + "var(--o-orange-5)" + ], + "body": "var(--o-orange-5)", + "description": "[light: 255, 154, 46, dark: 255, 141, 31]", + "scope": "css,scss,less" + }, + "--o-orange-6": { + "prefix": [ + "var(--o-orange-6)" + ], + "body": "var(--o-orange-6)", + "description": "[light: 255, 125, 0, dark: 255, 150, 38]", + "scope": "css,scss,less" + }, + "--o-orange-7": { + "prefix": [ + "var(--o-orange-7)" + ], + "body": "var(--o-orange-7)", + "description": "[light: 210, 95, 0, dark: 255, 179, 87]", + "scope": "css,scss,less" + }, + "--o-orange-8": { + "prefix": [ + "var(--o-orange-8)" + ], + "body": "var(--o-orange-8)", + "description": "[light: 166, 69, 0, dark: 255, 205, 135]", + "scope": "css,scss,less" + }, + "--o-orange-9": { + "prefix": [ + "var(--o-orange-9)" + ], + "body": "var(--o-orange-9)", + "description": "[light: 121, 46, 0, dark: 255, 227, 184]", + "scope": "css,scss,less" + }, + "--o-orange-10": { + "prefix": [ + "var(--o-orange-10)" + ], + "body": "var(--o-orange-10)", + "description": "[light: 77, 27, 0, dark: 255, 247, 232]", + "scope": "css,scss,less" + }, + "--o-red-1": { + "prefix": [ + "var(--o-red-1)" + ], + "body": "var(--o-red-1)", + "description": "[light: 255, 236, 232, dark: 77, 0, 10]", + "scope": "css,scss,less" + }, + "--o-red-2": { + "prefix": [ + "var(--o-red-2)" + ], + "body": "var(--o-red-2)", + "description": "[light: 253, 205, 197, dark: 119, 6, 17]", + "scope": "css,scss,less" + }, + "--o-red-3": { + "prefix": [ + "var(--o-red-3)" + ], + "body": "var(--o-red-3)", + "description": "[light: 251, 172, 163, dark: 161, 22, 31]", + "scope": "css,scss,less" + }, + "--o-red-4": { + "prefix": [ + "var(--o-red-4)" + ], + "body": "var(--o-red-4)", + "description": "[light: 249, 137, 129, dark: 203, 46, 52]", + "scope": "css,scss,less" + }, + "--o-red-5": { + "prefix": [ + "var(--o-red-5)" + ], + "body": "var(--o-red-5)", + "description": "[light: 247, 101, 96, dark: 245, 78, 78]", + "scope": "css,scss,less" + }, + "--o-red-6": { + "prefix": [ + "var(--o-red-6)" + ], + "body": "var(--o-red-6)", + "description": "[light: 245, 63, 63, dark: 247, 105, 101]", + "scope": "css,scss,less" + }, + "--o-red-7": { + "prefix": [ + "var(--o-red-7)" + ], + "body": "var(--o-red-7)", + "description": "[light: 203, 39, 45, dark: 249, 141, 134]", + "scope": "css,scss,less" + }, + "--o-red-8": { + "prefix": [ + "var(--o-red-8)" + ], + "body": "var(--o-red-8)", + "description": "[light: 161, 21, 30, dark: 251, 176, 167]", + "scope": "css,scss,less" + }, + "--o-red-9": { + "prefix": [ + "var(--o-red-9)" + ], + "body": "var(--o-red-9)", + "description": "[light: 119, 8, 19, dark: 253, 209, 202]", + "scope": "css,scss,less" + }, + "--o-red-10": { + "prefix": [ + "var(--o-red-10)" + ], + "body": "var(--o-red-10)", + "description": "[light: 77, 0, 10, dark: 255, 240, 236]", + "scope": "css,scss,less" + }, + "--o-gray-1": { + "prefix": [ + "var(--o-gray-1)" + ], + "body": "var(--o-gray-1)", + "description": "[light: 255, 255, 255, dark: 0, 0, 0]", + "scope": "css,scss,less" + }, + "--o-gray-2": { + "prefix": [ + "var(--o-gray-2)" + ], + "body": "var(--o-gray-2)", + "description": "[light: 238, 238, 238, dark: 36, 36, 36]", + "scope": "css,scss,less" + }, + "--o-gray-3": { + "prefix": [ + "var(--o-gray-3)" + ], + "body": "var(--o-gray-3)", + "description": "[light: 221, 221, 221, dark: 57, 57, 57]", + "scope": "css,scss,less" + }, + "--o-gray-4": { + "prefix": [ + "var(--o-gray-4)" + ], + "body": "var(--o-gray-4)", + "description": "[light: 198, 198, 198, dark: 94, 94, 94]", + "scope": "css,scss,less" + }, + "--o-gray-5": { + "prefix": [ + "var(--o-gray-5)" + ], + "body": "var(--o-gray-5)", + "description": "[light: 139, 139, 139, dark: 119, 119, 122]", + "scope": "css,scss,less" + }, + "--o-gray-6": { + "prefix": [ + "var(--o-gray-6)" + ], + "body": "var(--o-gray-6)", + "description": "[light: 119, 119, 119, dark: 166, 166, 166]", + "scope": "css,scss,less" + }, + "--o-gray-7": { + "prefix": [ + "var(--o-gray-7)" + ], + "body": "var(--o-gray-7)", + "description": "[light: 94, 94, 94, dark: 221, 221, 221]", + "scope": "css,scss,less" + }, + "--o-gray-8": { + "prefix": [ + "var(--o-gray-8)" + ], + "body": "var(--o-gray-8)", + "description": "[light: 75, 75, 75, dark: 238, 238, 238]", + "scope": "css,scss,less" + }, + "--o-gray-9": { + "prefix": [ + "var(--o-gray-9)" + ], + "body": "var(--o-gray-9)", + "description": "[light: 44, 44, 44, dark: 243, 243, 243]", + "scope": "css,scss,less" + }, + "--o-gray-10": { + "prefix": [ + "var(--o-gray-10)" + ], + "body": "var(--o-gray-10)", + "description": "[light: 0, 0, 0, dark: 255, 255, 255]", + "scope": "css,scss,less" + }, + "--o-mixedgray-1": { + "prefix": [ + "var(--o-mixedgray-1)" + ], + "body": "var(--o-mixedgray-1)", + "description": "[light: 247, 248, 250, dark: 23, 23, 26]", + "scope": "css,scss,less" + }, + "--o-mixedgray-2": { + "prefix": [ + "var(--o-mixedgray-2)" + ], + "body": "var(--o-mixedgray-2)", + "description": "[light: 242, 243, 245, dark: 46, 46, 48]", + "scope": "css,scss,less" + }, + "--o-mixedgray-3": { + "prefix": [ + "var(--o-mixedgray-3)" + ], + "body": "var(--o-mixedgray-3)", + "description": "[light: 229, 230, 235, dark: 72, 72, 73]", + "scope": "css,scss,less" + }, + "--o-mixedgray-4": { + "prefix": [ + "var(--o-mixedgray-4)" + ], + "body": "var(--o-mixedgray-4)", + "description": "[light: 201, 205, 212, dark: 95, 95, 96]", + "scope": "css,scss,less" + }, + "--o-mixedgray-5": { + "prefix": [ + "var(--o-mixedgray-5)" + ], + "body": "var(--o-mixedgray-5)", + "description": "[light: 169, 174, 184, dark: 120, 120, 122]", + "scope": "css,scss,less" + }, + "--o-mixedgray-6": { + "prefix": [ + "var(--o-mixedgray-6)" + ], + "body": "var(--o-mixedgray-6)", + "description": "[light: 134, 144, 156, dark: 146, 146, 147]", + "scope": "css,scss,less" + }, + "--o-mixedgray-7": { + "prefix": [ + "var(--o-mixedgray-7)" + ], + "body": "var(--o-mixedgray-7)", + "description": "[light: 107, 119, 133, dark: 171, 171, 172]", + "scope": "css,scss,less" + }, + "--o-mixedgray-8": { + "prefix": [ + "var(--o-mixedgray-8)" + ], + "body": "var(--o-mixedgray-8)", + "description": "[light: 78, 89, 105, dark: 197, 197, 197]", + "scope": "css,scss,less" + }, + "--o-mixedgray-9": { + "prefix": [ + "var(--o-mixedgray-9)" + ], + "body": "var(--o-mixedgray-9)", + "description": "[light: 39, 46, 59, dark: 223, 223, 223]", + "scope": "css,scss,less" + }, + "--o-mixedgray-10": { "prefix": [ - "--o-color-danger4" + "var(--o-mixedgray-10)" ], - "body": "--o-color-danger4", - "description": "禁用色: 用于按钮、文本、链接错误状态时禁用颜色[light: #fabab8, dark: #850d09]", + "body": "var(--o-mixedgray-10)", + "description": "[light: 29, 33, 41, dark: 246, 246, 246]", "scope": "css,scss,less" }, "--o-color-info1": { "prefix": [ - "--o-color-info1" + "var(--o-color-info1)" ], - "body": "--o-color-info1", - "description": "常规色: 用于按钮、文本、链接信息状态时常规颜色[light: #e5e5e5, dark: #242424]", + "body": "var(--o-color-info1)", + "description": "一级/强调/标题[light: rgb(var(--o-gray-10)), dark: rgb(var(--o-gray-10))]", "scope": "css,scss,less" }, "--o-color-info2": { "prefix": [ - "--o-color-info2" + "var(--o-color-info2)" ], - "body": "--o-color-info2", - "description": "悬浮色: 用于按钮、文本、链接信息状态时悬浮颜色[light: #e5e8f0, dark: #2e2e2e]", + "body": "var(--o-color-info2)", + "description": "二级/次强调/正文[light: rgb(var(--o-gray-8)), dark: rgb(var(--o-gray-8))]", "scope": "css,scss,less" }, "--o-color-info3": { "prefix": [ - "--o-color-info3" + "var(--o-color-info3)" ], - "body": "--o-color-info3", - "description": "聚焦色: 用于按钮、文本、链接信息状态时聚焦颜色[light: #cccccc, dark: #1e1e1e]", + "body": "var(--o-color-info3)", + "description": "三级/辅助信息[light: rgb(var(--o-gray-6)), dark: rgb(var(--o-gray-6))]", "scope": "css,scss,less" }, "--o-color-info4": { "prefix": [ - "--o-color-info4" + "var(--o-color-info4)" ], - "body": "--o-color-info4", - "description": "禁用色: 用于按钮、文本、链接信息状态时禁用颜色[light: #f7f8fa, dark: #151515]", + "body": "var(--o-color-info4)", + "description": "置灰/禁用[light: rgb(var(--o-gray-4)), dark: rgb(var(--o-gray-4))]", "scope": "css,scss,less" }, - "--o-color-bg1": { + "--o-color-info1-inverse": { "prefix": [ - "--o-color-bg1" + "var(--o-color-info1-inverse)" ], - "body": "--o-color-bg1", - "description": "一级容器背景色: 用于页面整体背景色[light: #f5f6f8, dark: #121212]", + "body": "var(--o-color-info1-inverse)", + "description": "一级/次强调/正文反色[light: rgb(var(--o-gray-1)), dark: rgb(var(--o-gray-1))]", "scope": "css,scss,less" }, - "--o-color-bg2": { + "--o-color-info2-inverse": { "prefix": [ - "--o-color-bg2" + "var(--o-color-info2-inverse)" ], - "body": "--o-color-bg2", - "description": "二级容器背景色: 用于区块、卡片、弹出框、tooltip背景色[light: #ffffff, dark: #1e1e1e]", + "body": "var(--o-color-info2-inverse)", + "description": "二级/辅助信息反色[light: rgb(var(--o-gray-3)), dark: rgb(var(--o-gray-3))]", "scope": "css,scss,less" }, - "--o-color-bg3": { + "--o-color-info3-inverse": { "prefix": [ - "--o-color-bg3" + "var(--o-color-info3-inverse)" ], - "body": "--o-color-bg3", - "description": "三级容器背景色: 用于区块卡片背景色[light: #f7f8fa, dark: #242424]", + "body": "var(--o-color-info3-inverse)", + "description": "三级/辅助信息反色[light: rgb(var(--o-gray-5)), dark: rgb(var(--o-gray-5))]", "scope": "css,scss,less" }, - "--o-color-bg4": { + "--o-color-info4-inverse": { "prefix": [ - "--o-color-bg4" + "var(--o-color-info4-inverse)" ], - "body": "--o-color-bg4", - "description": "四级容器背景色: 用于区块、卡片、表头背景色[light: #e5e8f0, dark: #2e2e2e]", + "body": "var(--o-color-info4-inverse)", + "description": "置灰/禁用反色[light: rgb(var(--o-gray-7)), dark: rgb(var(--o-gray-7))]", "scope": "css,scss,less" }, - "--o-color-text1": { + "--o-color-mask1": { "prefix": [ - "--o-color-text1" + "var(--o-color-mask1)" ], - "body": "--o-color-text1", - "description": "标题色: 用于强调、标题颜色[light: #000000, dark: #ffffff]", + "body": "var(--o-color-mask1)", + "description": "全局遮罩[light: rgba(var(--o-gray-10), .2), dark: rgba(var(--o-gray-10), .2)]", "scope": "css,scss,less" }, - "--o-color-text1-inverse": { + "--o-color-mask2": { "prefix": [ - "--o-color-text1-inverse" + "var(--o-color-mask2)" ], - "body": "--o-color-text1-inverse", - "description": "标题反色: 用于强调、标题颜色的反色,例如浅色模式下的深色背景上的标题[light: #ffffff, dark: #000000]", + "body": "var(--o-color-mask2)", + "description": "局部遮罩[light: rgba(var(--o-gray-10), .1), dark: rgba(var(--o-gray-10), .1)]", "scope": "css,scss,less" }, - "--o-color-text2": { + "--o-color-fill1": { "prefix": [ - "--o-color-text2" + "var(--o-color-fill1)" ], - "body": "--o-color-text2", - "description": "正文色: 用于次强调、次级标题、正文颜色[light: #3f3f3f, dark: #e5e5e5]", + "body": "var(--o-color-fill1)", + "description": "一级填充/页面背景[light: rgb(var(--o-mixedgray-1)), dark: rgb(var(--o-mixedgray-1))]", "scope": "css,scss,less" }, - "--o-color-text2-inverse": { + "--o-color-fill2": { "prefix": [ - "--o-color-text2-inverse" + "var(--o-color-fill2)" ], - "body": "--o-color-text2-inverse", - "description": "正文反色: 用于次强调、次级标题、正文颜色的反色,例如浅色模式下的深色背景上的正文[light: #e5e5e5, dark: #3f3f3f]", + "body": "var(--o-color-fill2)", + "description": "二级填充/区块、卡片[light: rgb(var(--o-gray-1)), dark: rgb(var(--o-gray-1))]", "scope": "css,scss,less" }, - "--o-color-text3": { + "--o-color-fill3": { "prefix": [ - "--o-color-text3" + "var(--o-color-fill3)" ], - "body": "--o-color-text3", - "description": "提示色: 用于提示文本颜色[light: #707070, dark: #b2b2b2]", + "body": "var(--o-color-fill3)", + "description": "三级填充/卡片[light: rgb(var(--o-mixedgray-3)), dark: rgb(var(--o-mixedgray-3))]", "scope": "css,scss,less" }, - "--o-color-text3-inverse": { + "--o-color-fill4": { "prefix": [ - "--o-color-text3-inverse" + "var(--o-color-fill4)" ], - "body": "--o-color-text3-inverse", - "description": "提示反色: 用于提示文本颜色的反色,例如浅色模式下的深色背景上的提示[light: #b2b2b2, dark: #707070]", + "body": "var(--o-color-fill4)", + "description": "四级填充/禁用[light: rgb(var(--o-mixedgray-4)), dark: rgb(var(--o-mixedgray-4))]", "scope": "css,scss,less" }, - "--o-color-text4": { + "--o-color-control1": { "prefix": [ - "--o-color-text4" + "var(--o-color-control1)" ], - "body": "--o-color-text4", - "description": "置灰色: 用于禁用文本颜色[light: #cccccc, dark: #555555]", + "body": "var(--o-color-control1)", + "description": "常规[light: rgb(var(--o-mixedgray-3)), dark: rgb(var(--o-mixedgray-3))]", "scope": "css,scss,less" }, - "--o-color-text4-inverse": { + "--o-color-control2": { "prefix": [ - "--o-color-text4-inverse" + "var(--o-color-control2)" ], - "body": "--o-color-text4-inverse", - "description": "置灰反色: 用于禁用文本颜色的反色,例如浅色模式下的深色背景上的禁用文本[light: #e5e5e5, dark: #2d2d2d]", + "body": "var(--o-color-control2)", + "description": "悬浮[light: rgb(var(--o-mixedgray-4)), dark: rgb(var(--o-mixedgray-4))]", "scope": "css,scss,less" }, - "--o-color-border1": { + "--o-color-control3": { "prefix": [ - "--o-color-border1" + "var(--o-color-control3)" ], - "body": "--o-color-border1", - "description": "边框色: 较明显的边框[light: #707070, dark: #b2b2b2]", + "body": "var(--o-color-control3)", + "description": "激活[light: rgb(var(--o-mixedgray-6)), dark: rgb(var(--o-mixedgray-6))]", "scope": "css,scss,less" }, - "--o-color-border2": { + "--o-color-control4": { "prefix": [ - "--o-color-border2" + "var(--o-color-control4)" ], - "body": "--o-color-border2", - "description": "弱边框色: 较弱的边框[light: #e5e5e5, dark: #2d2d2d]", + "body": "var(--o-color-control4)", + "description": "禁用[light: rgb(var(--o-mixedgray-5)), dark: rgb(var(--o-mixedgray-5))]", "scope": "css,scss,less" }, - "--o-color-division1": { + "--o-color-control1-light": { "prefix": [ - "--o-color-division1" + "var(--o-color-control1-light)" ], - "body": "--o-color-division1", - "description": "分隔线色1: 用于分隔线颜色[light: #707070, dark: #b2b2b2]", + "body": "var(--o-color-control1-light)", + "description": "浅/控件常规[light: rgb(var(--o-mixedgray-3)), dark: rgb(var(--o-mixedgray-3))]", "scope": "css,scss,less" }, - "--o-color-mask1": { + "--o-color-control2-light": { "prefix": [ - "--o-color-mask1" + "var(--o-color-control2-light)" ], - "body": "--o-color-mask1", - "description": "遮罩色1: 用于弹窗遮罩色[light: rgba(0, 0, 0, 0.5), dark: rgba(0, 0, 0, 0.5)]", + "body": "var(--o-color-control2-light)", + "description": "浅/控件悬浮[light: rgb(var(--o-mixedgray-4)), dark: rgb(var(--o-mixedgray-4))]", "scope": "css,scss,less" }, - "--o-color-mask2": { + "--o-color-control3-light": { + "prefix": [ + "var(--o-color-control3-light)" + ], + "body": "var(--o-color-control3-light)", + "description": "浅/控件激活[light: rgb(var(--o-mixedgray-5)), dark: rgb(var(--o-mixedgray-5))]", + "scope": "css,scss,less" + }, + "--o-color-control4-light": { + "prefix": [ + "var(--o-color-control4-light)" + ], + "body": "var(--o-color-control4-light)", + "description": "浅/控件禁用[light: rgb(var(--o-mixedgray-2)), dark: rgb(var(--o-mixedgray-2))]", + "scope": "css,scss,less" + }, + "--o-color-primary1": { + "prefix": [ + "var(--o-color-primary1)" + ], + "body": "var(--o-color-primary1)", + "description": "常规[light: rgb(var(--o-blue-6)), dark: rgb(var(--o-blue-6))]", + "scope": "css,scss,less" + }, + "--o-color-primary2": { + "prefix": [ + "var(--o-color-primary2)" + ], + "body": "var(--o-color-primary2)", + "description": "悬浮[light: rgb(var(--o-blue-5)), dark: rgb(var(--o-blue-5))]", + "scope": "css,scss,less" + }, + "--o-color-primary3": { + "prefix": [ + "var(--o-color-primary3)" + ], + "body": "var(--o-color-primary3)", + "description": "激活[light: rgb(var(--o-blue-7)), dark: rgb(var(--o-blue-7))]", + "scope": "css,scss,less" + }, + "--o-color-primary4": { + "prefix": [ + "var(--o-color-primary4)" + ], + "body": "var(--o-color-primary4)", + "description": "禁用[light: rgb(var(--o-blue-3)), dark: rgb(var(--o-blue-3))]", + "scope": "css,scss,less" + }, + "--o-color-primary1-light": { + "prefix": [ + "var(--o-color-primary1-light)" + ], + "body": "var(--o-color-primary1-light)", + "description": "浅/常规[light: rgb(var(--o-blue-2)), dark: rgb(var(--o-blue-2))]", + "scope": "css,scss,less" + }, + "--o-color-primary2-light": { + "prefix": [ + "var(--o-color-primary2-light)" + ], + "body": "var(--o-color-primary2-light)", + "description": "浅/悬浮[light: rgb(var(--o-blue-3)), dark: rgb(var(--o-blue-3))]", + "scope": "css,scss,less" + }, + "--o-color-primary3-light": { + "prefix": [ + "var(--o-color-primary3-light)" + ], + "body": "var(--o-color-primary3-light)", + "description": "浅/激活[light: rgb(var(--o-blue-4)), dark: rgb(var(--o-blue-4))]", + "scope": "css,scss,less" + }, + "--o-color-primary4-light": { + "prefix": [ + "var(--o-color-primary4-light)" + ], + "body": "var(--o-color-primary4-light)", + "description": "浅/禁用[light: rgb(var(--o-blue-1)), dark: rgb(var(--o-blue-1))]", + "scope": "css,scss,less" + }, + "--o-color-success1": { + "prefix": [ + "var(--o-color-success1)" + ], + "body": "var(--o-color-success1)", + "description": "常规[light: rgb(var(--o-green-6)), dark: rgb(var(--o-green-6))]", + "scope": "css,scss,less" + }, + "--o-color-success2": { + "prefix": [ + "var(--o-color-success2)" + ], + "body": "var(--o-color-success2)", + "description": "悬浮[light: rgb(var(--o-green-5)), dark: rgb(var(--o-green-5))]", + "scope": "css,scss,less" + }, + "--o-color-success3": { + "prefix": [ + "var(--o-color-success3)" + ], + "body": "var(--o-color-success3)", + "description": "激活[light: rgb(var(--o-green-7)), dark: rgb(var(--o-green-7))]", + "scope": "css,scss,less" + }, + "--o-color-success4": { + "prefix": [ + "var(--o-color-success4)" + ], + "body": "var(--o-color-success4)", + "description": "禁用[light: rgb(var(--o-green-3)), dark: rgb(var(--o-green-3))]", + "scope": "css,scss,less" + }, + "--o-color-success1-light": { + "prefix": [ + "var(--o-color-success1-light)" + ], + "body": "var(--o-color-success1-light)", + "description": "浅/常规[light: rgb(var(--o-green-2)), dark: rgb(var(--o-green-2))]", + "scope": "css,scss,less" + }, + "--o-color-success2-light": { + "prefix": [ + "var(--o-color-success2-light)" + ], + "body": "var(--o-color-success2-light)", + "description": "浅/悬浮[light: rgb(var(--o-green-3)), dark: rgb(var(--o-green-3))]", + "scope": "css,scss,less" + }, + "--o-color-success3-light": { + "prefix": [ + "var(--o-color-success3-light)" + ], + "body": "var(--o-color-success3-light)", + "description": "浅/激活[light: rgb(var(--o-green-4)), dark: rgb(var(--o-green-4))]", + "scope": "css,scss,less" + }, + "--o-color-success4-light": { + "prefix": [ + "var(--o-color-success4-light)" + ], + "body": "var(--o-color-success4-light)", + "description": "浅/禁用[light: rgb(var(--o-green-1)), dark: rgb(var(--o-green-1))]", + "scope": "css,scss,less" + }, + "--o-color-warning1": { + "prefix": [ + "var(--o-color-warning1)" + ], + "body": "var(--o-color-warning1)", + "description": "常规[light: rgb(var(--o-orange-6)), dark: rgb(var(--o-orange-6))]", + "scope": "css,scss,less" + }, + "--o-color-warning2": { + "prefix": [ + "var(--o-color-warning2)" + ], + "body": "var(--o-color-warning2)", + "description": "悬浮[light: rgb(var(--o-orange-5)), dark: rgb(var(--o-orange-5))]", + "scope": "css,scss,less" + }, + "--o-color-warning3": { + "prefix": [ + "var(--o-color-warning3)" + ], + "body": "var(--o-color-warning3)", + "description": "激活[light: rgb(var(--o-orange-7)), dark: rgb(var(--o-orange-7))]", + "scope": "css,scss,less" + }, + "--o-color-warning4": { + "prefix": [ + "var(--o-color-warning4)" + ], + "body": "var(--o-color-warning4)", + "description": "禁用[light: rgb(var(--o-orange-3)), dark: rgb(var(--o-orange-3))]", + "scope": "css,scss,less" + }, + "--o-color-warning1-light": { + "prefix": [ + "var(--o-color-warning1-light)" + ], + "body": "var(--o-color-warning1-light)", + "description": "浅/常规[light: rgb(var(--o-orange-2)), dark: rgb(var(--o-orange-2))]", + "scope": "css,scss,less" + }, + "--o-color-warning2-light": { + "prefix": [ + "var(--o-color-warning2-light)" + ], + "body": "var(--o-color-warning2-light)", + "description": "浅/悬浮[light: rgb(var(--o-orange-3)), dark: rgb(var(--o-orange-3))]", + "scope": "css,scss,less" + }, + "--o-color-warning3-light": { + "prefix": [ + "var(--o-color-warning3-light)" + ], + "body": "var(--o-color-warning3-light)", + "description": "浅/激活[light: rgb(var(--o-orange-4)), dark: rgb(var(--o-orange-4))]", + "scope": "css,scss,less" + }, + "--o-color-warning4-light": { + "prefix": [ + "var(--o-color-warning4-light)" + ], + "body": "var(--o-color-warning4-light)", + "description": "浅/禁用[light: rgb(var(--o-orange-1)), dark: rgb(var(--o-orange-1))]", + "scope": "css,scss,less" + }, + "--o-color-danger1": { + "prefix": [ + "var(--o-color-danger1)" + ], + "body": "var(--o-color-danger1)", + "description": "常规[light: rgb(var(--o-red-6)), dark: rgb(var(--o-red-6))]", + "scope": "css,scss,less" + }, + "--o-color-danger2": { + "prefix": [ + "var(--o-color-danger2)" + ], + "body": "var(--o-color-danger2)", + "description": "悬浮[light: rgb(var(--o-red-5)), dark: rgb(var(--o-red-5))]", + "scope": "css,scss,less" + }, + "--o-color-danger3": { + "prefix": [ + "var(--o-color-danger3)" + ], + "body": "var(--o-color-danger3)", + "description": "激活[light: rgb(var(--o-red-7)), dark: rgb(var(--o-red-7))]", + "scope": "css,scss,less" + }, + "--o-color-danger4": { + "prefix": [ + "var(--o-color-danger4)" + ], + "body": "var(--o-color-danger4)", + "description": "禁用[light: rgb(var(--o-red-3)), dark: rgb(var(--o-red-3))]", + "scope": "css,scss,less" + }, + "--o-color-danger1-light": { + "prefix": [ + "var(--o-color-danger1-light)" + ], + "body": "var(--o-color-danger1-light)", + "description": "浅/常规[light: rgb(var(--o-red-2)), dark: rgb(var(--o-red-2))]", + "scope": "css,scss,less" + }, + "--o-color-danger2-light": { + "prefix": [ + "var(--o-color-danger2-light)" + ], + "body": "var(--o-color-danger2-light)", + "description": "浅/悬浮[light: rgb(var(--o-red-3)), dark: rgb(var(--o-red-3))]", + "scope": "css,scss,less" + }, + "--o-color-danger3-light": { + "prefix": [ + "var(--o-color-danger3-light)" + ], + "body": "var(--o-color-danger3-light)", + "description": "浅/激活[light: rgb(var(--o-red-4)), dark: rgb(var(--o-red-4))]", + "scope": "css,scss,less" + }, + "--o-color-danger4-light": { "prefix": [ - "--o-color-mask2" + "var(--o-color-danger4-light)" ], - "body": "--o-color-mask2", - "description": "遮罩色2: 用于loading遮罩色[light: rgba(0, 0, 0, 0.1), dark: rgba(0, 0, 0, 0.1)]", + "body": "var(--o-color-danger4-light)", + "description": "浅/禁用[light: rgb(var(--o-red-1)), dark: rgb(var(--o-red-1))]", "scope": "css,scss,less" }, "--o-shadow-1": { "prefix": [ - "--o-shadow-1" + "var(--o-shadow-1)" ], - "body": "--o-shadow-1", - "description": "阴影1: 用于卡片、小弹窗、楼层阴影[light: 0 1px 5px rgba(45, 47, 51, 0.1), dark: 0 1px 7px rgba(0, 0, 0, 0.3)]", + "body": "var(--o-shadow-1)", + "description": "用于卡片、小弹窗、楼层阴影[light: 0 1px 5px rgba(var(--o-gray-10), 0.1), dark: 0 1px 7px rgba(var(--o-gray-10), 0.3)]", "scope": "css,scss,less" }, "--o-shadow-2": { "prefix": [ - "--o-shadow-2" + "var(--o-shadow-2)" ], - "body": "--o-shadow-2", - "description": "阴影2: 用于卡片悬浮阴影[light: 0 6px 18px rgba(0, 47, 167, 0.14), dark: 0 6px 18px rgba(0, 0, 0, 0.42)]", + "body": "var(--o-shadow-2)", + "description": "用于卡片悬浮阴影[light: 0 6px 18px rgba(var(--o-gray-10), 0.14), dark: 0 6px 18px rgba(var(--o-gray-10), 0.42)]", "scope": "css,scss,less" }, "--o-shadow-3": { "prefix": [ - "--o-shadow-3" + "var(--o-shadow-3)" ], - "body": "--o-shadow-3", - "description": "阴影3: 用于提示阴影[light: 0 10px 32px rgba(45, 47, 51, 0.18), dark: 0 10px 32px rgba(0, 0, 0, 0.54)]", + "body": "var(--o-shadow-3)", + "description": "用于提示阴影[light: 0 10px 32px rgba(var(--o-gray-10), 0.18), dark: 0 10px 32px rgba(var(--o-gray-10), 0.54)]", "scope": "css,scss,less" }, "--o-gap-1": { "prefix": [ - "--o-gap-1" + "var(--o-gap-1)" ], - "body": "--o-gap-1", - "description": "间距1: 用于组件之间的间距1[light: 4px, dark: 4px]", + "body": "var(--o-gap-1)", + "description": "用于组件之间的间距1[light: 4px, dark: 4px]", "scope": "css,scss,less" }, "--o-gap-2": { "prefix": [ - "--o-gap-2" + "var(--o-gap-2)" ], - "body": "--o-gap-2", - "description": "间距2: 用于组件之间的间距2[light: 8px, dark: 8px]", + "body": "var(--o-gap-2)", + "description": "用于组件之间的间距2[light: 8px, dark: 8px]", "scope": "css,scss,less" }, "--o-gap-3": { "prefix": [ - "--o-gap-3" + "var(--o-gap-3)" ], - "body": "--o-gap-3", - "description": "间距3: 用于组件之间的间距3[light: 12px, dark: 12px]", + "body": "var(--o-gap-3)", + "description": "用于组件之间的间距3[light: 12px, dark: 12px]", "scope": "css,scss,less" }, "--o-gap-4": { "prefix": [ - "--o-gap-4" + "var(--o-gap-4)" ], - "body": "--o-gap-4", - "description": "间距4: 用于组件之间的间距4[light: 16px, dark: 16px]", + "body": "var(--o-gap-4)", + "description": "用于组件之间的间距4[light: 16px, dark: 16px]", "scope": "css,scss,less" }, "--o-gap-5": { "prefix": [ - "--o-gap-5" + "var(--o-gap-5)" ], - "body": "--o-gap-5", - "description": "间距5: 用于组件之间的间距5[light: 24px, dark: 24px]", + "body": "var(--o-gap-5)", + "description": "用于组件之间的间距5[light: 24px, dark: 24px]", "scope": "css,scss,less" }, "--o-gap-6": { "prefix": [ - "--o-gap-6" + "var(--o-gap-6)" ], - "body": "--o-gap-6", - "description": "间距6: 用于组件之间的间距6[light: 32px, dark: 32px]", + "body": "var(--o-gap-6)", + "description": "用于组件之间的间距6[light: 32px, dark: 32px]", "scope": "css,scss,less" }, "--o-gap-7": { "prefix": [ - "--o-gap-7" + "var(--o-gap-7)" ], - "body": "--o-gap-7", - "description": "间距7: 用于组件之间的间距7[light: 40px, dark: 40px]", + "body": "var(--o-gap-7)", + "description": "用于组件之间的间距7[light: 40px, dark: 40px]", "scope": "css,scss,less" }, "--o-gap-8": { "prefix": [ - "--o-gap-8" + "var(--o-gap-8)" ], - "body": "--o-gap-8", - "description": "间距8: 用于组件之间的间距8[light: 64px, dark: 64px]", + "body": "var(--o-gap-8)", + "description": "用于组件之间的间距8[light: 64px, dark: 64px]", "scope": "css,scss,less" }, "--o-size-l": { "prefix": [ - "--o-size-l" + "var(--o-size-l)" ], - "body": "--o-size-l", - "description": "大尺寸: 尺寸[light: 40px, dark: 40px]", + "body": "var(--o-size-l)", + "description": "尺寸[light: 40px, dark: 40px]", "scope": "css,scss,less" }, "--o-size-m": { "prefix": [ - "--o-size-m" + "var(--o-size-m)" ], - "body": "--o-size-m", - "description": "中尺寸: 尺寸[light: 32px, dark: 32px]", + "body": "var(--o-size-m)", + "description": "尺寸[light: 32px, dark: 32px]", "scope": "css,scss,less" }, "--o-size-s": { "prefix": [ - "--o-size-s" + "var(--o-size-s)" ], - "body": "--o-size-s", - "description": "小尺寸: 小尺寸[light: 24px, dark: 24px]", + "body": "var(--o-size-s)", + "description": "小尺寸[light: 24px, dark: 24px]", "scope": "css,scss,less" }, "--o-icon_size-l": { "prefix": [ - "--o-icon_size-l" + "var(--o-icon_size-l)" ], - "body": "--o-icon_size-l", - "description": "大尺寸图标: 尺寸[light: 48px, dark: 48px]", + "body": "var(--o-icon_size-l)", + "description": "尺寸[light: 48px, dark: 48px]", "scope": "css,scss,less" }, "--o-icon_size-m": { "prefix": [ - "--o-icon_size-m" + "var(--o-icon_size-m)" ], - "body": "--o-icon_size-m", - "description": "中尺寸图标: 尺寸[light: 32px, dark: 32px]", + "body": "var(--o-icon_size-m)", + "description": "尺寸[light: 32px, dark: 32px]", "scope": "css,scss,less" }, "--o-icon_size-s": { "prefix": [ - "--o-icon_size-s" + "var(--o-icon_size-s)" ], - "body": "--o-icon_size-s", - "description": "小尺寸图标: 小尺寸[light: 24px, dark: 24px]", + "body": "var(--o-icon_size-s)", + "description": "小尺寸[light: 24px, dark: 24px]", "scope": "css,scss,less" }, "--o-icon_size-xs": { "prefix": [ - "--o-icon_size-xs" + "var(--o-icon_size-xs)" ], - "body": "--o-icon_size-xs", - "description": "超小尺寸图标: 小尺寸[light: 16px, dark: 16px]", + "body": "var(--o-icon_size-xs)", + "description": "小尺寸[light: 16px, dark: 16px]", "scope": "css,scss,less" }, "--o-font_size-display1": { "prefix": [ - "--o-font_size-display1" + "var(--o-font_size-display1)" ], - "body": "--o-font_size-display1", - "description": "一级数据展示: 一级数据展示[light: 64px, dark: 64px]", + "body": "var(--o-font_size-display1)", + "description": "一级数据展示[light: 64px, dark: 64px]", "scope": "css,scss,less" }, "--o-font_size-display2": { "prefix": [ - "--o-font_size-display2" + "var(--o-font_size-display2)" ], - "body": "--o-font_size-display2", - "description": "二级数据展示: 二级数据展示[light: 54px, dark: 54px]", + "body": "var(--o-font_size-display2)", + "description": "二级数据展示[light: 54px, dark: 54px]", "scope": "css,scss,less" }, "--o-font_size-display3": { "prefix": [ - "--o-font_size-display3" + "var(--o-font_size-display3)" ], - "body": "--o-font_size-display3", - "description": "三级数据展示: 三级数据展示[light: 36px, dark: 36px]", + "body": "var(--o-font_size-display3)", + "description": "三级数据展示[light: 36px, dark: 36px]", "scope": "css,scss,less" }, "--o-font_size-display4": { "prefix": [ - "--o-font_size-display4" + "var(--o-font_size-display4)" ], - "body": "--o-font_size-display4", - "description": "四级数据展示: 四级数据展示[light: 28px, dark: 28px]", + "body": "var(--o-font_size-display4)", + "description": "四级数据展示[light: 28px, dark: 28px]", "scope": "css,scss,less" }, "--o-font_size-h1": { "prefix": [ - "--o-font_size-h1" + "var(--o-font_size-h1)" ], - "body": "--o-font_size-h1", - "description": "一级标题: 一级标题[light: 24px, dark: 24px]", + "body": "var(--o-font_size-h1)", + "description": "一级标题[light: 24px, dark: 24px]", "scope": "css,scss,less" }, "--o-font_size-h2": { "prefix": [ - "--o-font_size-h2" + "var(--o-font_size-h2)" ], - "body": "--o-font_size-h2", - "description": "二级标题: 二级标题[light: 20px, dark: 20px]", + "body": "var(--o-font_size-h2)", + "description": "二级标题[light: 20px, dark: 20px]", "scope": "css,scss,less" }, "--o-font_size-h3": { "prefix": [ - "--o-font_size-h3" + "var(--o-font_size-h3)" ], - "body": "--o-font_size-h3", - "description": "三级标题: 三级标题[light: 18px, dark: 18px]", + "body": "var(--o-font_size-h3)", + "description": "三级标题[light: 18px, dark: 18px]", "scope": "css,scss,less" }, "--o-font_size-h4": { "prefix": [ - "--o-font_size-h4" + "var(--o-font_size-h4)" ], - "body": "--o-font_size-h4", - "description": "四级标题: 四级标题[light: 16px, dark: 16px]", + "body": "var(--o-font_size-h4)", + "description": "四级标题[light: 16px, dark: 16px]", "scope": "css,scss,less" }, "--o-font_size-text": { "prefix": [ - "--o-font_size-text" + "var(--o-font_size-text)" ], - "body": "--o-font_size-text", - "description": "正文: 正文[light: 14px, dark: 14px]", + "body": "var(--o-font_size-text)", + "description": "正文[light: 14px, dark: 14px]", "scope": "css,scss,less" }, "--o-font_size-tip1": { "prefix": [ - "--o-font_size-tip1" + "var(--o-font_size-tip1)" ], - "body": "--o-font_size-tip1", - "description": "提示文本1: 提示文本1[light: 12px, dark: 12px]", + "body": "var(--o-font_size-tip1)", + "description": "提示文本1[light: 12px, dark: 12px]", "scope": "css,scss,less" }, "--o-font_size-tip2": { "prefix": [ - "--o-font_size-tip2" + "var(--o-font_size-tip2)" ], - "body": "--o-font_size-tip2", - "description": "提示文本2: 提示文本2[light: 10px, dark: 10px]", + "body": "var(--o-font_size-tip2)", + "description": "提示文本2[light: 10px, dark: 10px]", "scope": "css,scss,less" }, "--o-line_height-display1": { "prefix": [ - "--o-line_height-display1" + "var(--o-line_height-display1)" ], - "body": "--o-line_height-display1", - "description": "一级数据展示: 一级数据展示[light: 84px, dark: 84px]", + "body": "var(--o-line_height-display1)", + "description": "一级数据展示[light: 84px, dark: 84px]", "scope": "css,scss,less" }, "--o-line_height-display2": { "prefix": [ - "--o-line_height-display2" + "var(--o-line_height-display2)" ], - "body": "--o-line_height-display2", - "description": "二级数据展示: 二级数据展示[light: 76px, dark: 76px]", + "body": "var(--o-line_height-display2)", + "description": "二级数据展示[light: 76px, dark: 76px]", "scope": "css,scss,less" }, "--o-line_height-display3": { "prefix": [ - "--o-line_height-display3" + "var(--o-line_height-display3)" ], - "body": "--o-line_height-display3", - "description": "三级数据展示: 三级数据展示[light: 48px, dark: 48px]", + "body": "var(--o-line_height-display3)", + "description": "三级数据展示[light: 48px, dark: 48px]", "scope": "css,scss,less" }, "--o-line_height-display4": { "prefix": [ - "--o-line_height-display4" + "var(--o-line_height-display4)" ], - "body": "--o-line_height-display4", - "description": "四级数据展示: 四级数据展示[light: 36px, dark: 36px]", + "body": "var(--o-line_height-display4)", + "description": "四级数据展示[light: 36px, dark: 36px]", "scope": "css,scss,less" }, "--o-line_height-h1": { "prefix": [ - "--o-line_height-h1" + "var(--o-line_height-h1)" ], - "body": "--o-line_height-h1", - "description": "一级标题: 一级标题[light: 32px, dark: 32px]", + "body": "var(--o-line_height-h1)", + "description": "一级标题[light: 32px, dark: 32px]", "scope": "css,scss,less" }, "--o-line_height-h2": { "prefix": [ - "--o-line_height-h2" + "var(--o-line_height-h2)" ], - "body": "--o-line_height-h2", - "description": "二级标题: 二级标题[light: 28px, dark: 28px]", + "body": "var(--o-line_height-h2)", + "description": "二级标题[light: 28px, dark: 28px]", "scope": "css,scss,less" }, "--o-line_height-h3": { "prefix": [ - "--o-line_height-h3" + "var(--o-line_height-h3)" ], - "body": "--o-line_height-h3", - "description": "三级标题: 三级标题[light: 26px, dark: 26px]", + "body": "var(--o-line_height-h3)", + "description": "三级标题[light: 26px, dark: 26px]", "scope": "css,scss,less" }, "--o-line_height-h4": { "prefix": [ - "--o-line_height-h4" + "var(--o-line_height-h4)" ], - "body": "--o-line_height-h4", - "description": "四级标题: 四级标题[light: 24px, dark: 24px]", + "body": "var(--o-line_height-h4)", + "description": "四级标题[light: 24px, dark: 24px]", "scope": "css,scss,less" }, "--o-line_height-text": { "prefix": [ - "--o-line_height-text" + "var(--o-line_height-text)" ], - "body": "--o-line_height-text", - "description": "正文: 正文[light: 22px, dark: 22px]", + "body": "var(--o-line_height-text)", + "description": "正文[light: 22px, dark: 22px]", "scope": "css,scss,less" }, "--o-line_height-tip1": { "prefix": [ - "--o-line_height-tip1" + "var(--o-line_height-tip1)" ], - "body": "--o-line_height-tip1", - "description": "提示文本1: 提示文本1[light: 18px, dark: 18px]", + "body": "var(--o-line_height-tip1)", + "description": "提示文本1[light: 18px, dark: 18px]", "scope": "css,scss,less" }, "--o-line_height-tip2": { "prefix": [ - "--o-line_height-tip2" + "var(--o-line_height-tip2)" ], - "body": "--o-line_height-tip2", - "description": "提示文本2: 提示文本2[light: 14px, dark: 14px]", + "body": "var(--o-line_height-tip2)", + "description": "提示文本2[light: 14px, dark: 14px]", "scope": "css,scss,less" }, "--o-radius-l": { "prefix": [ - "--o-radius-l" + "var(--o-radius-l)" ], - "body": "--o-radius-l", - "description": "大尺寸圆角: 大尺寸圆角[light: 8px, dark: 8px]", + "body": "var(--o-radius-l)", + "description": "大尺寸圆角[light: 8px, dark: 8px]", "scope": "css,scss,less" }, "--o-radius-m": { "prefix": [ - "--o-radius-m" + "var(--o-radius-m)" ], - "body": "--o-radius-m", - "description": "中尺寸圆角: 中尺寸圆角[light: 4px, dark: 4px]", + "body": "var(--o-radius-m)", + "description": "中尺寸圆角[light: 4px, dark: 4px]", "scope": "css,scss,less" }, "--o-radius-s": { "prefix": [ - "--o-radius-s" + "var(--o-radius-s)" ], - "body": "--o-radius-s", - "description": "小尺寸圆角: 小尺寸圆角[light: 2px, dark: 2px]", + "body": "var(--o-radius-s)", + "description": "小尺寸圆角[light: 2px, dark: 2px]", "scope": "css,scss,less" }, "--o-duration-s": { "prefix": [ - "--o-duration-s" + "var(--o-duration-s)" ], - "body": "--o-duration-s", - "description": "持续时间: 用于退出屏幕的动画[light: 200ms, dark: 200ms]", + "body": "var(--o-duration-s)", + "description": "用于退出屏幕的动画[light: 200ms, dark: 200ms]", "scope": "css,scss,less" }, "--o-duration-m1": { "prefix": [ - "--o-duration-m1" + "var(--o-duration-m1)" ], - "body": "--o-duration-m1", - "description": "持续时间: 用于当曲线为standard-in时进入屏幕的动画[light: 250ms, dark: 250ms]", + "body": "var(--o-duration-m1)", + "description": "用于当曲线为standard-in时进入屏幕的动画[light: 250ms, dark: 250ms]", "scope": "css,scss,less" }, "--o-duration-m2": { "prefix": [ - "--o-duration-m2" + "var(--o-duration-m2)" ], - "body": "--o-duration-m2", - "description": "持续时间: 用于当曲线为standard时开始、结束的动画[light: 300ms, dark: 300ms]", + "body": "var(--o-duration-m2)", + "description": "用于当曲线为standard时开始、结束的动画[light: 300ms, dark: 300ms]", "scope": "css,scss,less" }, "--o-duration-m3": { "prefix": [ - "--o-duration-m3" + "var(--o-duration-m3)" ], - "body": "--o-duration-m3", - "description": "持续时间: 用于当曲线为emphasized-in时进入屏幕的动画[light: 400ms, dark: 400ms]", + "body": "var(--o-duration-m3)", + "description": "用于当曲线为emphasized-in时进入屏幕的动画[light: 400ms, dark: 400ms]", "scope": "css,scss,less" }, "--o-duration-l": { "prefix": [ - "--o-duration-l" + "var(--o-duration-l)" ], - "body": "--o-duration-l", - "description": "持续时间: 用于当曲线为emphasized时开始、结束的动画[light: 500ms, dark: 500ms]", + "body": "var(--o-duration-l)", + "description": "用于当曲线为emphasized时开始、结束的动画[light: 500ms, dark: 500ms]", "scope": "css,scss,less" }, "--o-duration-xl": { "prefix": [ - "--o-duration-xl" + "var(--o-duration-xl)" ], - "body": "--o-duration-xl", - "description": "持续时间: 用于当曲线为emphasized时,轮播切换动画[light: 1000ms, dark: 1000ms]", + "body": "var(--o-duration-xl)", + "description": "用于当曲线为emphasized时,轮播切换动画[light: 1000ms, dark: 1000ms]", "scope": "css,scss,less" }, "--o-easing-linear": { "prefix": [ - "--o-easing-linear" + "var(--o-easing-linear)" ], - "body": "--o-easing-linear", - "description": "线性动画曲线: 线性曲线[light: cubic-bezier(0, 0, 1, 1), dark: cubic-bezier(0, 0, 1, 1)]", + "body": "var(--o-easing-linear)", + "description": "线性曲线[light: cubic-bezier(0, 0, 1, 1), dark: cubic-bezier(0, 0, 1, 1)]", "scope": "css,scss,less" }, "--o-easing-standard": { "prefix": [ - "--o-easing-standard" + "var(--o-easing-standard)" ], - "body": "--o-easing-standard", - "description": "动画曲线: 用于组件[light: cubic-bezier(0.2, 0, 0, 1), dark: cubic-bezier(0.2, 0, 0, 1)]", + "body": "var(--o-easing-standard)", + "description": "用于组件[light: cubic-bezier(0.2, 0, 0, 1), dark: cubic-bezier(0.2, 0, 0, 1)]", "scope": "css,scss,less" }, "--o-easing-standard-in": { "prefix": [ - "--o-easing-standard-in" + "var(--o-easing-standard-in)" ], - "body": "--o-easing-standard-in", - "description": "动画曲线: 用于组件[light: cubic-bezier(0, 0, 0, 1), dark: cubic-bezier(0, 0, 0, 1)]", + "body": "var(--o-easing-standard-in)", + "description": "用于组件[light: cubic-bezier(0, 0, 0, 1), dark: cubic-bezier(0, 0, 0, 1)]", "scope": "css,scss,less" }, "--o-easing-standard-out": { "prefix": [ - "--o-easing-standard-out" + "var(--o-easing-standard-out)" ], - "body": "--o-easing-standard-out", - "description": "动画曲线: 用于组件[light: cubic-bezier(0.3, 0, 1, 1), dark: cubic-bezier(0.3, 0, 1, 1)]", + "body": "var(--o-easing-standard-out)", + "description": "用于组件[light: cubic-bezier(0.3, 0, 1, 1), dark: cubic-bezier(0.3, 0, 1, 1)]", "scope": "css,scss,less" }, "--o-easing-emphasized": { "prefix": [ - "--o-easing-emphasized" + "var(--o-easing-emphasized)" ], - "body": "--o-easing-emphasized", - "description": "动画曲线: 用于大卡片、场景切换[light: cubic-bezier(0.2, 0, 0, 1), dark: cubic-bezier(0.2, 0, 0, 1)]", + "body": "var(--o-easing-emphasized)", + "description": "用于大卡片、场景切换[light: cubic-bezier(0.2, 0, 0, 1), dark: cubic-bezier(0.2, 0, 0, 1)]", "scope": "css,scss,less" }, "--o-easing-emphasized-in": { "prefix": [ - "--o-easing-emphasized-in" + "var(--o-easing-emphasized-in)" ], - "body": "--o-easing-emphasized-in", - "description": "动画曲线: 用于大卡片、场景切换[light: cubic-bezier(0.3, 0, 0.8, 0.15), dark: cubic-bezier(0.3, 0, 0.8, 0.15)]", + "body": "var(--o-easing-emphasized-in)", + "description": "用于大卡片、场景切换[light: cubic-bezier(0.3, 0, 0.8, 0.15), dark: cubic-bezier(0.3, 0, 0.8, 0.15)]", "scope": "css,scss,less" }, "--o-easing-emphasized-out": { "prefix": [ - "--o-easing-emphasized-out" + "var(--o-easing-emphasized-out)" ], - "body": "--o-easing-emphasized-out", - "description": "动画曲线: 用于大卡片、场景切换[light: cubic-bezier(0.05, 0.7, 0.1, 1), dark: cubic-bezier(0.05, 0.7, 0.1, 1)]", + "body": "var(--o-easing-emphasized-out)", + "description": "用于大卡片、场景切换[light: cubic-bezier(0.05, 0.7, 0.1, 1), dark: cubic-bezier(0.05, 0.7, 0.1, 1)]", "scope": "css,scss,less" } } \ No newline at end of file diff --git a/packages/docs/global.md b/packages/docs/global.md index 8ff2322724e21fb4702d6945657dbf17d01e59ac..08bd4deadf95f3bde030b94aa6d69e795a52f0ac 100644 --- a/packages/docs/global.md +++ b/packages/docs/global.md @@ -23,3 +23,7 @@ | variant | fill outline text | outline | | rounded | undefined string 'pill' | undefined | | size | small normal large | normal | + +# 变量定义都在 var.scss 里,同时使用最外层内定义; + +# 不同状态通过类改变变量值,而不是新定义多个变量; diff --git a/packages/opendesign/src/components/_shared/global.ts b/packages/opendesign/src/components/_shared/global.ts index 37880a80096335fe83913ccb388016cd6f6431a6..e09958d80aa481cff9875cdf0dd67f9135ea264d 100644 --- a/packages/opendesign/src/components/_shared/global.ts +++ b/packages/opendesign/src/components/_shared/global.ts @@ -20,7 +20,7 @@ export function initRound(m: string, s: string, l: string) { // 方向 export type DirectionT = 'horizontal' | 'vertical'; -export type VariantT = 'fill' | 'outline' | 'text'; +export type VariantT = 'solid' | 'outline' | 'text'; export type ColorT = 'normal' | 'primary' | 'success' | 'warning' | 'danger'; diff --git a/packages/opendesign/src/components/button/__demo__/BtnBasic.vue b/packages/opendesign/src/components/button/__demo__/BtnBasic.vue index 86eb0e508fb6c59cb77462a2893bf53a8584cd4b..48e282c2015650cc8bc2d08dbe1587753fdf6275 100644 --- a/packages/opendesign/src/components/button/__demo__/BtnBasic.vue +++ b/packages/opendesign/src/components/button/__demo__/BtnBasic.vue @@ -6,51 +6,80 @@ import { OButton } from '../index';

color: normal

-
- Outline Button - Fill Button - Text Button -
+
+
+ Outline Button + Fill Button + Text Button +
+
+ Outline Button + Fill Button + Text Button +
+

color: primary

-
- Outline Button - Fill Button - Text Button -
+
+
+ Outline Button + Fill Button + Text Button +
+
+ Outline Button + Fill Button + Text Button +
+

color: success

-
- Outline Button - Fill Button - Text Button -
+
+
+ Outline Button + Fill Button + Text Button +
+
+ Outline Button + Fill Button + Text Button +
+

color: warning

-
- Outline Button - Fill Button - Text Button -
+
+
+ Outline Button + Fill Button + Text Button +
+
+ Outline Button + Fill Button + Text Button +
+

color: danger

-
- Outline Button - Fill Button - Text Button -
+
+
+ Outline Button + Fill Button + Text Button +
+
+ Outline Button + Fill Button + Text Button +
+
-

Disabled

-
- Outline Button - Fill Button - Text Button -

Size

diff --git a/packages/opendesign/src/components/button/__demo__/BtnIcon.vue b/packages/opendesign/src/components/button/__demo__/BtnIcon.vue index 7a3868ce1820c2ec42b8836476878a64a1645946..583110f5128471af96c901ee435ba1d87702724a 100644 --- a/packages/opendesign/src/components/button/__demo__/BtnIcon.vue +++ b/packages/opendesign/src/components/button/__demo__/BtnIcon.vue @@ -5,41 +5,41 @@ import { IconAdd } from '../../icons';