Utilities
Utilities are helper classes to modify components and override any existing styles.
Surfaces
This modules includes utility classes that refer to heavily visually style components. These utilities add background colors, text colors, border radius modifications and box shadows. All background color and colors listed in Settings are available.
- Shadow 1
- Border 2
- Shadow 2
- Border 3
- Shadow 3
- Border 4
Layout
Layout has utilities for max-width/width, floats, clearfix, and display.
Floated Left
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.Floated Right
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Fit
Object Fit utilities for cover
, contain
and position.
Cover / Center Top
Cover / Center Bottom
Cover / Center Center
Contain
Fill
Positioning
Position includes utilities for position, overflow and z-index.
/*
Positioning Utilities
Z-Index..........Small collection of common z-index values
Overflow.........General, X and Y
Position.........Absolute, Static, Fixed, Relative
*/
/*----------Z-Index Utilities----------*/
.u-z-n1 { z-index: -1; }
.u-z0 { z-index: 0; }
.u-z1 { z-index: 1; }
.u-z2 { z-index: 2; }
.u-z3 { z-index: 3; }
.u-z4 { z-index: 4; }
.u-z5 { z-index: 5; }
.u-z6 { z-index: 6; }
.u-z7 { z-index: 7; }
.u-z8 { z-index: 8; }
.u-z9 { z-index: 9; }
.u-zX { z-index: 10; }
.u-z--n { z-index: -1; }
.u-z--b { z-index: 0; }
.u-z--m { z-index: 500; }
.u-z--t { z-index: 999; }
/*----------Overflow Utilities----------*/
.u-ov--none { overflow: none; }
.u-ov--vis { overflow: visible; }
.u-ov--hid { overflow: hidden; }
.u-ov--sc { overflow: scroll; }
.u-ovx--none { overflow-x: none; }
.u-ovx--vis { overflow-x: visible; }
.u-ovx--hid { overflow-x: hidden; }
.u-ovx--sc { overflow-x: scroll; }
.u-ovy--none { overflow-y: none; }
.u-ovy--vis { overflow-y: visible; }
.u-ovy--hid { overflow-y: hidden; }
.u-ovy--sc { overflow-y: scroll; }
/*----------Position Utilities----------*/
.u-absolute { position: absolute; }
.u-fixed { position: fixed; }
.u-static { position: static; }
.u-relative { position: relative; }
.u-tblr {
top: 0;
bottom: 0;
left: 0;
right: 0;
}
Spacing
This module contains utilities for responsive margin and padding. This is an adapted from Basscss. (This example is best viewed on desktop to see the real effects of the spacing in context)
key | value |
---|---|
m | margin |
p | padding |
x | left & right |
y | top & bottom |
a | auto |
l | left |
r | right |
t | top |
b | bottom |
Typography
Utilities for text-alignment, font weights, line-height, letter-spacing, rendering, text columns and text-transform.
Aligned Left
Aligned Center
Aligned Right
Font Weight 700 and Letter Spaced by 5px
Reponsive Text Columns
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloremque quaerat, laudantium est temporibus inventore cum, vero repudiandae et veniam quia debitis amet architecto quam necessitatibus mollitia laboriosam natus sint, sunt.
Culpa tempore, ipsum minus harum non saepe reiciendis pariatur delectus? Ut cum, voluptatem voluptatibus soluta commodi odio id, libero quia minus facilis distinctio, obcaecati aliquam debitis sed optio rem quae.
Quas pariatur cupiditate magni natus ab saepe velit deleniti earum quidem vero commodi quis, libero nostrum quisquam officiis eos nam sunt voluptatem consequatur inventore, perspiciatis recusandae eligendi maiores tenetur. Totam.
Impedit molestias soluta incidunt modi possimus suscipit non, consectetur expedita quaerat recusandae dolores vero labore culpa numquam excepturi est voluptatum maiores fugiat nostrum! Placeat doloremque harum molestias, quaerat, delectus deserunt.