Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New color system #4426

Merged
merged 8 commits into from
Jan 1, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update other colors
  • Loading branch information
afc163 committed Dec 30, 2016
commit 97123f61172503e55d8337c765b00d53acfcece1
14 changes: 7 additions & 7 deletions components/alert/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,32 +29,32 @@
}

&-success {
border: 1px solid tint(@success-color, 80%);
background-color: tint(@success-color, 90%);
border: 1px solid @green-2;
background-color: @green-1;
.@{alert-prefix-cls}-icon {
color: @success-color;
}
}

&-info {
border: 1px solid@primary-2;
border: 1px solid @primary-2;
background-color: @primary-1;
.@{alert-prefix-cls}-icon {
color: @primary-color;
}
}

&-warning {
border: 1px solid tint(@warning-color, 80%);
background-color: tint(@warning-color, 90%);
border: 1px solid @yellow-2;
background-color: @yellow-1;
.@{alert-prefix-cls}-icon {
color: @warning-color;
}
}

&-error {
border: 1px solid tint(@error-color, 80%);
background-color: tint(@error-color, 90%);
border: 1px solid @red-2;
background-color: @red-1;
.@{alert-prefix-cls}-icon {
color: @error-color;
}
Expand Down
14 changes: 7 additions & 7 deletions components/style/themes/default.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

// Color
@primary-color : @blue-6;
@success-color : #87d068;
@error-color : #f50;
@highlight-color : #f50;
@warning-color : #fa0;
@normal-color : #d9d9d9;
@success-color : @green-6;
@error-color : @red-6;
@highlight-color : @red-6;
@warning-color : @yellow-6;
@normal-color : @gray-3;

@primary-1: color(~`colorPalette("@{primary-color}", 1)`); // replace tint(@primary-color, 90%)
@primary-2: color(~`colorPalette("@{primary-color}", 2)`); // replace tint(@primary-color, 80%)
Expand Down Expand Up @@ -61,8 +61,8 @@
@ease-in-out-quint : cubic-bezier(0.86, 0, 0.07, 1);

// Border color
@border-color-base : #d9d9d9; // base border outline a component
@border-color-split : #e9e9e9; // split border inside a component
@border-color-base : @gray-5; // base border outline a component
@border-color-split : @gray-4; // split border inside a component

// Outline
@outline-blur-size : 0;
Expand Down