| Prefix | Function | Preview |
|---|---|---|
| bds-bg | sets background color |
bds-bg-green
|
| bds-bg-lg | changes the large breakpoint background color |
bds-bg-lg-purple
|
| bds-hov-bg | changes the background color when hovered |
bds-hov-bg-orange
|
| Prefix | Function | Preview |
|---|---|---|
| bds-txt | sets the text color |
bds-txt-blue
|
| bds-hov-txt | changes the text color when hovered |
bds-hov-txt-red
|
| Prefix | Function | Preview |
|---|---|---|
| bds-border | sets a colored 1px border |
bds-border-green
|
There are a max of 3 ways to set font size:
1. Tags: h1 to h6
2. Class represention of tags: bds-h1 to bds-h6, bds-b1 to bds-b4, and bds-l1
3. Class represention of relative pixel size: bds-txt-44 to bds-txt-11 (see chart below)
|
Class Use one of the following: |
Pixels Approx | Preview |
|---|---|---|
|
h1 bds-h1 bds-txt-44 |
44px |
Heading h1 |
|
h2 bds-h2 bds-txt-40 |
40px |
Heading h2 |
|
h3 bds-h3 bds-txt-34 |
34px |
Heading h3 |
|
h4 bds-h4 bds-txt-24 |
24px |
Heading h4 |
|
h5 bds-h5 bds-txt-22 |
22px |
Heading h5 |
|
h6 bds-h6 bds-txt-20 |
20px |
Heading h6 |
|
bds-b1 bds-txt-18 |
18px |
Body b1 |
|
bds-b2 bds-txt-16 |
16px |
Body b2 |
|
bds-b3 bds-txt-14 |
14px |
Body b3 |
|
bds-b4 bds-txt-12 |
12px |
Body b4 |
|
bds-l1 bds-txt-11 |
11px |
Legal l1 |
| Class | Weight | Preview |
|---|---|---|
| bds-txt-light | Light |
bds-txt-light |
| bds-txt-regular | Regular |
bds-txt-regular |
| bds-txt-semi-bold | Semi Bold |
bds-txt-semi-bold |
| bds-txt-bold | Bold |
bds-txt-bold |
| Class | Function | Preview |
|---|---|---|
| bds-txt-left | Left align text | left |
| bds-txt-right | Right align text | right |
| bds-txt-center | Center text | center |
| bds-txt-md-[VALUE] | Set text alignment on medium breakpoint | bds-txt-md-center |
| bds-txt-lg-[VALUE] | Set text alignment on large breakpoint | bds-txt-lg-center |
| Prefixes | Function | Preview |
|---|---|---|
| bds-marg-all | Adds margin to all sides |
bds-marg-all-xs
|
| bds-marg-t | Adds margin to the top |
bds-marg-t-xs
|
| bds-marg-b | Adds margin to the bottom |
bds-marg-b-xs
|
| bds-marg-l | Adds margin to the left |
bds-marg-l-xs
|
| bds-marg-r | Adds margin to the right |
bds-marg-r-xs
|
| bds-marg-y | Adds margin to the top and bottom |
bds-marg-y-xs
|
| bds-marg-x | Adds margin to the left and right |
bds-marg-x-xs
|
| bds-marg-lg-[VALUE] | Adds margin to the large breakpoint only |
bds-marg-lg-x-xs
|
| Prefixes | Function | Preview |
|---|---|---|
| bds-pad-all | Adds padding to all sides |
bds-pad-all-xs
|
| bds-pad-t | Adds padding to the top |
bds-pad-t-xs
|
| bds-pad-b | Adds padding to the bottom |
bds-pad-b-xs
|
| bds-pad-l | Adds padding to the left |
bds-pad-l-xs
|
| bds-pad-r | Adds padding to the right |
bds-pad-r-xs
|
| bds-pad-y | Adds padding to the top and bottom |
bds-pad-y-xs
|
| bds-pad-x | Adds padding to the left and right |
bds-pad-x-xs
|
| bds-pad-lg-[VALUE] | Adds padding to the large breakpoint only |
bds-pad-lg-x-xs
|
| Prefixes | Function | Preview |
|---|---|---|
| bds-txt-left | Text align left |
bds-txt-left
|
| bds-txt-right | Text align right |
bds-txt-left
|
| bds-txt-lg-[left/right/center] | Set text align for >= lg breakpoint |
bds-txt-lg-center
|
| Prefixes | Function |
|---|---|
| relative, bds-relative |
position relative |
| bds-fixed | position fixed |
| absolute, bds-absolute |
position absolute |
| bds-tl-0 |
top: 0 left: 0 |
| bds-marg-x-auto |
margin-left: auto margin-right: auto |
| bds-x-center |
left: 50% transform: translateX(-50%) |
| bds-y-center |
top: 50%; transform: translateY(-50%); |
bds-xy-center |
top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); |
bds-width-100 | width: 100% | bds-height-100 | height: 100% |
| Prefixes | Function |
|---|---|
| bds-left | float left |
| bds-right | float right |
| clearfix | clear all floats |
| Prefixes | Function |
|---|---|
| bds-z-index-0 | z-index: 0 |
| bds-z-index-[1-5] |
z-index: 1 ... z-index: 5 |
| bds-z-index-10 | z-index: 10 |
| bds-z-index-100 | z-index: 100 |
| bds-z-index-500 | z-index: 500 |
To use flexbox, you must wrap the container with a flex display
| Prefixes | Function |
|---|---|
| bds-flex | Makes flex available. Container is displayed like a block. |
| bds-inline-flex | Makes flex available. Container is displayed like a inline-block. |
| Prefixes | Function |
|---|---|
| bds-xy-center | Vertically and horizontally centered |
| bds-y-center | Vetically centered |
- Flex order classes should be children of bds-flex.
- These flex order classes impacts content on the larger breakpoint and larger.
- These classes changes the order in which your content shows up, even if the markup setup in - HTML has it in a different order
- Always set up your content in mobile hierarchy, then use css and the order classes to change desktop.
| Prefixes | Function |
|---|---|
| bds-order-1 | Sets the content to display first on the large breakpoint |
| bds-order-[2-5] | Sets the content to displa [2nd - 5th] on the large breakpoint |
| Prefixes | Function |
|---|---|
| bds-space-between | Sets even spacing between elements |
| bds-space-around | Sets even spacing around elements |
| Breakpoint | Pixel Size |
|---|---|
| xs | up to 479px |
| s | 480px - 767px |
| md | 768px - 991px |
| lg | 992px - 1199px |
| xl | 1200px and larger |