Buttons

Interactive elements crafted to prompt user actions or communicate specific functions. Tailored to align seamlessly with HPU's branding policy, HPU buttons are meticulously styled, ensuring consistency across various states, including hover and active states, to maintain a cohesive user experience. Responsive behaviors are also available.

Default Button

Standard appearance and behavior of buttons rendered with pre-applied basic styles.

Colored Buttons

Featuring distinct background colors, enhancing their visual prominence within a user interface. HPU Colored buttons are customized with specific background hues to align with HPU's branding guidelines: .hpu-btn .btn-bg-{color-name}

Primary Colors:

Secondary Colors:

Outlined Button Styles

Button design where the button's outline is emphasized, typically by removing the background color and applying a border around the button's perimeter. On hover and active states, the buttons' background are filled depending on which color was selected.

Primary Colors:

Secondary Colors:

Blimp Buttons

Simply add the .btn-blimp class to either the solid or outlined buttons.

Primary Solid Buttons:

Secondary Outline Buttons:

Button Styles Across Other Tags

Button classes defined above can also be used for <a> and <input> tags as well.

NOTE: When using <a> tag, please add the role="button" attribute to appropriately convey its purpose to assistive devices.

Colored Buttons:

Link

Outline Buttons:

Link

Button Sizes

Button variations in the dimensions created range from small (.btn-sm) to large (.btn-lg), offering size flexibility.

Block Buttons

Create a full width button using .hpu-d-flex .flex-col wrap.

Since the block button is using .hpu-d-flex, we can make the button width to be responsive. Please refer to HPUCSS Flex Guides for usage info.

CURRENT SCREEN SIZE: xs sm md lg xl xxl

Want a block button but not full width? You can do this by utilizing .hpu-row and make it responsive with .col-{screen}-{1 - 12}. Please refer to HPUCSS Grid System for usage info.

In the example below, .hpu-mx-auto is used to center the button.

Lastly, the button will span 100% of the container width on mobile devices.

CURRENT SCREEN SIZE: xs sm md lg xl xxl

Waves Feedback

Add a wave effect feedback to every click on a button by adding .waves-effect class.

Applying colors to the waves effect is also possible! Simply use the .hpu-waves-{color} classes alongside the .waves-effect. Please refer to HPUCSS Colors for usage guides.