VolkerE has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/346477 )

Change subject: [WIP] Exemplified application in mediawiki.ui
......................................................................

[WIP] Exemplified application in mediawiki.ui

Depends-on: Ibcdc2e78eb7fe72c57b384ef79be1c7c1af9facd
Change-Id: Ia3692f5a270860f9a0c67633abe2791c82a1caf0
---
M resources/src/mediawiki.less/mediawiki.ui/variables.less
1 file changed, 17 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/77/346477/1

diff --git a/resources/src/mediawiki.less/mediawiki.ui/variables.less 
b/resources/src/mediawiki.less/mediawiki.ui/variables.less
index d4937c6..0b3be9b 100644
--- a/resources/src/mediawiki.less/mediawiki.ui/variables.less
+++ b/resources/src/mediawiki.less/mediawiki.ui/variables.less
@@ -1,4 +1,6 @@
-// Colors for use in mediawiki.ui and elsewhere
+@import 'themes/theme';
+
+// Colors for use in mediawiki.ui
 
 // Although this defines many shades, be parsimonious in your own use of 
grays. Prefer
 // colors already in use in MediaWiki. Prefer semantic color names such as 
"@colorText".
@@ -20,15 +22,15 @@
 
 // Semantic background colors
 // Blue; for contextual use of a continuing action
-@colorProgressive: #36c;
-@colorProgressiveHighlight: #447ff5;
-@colorProgressiveActive: #2a4b8d;
+@colorProgressive: @color-primary;
+@colorProgressiveHighlight: @color-primary--hover;
+@colorProgressiveActive: @color-primary--active;
 // Orange; for contextual use of returning to a past action
 @colorRegressive: #ff5d00;
 // Red; for contextual use of a negative action of high severity
-@colorDestructive: #d33;
-@colorDestructiveHighlight: #ff4242;
-@colorDestructiveActive: #b32424;
+@colorDestructive: @color-destructive;
+@colorDestructiveHighlight: @color-destructive--hover;
+@colorDestructiveActive: @color-destructive--active;
 // Orange; for contextual use of a potentially negative action of medium 
severity
 @colorMediumSevere: #ff5d00;
 // Yellow; for contextual use of a potentially negative action of low severity
@@ -40,23 +42,22 @@
 @colorLightenPercentage: 13.5%;
 
 // Text colors
-@colorText: @colorGray2;
+@colorText: @color-base;
 @colorTextLight: @colorGray6;
-@colorButtonText: @colorGray2;
-@colorButtonTextHighlight: @colorGray4;
-@colorButtonTextActive: @colorGray1;
+@colorButtonText: @color-base;
+@colorButtonTextHighlight: @color-base--hover;
+@colorButtonTextActive: @color-base--active;
 @colorDisabledText: @colorGray12;
-@colorErrorText: #c00;
+@colorErrorText: @color-destructive;
 @colorWarningText: #705000;
 
 // UI colors
-@colorFieldBorder: #a2a9b1;
+@colorFieldBorder: @border-color-base;
 @colorShadow: @colorGray14;
-@colorPlaceholder: @colorGray10;
-@colorNeutral: @colorGray7;
+@colorNeutral: @color-base--subtle;
 
 // Global border radius to be used to buttons and inputs
-@borderRadius: 2px;
+@borderRadius: @border-radius-base;
 
 // Icon related variables
 @iconSize: 1.5em;

-- 
To view, visit https://gerrit.wikimedia.org/r/346477
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia3692f5a270860f9a0c67633abe2791c82a1caf0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: VolkerE <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to