General
functions
tint
@function tint($color, $pct) { ... }
View sourceDescription
Lighten a color by mixing it with white
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$color | color to tint | Color | — none |
$pct | percentage of | Number | — none |
Returns
Color
—Lightened color
shade
@function shade($color, $pct) { ... }
View sourceDescription
Darken a color by mixing it with black
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$color | color to shade | Color | — none |
$pct | percentage of | Number | — none |
Returns
Color
—Darkened color
color-contrast
@function color-contrast($base, $threshold: 150, $dark: #000000, $light: #ffffff) { ... }
View sourceDescription
Function for picking color contrast using the YIQ color space
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$base | Base color | Color | — none |
$threshold | yiq lightness that indicates change from dark to light, must be between 0 and 255. | Number | 150 |
$dark | Dark contrast color | Color | #000000 |
$light | Light contrast color | Color | #ffffff |
Returns
Color
—the color with the most contrast with $base
.
strip-unit
@function strip-unit($number) { ... }
View sourceDescription
Strip the unit from a number
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$number | Number to strip unit from | Number | — none |
Returns
Number
—Unitless number
mixins
border-radius-top
@mixin border-radius-top($radius) { ... }
View sourceDescription
Top border-radius utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$radius | border-radius value | Number | — none |
border-radius-bottom
@mixin border-radius-bottom($radius) { ... }
View sourceDescription
Bottom border-radius utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$radius | border-radius value | Number | — none |
border-radius-left
@mixin border-radius-left($radius) { ... }
View sourceDescription
Left border-radius utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$radius | border-radius value | Number | — none |
border-radius-right
@mixin border-radius-right($radius) { ... }
View sourceDescription
Right border-radius utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$radius | border-radius value | Number | — none |
border
@mixin border($width: null, $style: null, $color: null) { ... }
View sourceDescription
Border utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$width |
| Number | null |
$style |
| String | null |
$color |
| Color | null |
border-top
@mixin border-top($width: null, $style: null, $color: null) { ... }
View sourceDescription
Top border utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$width |
| Number | null |
$style |
| String | null |
$color |
| Color | null |
border-bottom
@mixin border-bottom($width: null, $style: null, $color: null) { ... }
View sourceDescription
Bottom border utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$width |
| Number | null |
$style |
| String | null |
$color |
| Color | null |
border-left
@mixin border-left($width: null, $style: null, $color: null) { ... }
View sourceDescription
Left border utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$width |
| Number | null |
$style |
| String | null |
$color |
| Color | null |
border-right
@mixin border-right($width: null, $style: null, $color: null) { ... }
View sourceDescription
Right border utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$width |
| Number | null |
$style |
| String | null |
$color |
| Color | null |
flex
@mixin flex($direction: column, $justify: null, $align: null, $wrap: null) { ... }
View sourceDescription
Flex container utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$direction |
| String | column |
$justify |
| String | null |
$align |
| String | null |
$wrap |
| String | null |
inline-flex
@mixin inline-flex($direction: row, $justify: null, $align: null, $wrap: null) { ... }
View sourceDescription
Inline flex container utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$direction |
| String | row |
$justify |
| String | null |
$align |
| String | null |
$wrap |
| String | null |
flex-item
@mixin flex-item($grow: null, $shrink: null, $basis: null, $align: null) { ... }
View sourceDescription
Flex item utility mixin (for children of a flex container)
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$grow |
| Number | null |
$shrink |
| Number | null |
$basis |
| Number | null |
$align |
| String | null |
position
@mixin position($position: null, $left: null, $right: null, $top: null, $bottom: null) { ... }
View sourceDescription
Positioning utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$position |
| String | null |
$left |
| Number | null |
$right |
| Number | null |
$top |
| Number | null |
$bottom |
| Number | null |
Used by
absolute
@mixin absolute($left: null, $right: null, $top: null, $bottom: null) { ... }
View sourceDescription
Absolute positioning utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$left |
| Number | null |
$right |
| Number | null |
$top |
| Number | null |
$bottom |
| Number | null |
Requires
- [mixin]
position
fixed
@mixin fixed($left: null, $right: null, $top: null, $bottom: null) { ... }
View sourceDescription
Fixed positioning utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$left |
| Number | null |
$right |
| Number | null |
$top |
| Number | null |
$bottom |
| Number | null |
Requires
- [mixin]
position
size
@mixin size($width, $height: $width) { ... }
View sourceDescription
Element size utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$width |
| Number | — none |
$height |
| Number | $width |
max-size
@mixin max-size($width, $height: $width) { ... }
View sourceDescription
Element max size utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$width |
| Number | — none |
$height |
| Number | $width |
min-size
@mixin min-size($width, $height: $width) { ... }
View sourceDescription
Element min size utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$width |
| Number | — none |
$height |
| Number | $width |
transform
@mixin transform($transform: null, $origin: null, $style: null) { ... }
View sourceDescription
Transform utility mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$transform |
| String | null |
$origin |
| String | null |
$style |
| String | null |