@ant-design/aliyun-theme
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -5,4 +5,4 @@ declare const _default: { | ||
'@primary-color': string; | ||
'@border-radius-base': number; | ||
'@border-radius-sm': number; | ||
'@border-radius-base': string; | ||
'@border-radius-sm': string; | ||
'@text-color': string; | ||
@@ -19,5 +19,9 @@ '@text-color-secondary': string; | ||
'@border-color-split': string; | ||
'@outline-width': string; | ||
'@outline-color': string; | ||
'@input-height-lg': string; | ||
'@input-height-base': string; | ||
'@input-height-sm': string; | ||
'@input-hover-border-color': string; | ||
'@form-item-margin-bottom': string; | ||
'@btn-default-bg': string; | ||
@@ -56,3 +60,3 @@ '@btn-default-border': string; | ||
'@radio-button-checked-bg': string; | ||
'@progress-radius': number; | ||
'@progress-radius': string; | ||
'@tabs-card-gutter': string; | ||
@@ -59,0 +63,0 @@ '@tabs-card-tab-active-border-top': string; |
10
index.js
@@ -8,4 +8,4 @@ "use strict"; | ||
'@primary-color': '#0070cc', | ||
'@border-radius-base': 0, | ||
'@border-radius-sm': 0, | ||
'@border-radius-base': '0', | ||
'@border-radius-sm': '0', | ||
'@text-color': 'fade(#000, 65%)', | ||
@@ -22,5 +22,9 @@ '@text-color-secondary': 'fade(#000, 45%)', | ||
'@border-color-split': '#dedede', | ||
'@outline-width': '0', | ||
'@outline-color': '#737373', | ||
'@input-height-lg': '36px', | ||
'@input-height-base': '32px', | ||
'@input-height-sm': '24px', | ||
'@input-hover-border-color': '#737373', | ||
'@form-item-margin-bottom': '16px', | ||
'@btn-default-bg': '#fafafa', | ||
@@ -59,5 +63,5 @@ '@btn-default-border': '#dedede', | ||
'@radio-button-checked-bg': 'transparent', | ||
'@progress-radius': 0, | ||
'@progress-radius': '0', | ||
'@tabs-card-gutter': '-1px', | ||
'@tabs-card-tab-active-border-top': '2px solid @primary-color', | ||
}; |
{ | ||
"name": "@ant-design/aliyun-theme", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Ant Design Theme for Aliyun console", | ||
@@ -21,3 +21,4 @@ "main": "index.js", | ||
"compile": "npm run tsc && node scripts/generateLess.js", | ||
"test": "npm run lint && npm run tsc" | ||
"jest": "jest", | ||
"test": "npm run lint && npm run tsc && jest" | ||
}, | ||
@@ -28,2 +29,6 @@ "author": "afc163 <afc163@gmail.com>", | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.5.5", | ||
"@babel/preset-typescript": "^7.3.3", | ||
"@types/jest": "^24.0.15", | ||
"@types/less": "^3.0.0", | ||
"@types/node": "^12.6.8", | ||
@@ -35,2 +40,4 @@ "@typescript-eslint/eslint-plugin": "^1.6.0", | ||
"eslint-plugin-prettier": "^3.0.1", | ||
"jest": "^24.8.0", | ||
"less": "^3.9.0", | ||
"prettier": "^1.16.4", | ||
@@ -37,0 +44,0 @@ "typescript": "^3.4.2" |
@@ -7,4 +7,8 @@ import fs from 'fs'; | ||
interface Vars { | ||
[key: string]: string; | ||
} | ||
Object.keys(vars).forEach((key: string): void => { | ||
const value = (vars as any)[key]; | ||
const value = (vars as Vars)[key]; | ||
lessContent += `${key}: ${value};\n`; | ||
@@ -11,0 +15,0 @@ }); |
Sorry, the diff of this file is not supported yet
14801
17
242
14