Components

Component utility classes are reusable, responsive and flexible for various use cases.

Button


Buttons come in three sizes and button variations such as btn-primary's default color can be overridden by setting new property values in the :root of your custom css file.

Class value Property/Customizable style
btn-sm height: 32px
padding: 0 16px
btn-md height: 40px
padding: 0 24px
btn-lg height: 48px
padding: 0 32px
btn-primary border-radius: var(--btn-primary-border-radius, $rounded)
color: var(--btn-primary-text, $white)
background: var(--btn-primary-bg, $blue-300)
btn-primary (hover) color: var(--btn-primary-text-hover, $white)
background: var(--btn-primary-bg-hover, $blue-500)
btn-secondary border: var(--btn-secondary-border, 1px solid $gray-500)
border-radius: var(--btn-secondary-border-radius, $rounded)
color: var(--btn-secondary-text, $gray-500)
btn-secondary (hover/active state) background: var(--btn-secondary-bg-hover, $gray-500)
color: var(--btn-secondary-text-hover, $white)
link-underline color: var(--link-underline-text, $gray-500)
border-bottom: var(--link-underline-border, 2px solid $gray-500)
link-underline (hover/active state) color: var(--link-underline-text-hover, $blue-300)
border-bottom: var(--link-underline-border, 2px solid $blue-300)
<button class="btn-primary btn-md">btn-primary md</button>
<a class="link-underline">link-underline</a>

CSS customization

To override the default settings of the buttons, simply set a new style for the button property values in your custom CSS file. View the example below:

// Your Custom CSS File
:root {
  --btn-primary-bg: (your custom background-color);
  --btn-primary-bg-hover: (your custom hover background-color);
  --btn-primary-border-radius: (your custom border-radius);
  --btn-primary-text: (your custom color)
  --btn-secondary-border: (your custom border color);
  --btn-secondary-border-radius: (your custom border-radius);
  --btn-secondary-text: (your custom color);
  --btn-secondary-bg-hover: (your custom background color);
  --btn-secondary-text-hover: (your custom color);
  --link-underline-text: (your custom color);
  --link-underline-border: (your custom border color);
  --link-underline-hover: (your custom color);
  --link-underline-border-hover: (your customer border color);
}

Input


Class value Property style
input-sm height: 32px
padding: 0 8px
input-md height: 40px
padding: 0 8px
input-lg height: 48px
padding: 0 8px
<input class="input-sm">

Tabs

Tabs are great for organizing content and consist of two parts: tab-menu and its corresponding content, tab-contents. To match the tab link to its content, simply use the same value for the data-tab as shown below. Override the default color of the tab menu links by setting a new property value in the :root of your custom CSS file.


Class value Applies to Customizable style
tab-menu menu container -
tab-menu menu link active color: var(--tab-link, $blue-300)
border-bottom: var(--tab-link-border-bottom, 2px solid $blue-300)
tab-contents container for content -

tab-content #1

Donec ullamcorper nulla non metus auctor fringilla. Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Maecenas sed diam eget risus varius blandit sit amet non magna. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur rdata-tabiculus mus. Etiam porta sem malesuada magna mollis euismod.

tab-content #2

Donec ullamcorper nulla non metus auctor fringilla. Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Maecenas sed diam eget risus.

tab-content #3

Donec ullamcorper nulla non metus auctor fringilla. Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellusac cursus commodo.

<!-- Tab menu container -->
<div class="tab-menu">
  <a data-tab="one">tab-menu #1</a>
  ...
</div>

<!-- Tab contents container -->
<div class="tab-contents">
  <div data-tab="one">tab-content #1</div>
  ...
</div>
// Your Custom CSS File
:root {
  --tab-menu: (your custom menu color);
  --tab-menu-border-bottom: (your custom menu border color);
}

Accordion


The accordion component provides a way to organize content by topic and consists of two parts: the button takes on the class accordion and plus sign plus and the content which takes on the class accordion-content. The accordion is responsive and stacked vertically by default.

Class value Applies to Customizable style
accordion button background-color: var(--accordion-bg, $gray-100)
accordion button active background-color: var(--accordion-bg-active, $gray-200)
plus button -
accordion-content content -
accordion content 1
accordion content 2
<button class="accordion">accordion 1<div class="plus"></div></button>
<div class="accordion-content">accordion content 1</div>
// Your Custom CSS File
:root {
  --accordion-bg: (your custom accordion color);
  --accordion-bg-active: (your custom accordion active color);
}

Horizontal Scroll


The horizontal scroll component is useful for displaying collection of items for ecommerce application and works with touch, click and drag. Use the scrollX utility class to enable the horizontal scroll.

Class value Applies to
scrollX container for horizontal scroll
item 1
item 2
item 3
item 4
item 5
item 6
<!-- Horizontal scroll container -->
<div class="scrollX">

  <!-- Set min width and layout items horizontally -->
  <div class="d-flex gap-flex-col-1 width-min-xl">
    <div class="d-grid d-justify-center d-content-center col-2 bg-blue-100 rounded">item 1</div>
    ...
  </div>
</div>