Bulma: add class "is-secondary"

Created on 26 Oct 2018  路  6Comments  路  Source: jgthms/bulma

It is a feature request about Bulma CSS framework.

Could you evaluate to add the class "is-secondary"?
It should be helpful in this case:

<form>
[...]
<div class="field is-grouped">
  <div class="control">
    <button class="button is-primary">Submit</button>
  </div>
  <div class="control">
    <button class="button is-secondary">Cancel</button>
  </div>
</div>
</form>

Best regards,
Paolo

stale

Most helpful comment

You can already easily add this secondary colour by customising the colours. In my charity project I am using the following:

$secondary: #8BC91D;
$secondary-invert: findColorInvert($secondary) !default;

$custom-colors: (
    "secondary":($secondary, $secondary-invert),
);

All 6 comments

What color would that be?

I would think an arbitrary one, much like Primary is.
Most brands have a supportive brand colour that isn't directly tied to something functional (like danger, info, success, etc) but still stands out to the user.

From a UX perspective it also adds a granularity to the available call-to-actions on a page.

That said, it's easily done using the customisation methods described and merging the custom colours with the default colours.

What color would that be?

the default color could be $grey-lighter

You can already easily add this secondary colour by customising the colours. In my charity project I am using the following:

$secondary: #8BC91D;
$secondary-invert: findColorInvert($secondary) !default;

$custom-colors: (
    "secondary":($secondary, $secondary-invert),
);

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

The $custom-colors is really helpful 馃憤 Should be included in the documentation!

Was this page helpful?
0 / 5 - 0 ratings