diff --git a/less/variables.less b/less/variables.less index 01dbc4f1..30f9762d 100644 --- a/less/variables.less +++ b/less/variables.less @@ -8,6 +8,7 @@ @white: #fff; @transparent: none; +@secondary-grey: #BFB8B8; @orange: #eb743b; @purple: #ba478f; @@ -22,6 +23,7 @@ @brand-info: @blue; @brand-warning: @yellow; @brand-danger: @red; +@brand-default: @secondary-grey; //== Typography @@ -80,6 +82,10 @@ @border-radius-large: 1px; @border-radius-small: 1px; +@btn-default-color: #fff; +@btn-default-bg: @secondary-grey; +@btn-default-border: #ccc; + //== Breadcrumbs // diff --git a/stories/index.stories.js b/stories/index.stories.js index b54b6f8f..a6fadb62 100644 --- a/stories/index.stories.js +++ b/stories/index.stories.js @@ -99,49 +99,56 @@ storiesOf('Breadcrumb', module) ))); storiesOf('Buttons', module) - .add('Primary Button', withInfo('')(() => ( + .add('Primary Button', withInfo('Buttons set an action in motion. Instead of using “Yes” or “Okay”, it’s better to use verbs that explain what the triggered action will be. For example, “Create new”, “Discard draft”, etc. Use the primary button when it’s the main action on a page/table. Use the smaller one in case of limited space.')(() => (
))) - .add('Secondary Button', withInfo('')(() => ( + .add('Default Button', withInfo('Default buttons are used for secondary actions. They’re usually paired with a primary button to provide an alternate choice.')(() => (
- - + +
))) - .add('Warning Button', withInfo('')(() => ( + .add('Ghost Button', withInfo('Use ghost buttons to reduce visual clutter on the screen. Take care that the actions via a ghost button are not primary actions.')(() => ( +
+ + +
+ ))) + + .add('Warning Button', withInfo('Just when you need to nudge the user’s attention to make sure they know it’s not another ordinary action, use the warning button.')(() => (
))) - .add('Danger Button', withInfo('')(() => ( + .add('Danger Button', withInfo('When the primary action is “negative” or irreversible, make use of the danger button to warn the user. For example, “Delete”, “Erase”, “Discard”, “Remove”, etc.')(() => (
))) - .add('Success Button', withInfo('')(() => ( + .add('Success Button', withInfo('The “Yay, you did it!” button. Use them for highlighting “positive” actions like “Submit”.')(() => (
))) - .add('Set of Buttons', withInfo('')(() => ( + .add('Set of Buttons', withInfo('To make clear a distinction between two options, sometimes it’s better to use different visual weights for buttons.')(() => (
- +
))) - .add('Links', withInfo('')(() => ( + .add('Links', withInfo('Links are typically used as a means of navigation either within the application, to a place outside, or to a resource. For anything else, especially things that change data, you should be using a button.')(() => (