Skip to content

Commit

Permalink
Merge pull request #173 from dani-cl-madrid/fix/improved-sucess-color…
Browse files Browse the repository at this point in the history
…-visibility-in-white-backgrounds

Improved sucess color visibility in white backgrounds
  • Loading branch information
juanmorra authored Jun 25, 2019
2 parents e265793 + 418ca66 commit 9700315
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyclops",
"version": "1.9.3",
"version": "1.9.4",
"description": "cyclops: The UI/UX Pattern Guide",
"scripts": {
"test": "gulp test",
Expand Down
6 changes: 3 additions & 3 deletions src/less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
@body-bg: #F8F9F9;
@primary-body-bg: #FFF;

@brand-success: #48D597;
@brand-success: #097A49;
@brand-info: #4288F3;
@brand-warning: #FDB630;
@brand-danger: #E43B34;
Expand Down Expand Up @@ -188,7 +188,7 @@
@btn-primary-bg: @brand-primary;

@btn-success-color: @btn-default-color;
@btn-success-bg: @brand-success;
@btn-success-bg: @brand-secondary;

@btn-danger-color: #FFF;
@btn-danger-bg: @brand-danger;
Expand Down Expand Up @@ -224,7 +224,7 @@
//== Form states and alerts
//
//## Define colors for form feedback states and, by default, alerts.
@state-success-text: #27B875;
@state-success-text: @brand-success;
@state-success-bg: #DAF5E9;
@state-success-border: darken(spin(@state-success-bg, -10), 5%); // #C6F0D6
@state-info-text: #005BED;
Expand Down
3 changes: 3 additions & 0 deletions www/views/buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ <h3><a href="#tags">Tags</a></h3>
<section class="pl-section" id="types">
<h3><a href="#types">Types</a></h3>
<p>Six different button types are available for most situations.</p>
<div class="alert alert-info">
<p>Please, limit usage of <code>btn-success</code> to dark backgrounds. </p>
</div>
<div class="pl-example">
{{> buttons/types }}
</div>
Expand Down
6 changes: 5 additions & 1 deletion www/views/icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ <h2>Sizes</h2>

<section id="color" class="pl-section">
<h2>Color</h2>
<p>Four basic colors are provided. By default, icons are the same color as text.
<p>Five basic colors are provided. By default, icons are the same color as text.
<div class="alert alert-info">
<p>Please, limit usage of <code>green</code> icons to dark backgrounds. </p>
</div>
<div class="pl-example">
{{> icons/colors }}
</div>
Expand All @@ -57,6 +60,7 @@ <h2>Color</h2>
&lt;svg class=&quot;cyclops-icon md&quot; aria-hidden=&quot;true&quot;&gt;&lt;use xlink:href=&#39;#icon-hyperscale&#39; /&gt;&lt;/svg&gt;
&lt;svg class=&quot;cyclops-icon md green&quot; aria-hidden=&quot;true&quot;&gt;&lt;use xlink:href=&#39;#icon-hyperscale&#39; /&gt;&lt;/svg&gt;
&lt;svg class=&quot;cyclops-icon md danger&quot; aria-hidden=&quot;true&quot;&gt;&lt;use xlink:href=&#39;#icon-hyperscale&#39; /&gt;&lt;/svg&gt;
&lt;svg class=&quot;cyclops-icon md warning&quot; aria-hidden=&quot;true&quot;&gt;&lt;use xlink:href=&#39;#icon-hyperscale&#39; /&gt;&lt;/svg&gt;
&lt;svg class=&quot;cyclops-icon md info&quot; aria-hidden=&quot;true&quot;&gt;&lt;use xlink:href=&#39;#icon-hyperscale&#39; /&gt;&lt;/svg&gt;
</code>
</pre>
Expand Down

0 comments on commit 9700315

Please sign in to comment.