animation
mixins
keyframes
Since 2.0.1@mixin keyframes($value) { ... }
Description
keyframe mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$value | name of animation | String | — none |
Content
This mixin allows extra content to be passed (through the @content
directive).
Example
keyframes(width) {
0% {
width: 8px;
}
100% {
width: 16px;
}
}
Author
Bernhard Ruoff
animation
Since 2.0.1@mixin animation($str) { ... }
Description
keyframe animation
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$str | string for animation | String | — none |
Example
animation(width .4s infinite);
Author
Bernhard Ruoff
color-functions
functions
borderColor
Since 2.0.1@function borderColor($color1, $color2) { ... }
Description
color function to automatically generate a harmonic border-color based on two colors
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$color1 | first color | Variable | — none |
$color2 | second color | Variable | — none |
Example
border-color: borderColor($background, $text) // returns #555555
Throws
Sorry, but
#{$color1}
is equal to#{$color2}
.
Author
Bernhard Ruoff
flattenColor
Since 4.0.0@function flattenColor($foreground, $background: getColor(background)) { ... }
Description
Mixes a color with another color, considering its opacity
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$foreground | color to be flattened | Color | — none |
$background | background-color | Color | getColor(background) |
Returns
Color
—$flatColor - flattened color without opacity
Example
color: flattenColor(rgba(black, .2);
Requires
Author
Bernhard Ruoff
getColor
Since 3.0.10@function getColor($color) { ... }
Description
Easily retrieve colors for use.
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$color | Name of the color | String | — none |
Returns
Color
—Value of the color
Example
color: getColor(text, invert);
color: getColor(link);
Used by
Author
Bernhard Ruoff
setColor
Since 2.1.5@function setColor($color, $setDark: #000, $setLight: #fff) { ... }
Description
sets color based on luminosity of another color
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$color | Name of base color | Color | — none |
$setDark | Name of dark color | Color | #000 |
$setLight | Name of light color | Color | #fff |
Returns
Color
—value of $setLight or $setDark
Example
color: setColor(#222222); // returns #fff
Requires
Author
Bernhard Ruoff
setLightness
Since 2.0.1@function setLightness($color, $value) { ... }
Description
set lightness of a color to a specific value
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$color | Name of base color | Color | — none |
$value | lightness value | Color | — none |
Returns
Color
—value with new value for lightness
Example
color: setLightness(#E51F00, 100); // returns #ff2200
Author
Bernhard Ruoff
setSaturation
Since 2.0.1@function setSaturation($color, $value) { ... }
Description
set saturation of a color to a specific value
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$color | Name of base color | Color | — none |
$value | saturation value | Color | — none |
Returns
Color
—value with new saturation value
Example
color: setSaturation(#E51F00, 40); // returns #E5968A
Author
Bernhard Ruoff
systemColor
Since 2.0.1@function systemColor($target, $colors: $link $super $minor $highlight) { ... }
Description
generate color based on a set of colors
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$target | name of target color | Color | — none |
$colors | string of colors | String | $link $super $minor $highlight |
Returns
Color
—color with harmonic lightness and saturation
Example
color: systemColor(#00E676); // returns a color with a hue value of 151
Requires
- [variable]
target
Author
Bernhard Ruoff
triad
Since 2.0.1@function triad($base-color, $nth) { ... }
Description
generate two additional colors based on triad color harmony
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$base-color | Name of base-color | Color | — none |
$nth | selector for color | 1 or 2 or 3 | — none |
Returns
Color
—return nth triad-color for base-color
Example
color: triad(#5FEFBF, 2); // returns #bf5fef
Author
Michael Locher
varColor
Since 2.0.1@function varColor($source, $amount) { ... }
Description
generate darker or lighter variation
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$source | source color | Color | — none |
$amount | positive or negative number for color transformation | Number | — none |
Returns
Color
—color variation
Example
color: varColor(#ff0000, 20); // returns color: #fe6e67;
Requires
- [variable]
hue
- [variable]
hue
- [variable]
lightness
- [variable]
lightness
- [variable]
sat
- [variable]
sat
- [variable]
hueRatio
- [variable]
amount
- [variable]
hueRatio
- [variable]
satRatio
- [variable]
amount
- [variable]
satRatio
- [variable]
target
- [variable]
target
- [variable]
alpha
- [variable]
alpha
- [variable]
alpha
- [variable]
amount
- [variable]
amount
- [variable]
target
- [variable]
amount
- [variable]
amount
- [variable]
satTransform
- [variable]
satTransform
- [variable]
amount
- [variable]
satRatio
- [variable]
hueTransform
- [variable]
hueTransform
- [variable]
amount
- [variable]
hueRatio
- [variable]
lightness
- [variable]
sat
- [variable]
lightness
- [variable]
sat
- [variable]
hue
- [variable]
hue
- [variable]
hueTransform
- [variable]
hue
- [variable]
hue
- [variable]
hueTransform
- [variable]
hue
- [variable]
hue
- [variable]
hueTransform
- [variable]
hue
- [variable]
hue
- [variable]
hueTransform
- [variable]
hue
- [variable]
hue
- [variable]
hueTransform
- [variable]
hue
- [variable]
hue
- [variable]
hueTransform
- [variable]
target
- [variable]
satTransform
- [variable]
amount
- [variable]
amount
- [variable]
amount
- [variable]
amount
- [variable]
amount
- [variable]
satTransform
- [variable]
satTransform
- [variable]
amount
- [variable]
satRatio
- [variable]
hueTransform
- [variable]
hueTransform
- [variable]
amount
- [variable]
hueRatio
- [variable]
lightness
- [variable]
sat
- [variable]
lightness
- [variable]
sat
- [variable]
hue
- [variable]
hue
- [variable]
hueTransform
- [variable]
hue
- [variable]
hue
- [variable]
hueTransform
- [variable]
hue
- [variable]
hue
- [variable]
hueTransform
- [variable]
hue
- [variable]
hue
- [variable]
hueTransform
- [variable]
hue
- [variable]
hue
- [variable]
hueTransform
- [variable]
hue
- [variable]
hue
- [variable]
hueTransform
- [variable]
target
- [variable]
satTransform
- [variable]
amount
- [variable]
target
Links
Author
Bernhard Ruoff
variables
hue
Since 2.0.1$hue: hue($source);
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$hue: | hue value of source color | Value | — none |
Used by
- [function]
setColor
- [function]
setColor
- [function]
setColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [mixin]
set-colors
Author
Bernhard Ruoff
lightness
Since 2.0.1$lightness: lightness($source);
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$lightness: | lightness value of source color | Value | — none |
Used by
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
Author
Bernhard Ruoff
sat
Since 2.0.1$sat: saturation($source);
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$sat: | saturation value of source color | Value | — none |
Used by
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
Author
Bernhard Ruoff
hueRatio
Since 2.0.1$hueRatio: .15;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$hueRatio: | ratio for increasing or decreasing hue based on $amount | Number | — none |
Used by
Author
Bernhard Ruoff
satRatio
Since 2.0.1$satRatio: .66;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$satRatio: | ratio for increasing or decreasing saturation based on $amount | Number | — none |
Used by
Author
Bernhard Ruoff
target
Since 2.0.1$target: null;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$target: | target color value | Value | — none |
Used by
- [function]
systemColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
Author
Bernhard Ruoff
alpha
Since 2.0.1$alpha: alpha($source);
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$alpha: | alpha color value | Value | — none |
Used by
- [function]
flattenColor
- [function]
flattenColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
Author
Bernhard Ruoff
satTransform
Since 2.0.1$satTransform: $amount * $satRatio;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$satTransform: | value for desaturation | Value | — none |
Used by
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
Author
Bernhard Ruoff
hueTransform
Since 2.0.1$hueTransform: $amount * $hueRatio;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$hueTransform: | value for hue adjustment | Value | — none |
Used by
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
Author
Bernhard Ruoff
amount
Since 2.0.1$amount: $amount * -1;
Description
make value of $amount positive for transformation
Used by
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
- [function]
varColor
Author
Bernhard Ruoff
satTransform
Since 2.0.1$satTransform: $amount * $satRatio;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$satTransform: | value for desaturation | Value | — none |
Author
Bernhard Ruoff
hueTransform
Since 2.0.1$hueTransform: $amount * $hueRatio;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$hueTransform: | value for hue adjustment | Value | — none |
Author
Bernhard Ruoff
csss
/// @prop
Since 2.0.1/// @prop { ... }
Description
if $amount is positive color transformation to lighter and less saturated. also the hue is transformed depending on its value
Author
Bernhard Ruoff
/// make value of $amount positive for transformation $amount: $amount * -1; /// @prop
Since 2.0.1/// make value of $amount positive for transformation
$amount: $amount * -1;
/// @prop { ... }
Description
if $amount is negative color transformation to darker and more saturated. also the hue is transformed depending on its value
Author
Bernhard Ruoff
grid
csss
[data-flex]
Since 3.0.6[data-flex] { ... }
Author
Bernhard Ruoff
[data-flex]
Since 3.0.6[data-flex] { ... }
Author
Bernhard Ruoff
[data-col]
Since 3.0.0[data-col] { ... }
Author
Bernhard Ruoff
[data-row]
Since 3.0.0[data-row] { ... }
Author
Bernhard Ruoff
mixins
flex-order
Since 3.0.6@mixin flex-order() { ... }
Parameters
None.
Author
Bernhard Ruoff
container
Since 3.0.0@mixin container() { ... }
Parameters
None.
Requires
- [variable]
grid-container-width
- [variable]
grid-gutter
- [variable]
grid-gutter
Author
Bernhard Ruoff
layout
variables
bp-xs
$bp-xs: 0 !default;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$bp-xs | smartphone | Number | 0 |
bp-sm
$bp-sm: 480px !default;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$bp-sm | smartphone landscape | Number | 480px |
bp-md
$bp-md: 720px !default;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$bp-md | tablet portrait | Number | 720px |
bp-lg
$bp-lg: 1024px !default;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$bp-lg | Tablet landscape | Number | 1024px |
bp-xl
$bp-xl: 1280px !default;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$bp-xl | Desktop | Number | 1280px |
bp-xxl
$bp-xxl: 1920px !default;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$bp-xxl | Large screens | Number | 1920px |
bp-xs-max
$bp-xs-max: ($bp-sm - 1) !default;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$bp-xs-max | — none | Number | $bp-sm - 1 |
bp-sm-max
$bp-sm-max: ($bp-md - 1) !default;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$bp-sm-max | — none | Number | $bp-md - 1 |
bp-md-max
$bp-md-max: ($bp-lg - 1) !default;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$bp-md-max | — none | Number | $bp-lg - 1 |
bp-lg-max
$bp-lg-max: ($bp-xl - 1) !default;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$bp-lg-max | — none | Number | $bp-xl - 1 |
bp-xl-max
$bp-xl-max: ($bp-xxl - 1) !default;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$bp-xl-max | — none | Number | $bp-xxl - 1 |
root-size
$root-size: 16;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$root-size | default size used for global size calculations | Number | 16 |
Used by
grid-container-width
$grid-container-width: 1200px !default;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$grid-container-width | max-width of container | Number | 1200px |
Used by
- [mixin]
container
grid-gutter
$grid-gutter: 32 !default;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$grid-gutter | gutter size in pixels without unit | Number | 32 |
Used by
outer-gutter
$outer-gutter: true !default;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$outer-gutter | sets an outer gutter of ($grid-gutter / 2) | Value | true |
grid-num-columns
$grid-num-columns: 12 !default;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$grid-num-columns | number of columns in a row | Number | 12 |
base-padding
$base-padding: 16;
Map structure
key Name | key Description | key Type | key Value |
---|---|---|---|
$base-padding | small padding value for padding helper | Number | 16 |
mixins
data-col-bp
Since 3.0.9@mixin data-col-bp($name) { ... }
Description
mixin to generate breakpoints for data-col values
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$name | name of value | Value | — none |
Content
This mixin allows extra content to be passed (through the @content
directive).
Example
data-col-bp(name) {
/*some content*/
}
Author
Bernhard Ruoff
data-flex-bp
Since 3.0.9@mixin data-flex-bp($name) { ... }
Description
mixin to generate breakpoints for data-flex values
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$name | name of value | Value | — none |
Content
This mixin allows extra content to be passed (through the @content
directive).
Example
data-flex-bp(name) {
/*some content*/
}
Author
Bernhard Ruoff
hide
Since 3.0.0@mixin hide() { ... }
Parameters
None.
Author
Bernhard Ruoff
show
Since 3.0.0@mixin show() { ... }
Parameters
None.
Author
Bernhard Ruoff
resets
mixins
appearance
Since 2.0.1@mixin appearance($value) { ... }
Description
appearance mixin
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$value | — none | Normal or Icon or Window or Button or Menu or Field or None | — none |
Example
button {
@include appearance(none);
}
Author
Bernhard Ruoff
size-functions
functions
em
Since 2.0.1@function em($value, $base: $root-size) { ... }
Description
Converts a px value into a em value
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$value | value in pixels | Number | — none |
$base | 16 !default | Number | $root-size |
Returns
Number
—Value in em
Example
font-size: em(16); // returns 1em
line-height: em(24, 12); // returns 2em
Requires
- [variable]
root-size
Used by
- [mixin]
macro-metrics
Author
Bernhard Ruoff
nearest
Since 3.0.5@function nearest($base, $multiplier, $divider: 2) { ... }
Description
Use this function calculate a value that is dividable by a certain value.
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$base | base value | Number | — none |
$multiplier | value of the multiplier | Number | — none |
$divider | value of the divider | Number | 2 |
Returns
Number
—Value, which is dividable by the $divider
Author
Bernhard Ruoff
rem
Since 2.0.1@function rem($value, $base: $root-size) { ... }
Description
Converts a px value into a rem value
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$value | value in pixels | Number | — none |
$base | 16 !default | Number | $root-size |
Returns
Number
—Value in rem
Example
width: rem(32); // returns 2rem
Requires
- [variable]
root-size
Used by
- [mixin]
macro-metrics
- [mixin]
macro-metrics
- [mixin]
macro-metrics
- [mixin]
macro-metrics
- [mixin]
macro-metrics
- [mixin]
macro-metrics
- [mixin]
macro-metrics
- [mixin]
macro-metrics
Author
Bernhard Ruoff
[private] trump
Since 2.0.1@function trump($vote: 3, $wall: null) { ... }
Description
function to make america a fraction of 100% great again!
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$vote | divider | Number | 3 |
$wall | see for yourself | String | null |
Returns
Number
—Value in %
Author
Bernhard Ruoff
styling
mixins
background-size
Since 2.0.1@mixin background-size($var) { ... }
Description
cross-browser mixin for background-size
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$var | — none | Auto or Length or Cover or Contain or Initial or Inherit | — none |
Author
Bernhard Ruoff
border-radius
Since 2.0.1@mixin border-radius($radius) { ... }
Description
cross-browser mixin for border-radius
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$radius | can be multiple arguments | Value | — none |
Author
Bernhard Ruoff
box-shadow
Since 2.0.1@mixin box-shadow($value) { ... }
Description
cross-browser mixin for box-shadow
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$value | can be multiple arguments | Value | — none |
Example
box-shadow(0 4px 16px rgba(black, .2), 0 4px 32px rgba(red, .1));
Author
Bernhard Ruoff
macro-metrics
Since 4.0.0@mixin macro-metrics($font-size, $line-height, $min-height, $border: null) { ... }
Description
mixin for precise macro element sizing
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$font-size | font-size of element | Number | — none |
$line-height | line-height of element | Number | — none |
$min-height | min-height of element | Number | — none |
$border | size of element border | Number | null |
Content
This mixin allows extra content to be passed (through the @content
directive).
Requires
- [function]
em
- [function]
rem
- [function]
rem
- [function]
rem
- [function]
rem
- [function]
rem
- [function]
rem
- [function]
rem
- [function]
rem
Author
Bernhard Ruoff
General
functions
gcd
@function gcd() { ... }
Parameters
None.
Links
luma
@function luma() { ... }
Parameters
None.
Example
color: text-contrast(#B0C4DE);
Requires
Links
convert-angle
@function convert-angle($value, $unit) { ... }
Description
Convert angle
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$value | Value to convert | Number | — none |
$unit | Unit to convert to | String | — none |
Returns
Number
—Converted angle
Used by
- [function]
legacy-direction
Author
Chris Eppstein
is-direction
@function is-direction($value) { ... }
Description
Test if $value
is an angle
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$value | Value to test | Any | — none |
Returns
Bool
Used by
- [function]
legacy-direction
- [mixin]
linear-gradient
legacy-direction
@function legacy-direction($value) { ... }
Description
Convert a direction to legacy syntax
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$value | Value to convert | Keyword or Angle | — none |
Requires
- [function]
is-direction
- [function]
convert-angle
Used by
- [mixin]
linear-gradient
- [mixin]
linear-gradient
- [mixin]
linear-gradient
- [mixin]
linear-gradient
variables
rgba
$rgba: red($color), green($color), blue($color);
Description
Adapted from: https://gist.github.com/voxpelli/6304812
Used by
mixins
linear-gradient
@mixin linear-gradient($direction, $color-stops...) { ... }
Description
Mixin printing a linear-gradient as well as a plain color fallback and the -webkit-
prefixed declaration
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$direction | Linear gradient direction | String or List or Angle | — none |
$color-stops | List of color-stops composing the gradient | Arglist | — none |
Requires
- [function]
is-direction
- [function]
legacy-direction
- [function]
legacy-direction
- [function]
legacy-direction
- [function]
legacy-direction
set-colors
Since 4.0.0@mixin set-colors($color, $hue: $color) { ... }
Description
sets background-color and matching text-color with
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$color | color value | Color | — none |
$hue | color value for hue orientation | Color | $color |
Example
include set-colors(getColor(link));
Requires
- [variable]
hue
Author
Bernhard Ruoff
setText
Since 3.0.5since 4.0.0
@mixin setText($color) { ... }
Description
sets background-color and matching text-color with
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$color | color map values | String | — none |
Example
include setText(base, super);
Requires
Author
Bernhard Ruoff