Bulma – Responsiveness and Colors

Bulma Responsiveness and Colors

In this guide, we will discuss Bulma Responsiveness and Colors.

Description

Responsive design specifies that website should look good from widescreen monitors to mobile phones. Bulma is a mobile friendly development, which can be combined with large, small, and medium devices. Therefore, it is known as mobile-first framework.

By default, Bulma specifies vertical reading on mobile and includes the below points −

  • The columns will arrange in a vertical format.
  • The children of the level component will be arranged vertically.
  • The nav menu will not be visible.

Breakpoints

Bulma contains five breakpoints −

S.No.DeviceBreakpoint
1mobileup to 768px
2tabletstarts from 769px
3desktopstarts from 1024px
4widescreenstarts from 1216px
5fullhdstarts from 1408px

Bulma contains 9 responsive mixins −

S.No.MixinBreakpoint
1=mobileup to 768px
2=tabletfrom 769px
3=tablet-onlyfrom 769px to 1023px
4=touchup to 1023px
5=desktopfrom 1024px
6=desktop-onlyfrom 1024px to 1215px
7=widescreenfrom 1216px
8=widescreen-onlyfrom 1216px to 1407px
9=fullhdfrom 1408px

You can disable $widescreen and $fullhd breakpoints by setting them to false value.

//Disabling the widescreen breakpoint
$widescreen-enabled: false

//Disabling the fullhd breakpoint
$fullhd-enabled: false

Colors

Bulma elements and components contain different types of color variants with syntax .is-$color(for instance: is-info, is-success etc).

The below table shows different types of colors and their inverted values −

S.No.ColorVariableValueComputed valueInvert valueComputed invert value
1White$white$whitehsl(0, 0%, 100%)$blackhsl(0, 0%, 4%)
2Black$black$blackhsl(0, 0%, 4%)$whitehsl(0, 0%, 100%)
3Light$light$white-terhsl(0, 0%, 96%)$grey-darkerhsl(0, 0%, 21%)
4Dark$dark$grey-darkerhsl(0, 0%, 21%)$white-terhsl(0, 0%, 96%)
5Primary$primary$turquoisehsl(171, 100%, 41%)#fff#fff
6Link$link$bluehsl(217, 71%, 53%)#fff#fff
7Info$info$cyanhsl(204, 86%, 53%)#fff#fff
8Success$success$greenhsl(141, 71%, 48%)#fff#fff
9Warning$warning$yellowhsl(48, 100%, 67%)rgba(0, 0, 0, 0.7)rgba(0, 0, 0, 0.7)
10Danger$danger$redhsl(348, 100%, 61%)#fff#fff

Bulma provides grey shade between black and white for the elements as shown below −

S.No.ColorVariableValue
1Black bis$black-bishsl(0, 0%, 7%)
2Black ter$black-terhsl(0, 0%, 14%)
3Grey darker$grey-darkerhsl(0, 0%, 21%)
4Grey dark$grey-darkhsl(0, 0%, 29%)
5Grey light$grey-lighthsl(0, 0%, 71%)
6Grey lighter$grey-lighterhsl(0, 0%, 86%)
7White ter$white-terhsl(0, 0%, 96%)
8White bis$white-bishsl(0, 0%, 98%)

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply