Bulma: [Feature Request] Need background color helpers for elements

Created on 28 Sep 2017  路  5Comments  路  Source: jgthms/bulma



Overview of the problem

This is about the Bulma CSS framework

I'm using Bulma version [0.5.3]


Description

As per the docs, bulma.io has typography helpers for changing the font-color (such as has-text-white and has-text-primary), but doesn't have it for changing the background-color of an element. Ideally, we need classes like has-bg-white or has-bg-primary. Bootstrap already have these (they are called bg-primary, bg-danger, etc) and thus using this naming convention also makes the transition of existing bootstrap projects quite easier.

Steps to Reproduce

Expected behavior

This is a feature request.

Actual behavior

pinned

All 5 comments

Thinking the same but with the transitions

Was about to create an issue for panel/panel-heading colors, but maybe a more utility-based approach like this could help prevent repetitive bloat for panels & other components that don't rely on states. @jgthms what are your thoughts on this? If we know that this is solid idea, then myself or someone could move towards a PR.

馃憤 we need this :)

I need it too ! 馃憤

@prahladyeri You can use has-background-primary 馃槃
https://github.com/jgthms/bulma/blob/master/sass/base/helpers.sass#L105-L106

Was this page helpful?
0 / 5 - 0 ratings