← Documentation home

SassDoc API reference

Generated from /// comments in the SCSS source.

Effects

em.oji

css · scss/element/_emoji.scss:24

Emoji are ideograms and smileys used in electronic messages and web pages. Emoji exist in various genres.

Filters

.filter.aden

css · scss/filters/_aden.scss:5

Aden is famous for its retro, pastel-y look, which works great if you need to soften harsh lights.

.filter.amaro

css · scss/filters/_amaro.scss:5

This filter adds more light to the center of the photo and darkens around the edges.

.filter.brannan

css · scss/filters/_brannan.scss:5

Brannan adds high contrast and exposure to your photo, giving it some stylish metallic tint. This photo effect is soft and washed out, like a photo from old granny’s album.

.filter.brooklyn

css · scss/filters/_brooklyn.scss:5

Brooklyn brightens up your image and boosts its yellow tones. Depending on the image, it can give it an ethereal look.

.filter.chessboard

css · scss/filters/_chessboard.scss:5

Chessboard effect - black and white geometric checkered pattern. Mostly best for backgrounds.

.filter.clarendon

css · scss/filters/_clarendon.scss:5

Clarendon filter will brighten the highlights found in your photos, while also making the shadows a bit bolder.

.filter.earlybird

css · scss/filters/_earlybird.scss:5

Earlybird to get a retro “Polaroid” feel with soft faded colors and a hint of yellow.

.filter.gingham

css · scss/filters/_gingham.scss:5

Gingham muddy highlights, brightness, a slight haze and a subtle warm up of the tones by carefully applying red and magenta to selected parts of the image.

.filter.hudson

css · scss/filters/_hudson.scss:5

Hudson emphasizes light in your image and gives your photos a bluish, colder feel.

.filter.inkwell

css · scss/filters/_inkwell.scss:5

Inkwell adds high contrast and also makes your photos black and white.

.filter.seventyseven

css · scss/filters/_1977.scss:5

1977 effect. As the name suggests, this filter gives you a nostalgic 70’s feel by making photos brighter as well as faded.

Other

breakpoint

mixin · scss/mixin/_breakpoint.scss:9

Return a media query for a breakpoint based on min-width.

Parameters

  • breakpoint {string} — The breakpoint name.
  • logic {string} — The logic operator.

Output: The media query.

btn-focus-helper

mixin · scss/mixin/_button.scss:11

Generate a button focus ring.

Parameters

  • type {string} — The type of the button for the color value.
  • focus {boolean} — If the focus ring should be generated.

Output: The generated focus ring.

btn-variant

mixin · scss/mixin/_button.scss:41

Generate a button variant.

Parameters

  • type {string} — The type of the button for the color value.
  • focus {boolean} — If the focus ring should be generated.

Output: The generated button variant.

btn-variant-outline

mixin · scss/mixin/_button.scss:83

Generate a button variant with outline.

Parameters

  • type {string} — The type of the button for the color value.
  • focus {boolean} — If the focus ring should be generated.

Output: The generated button variant with outline.

clear-btn

mixin · scss/mixin/_utilities.scss:80

Clear default button styles.

Output: The clear button mixin.

color

function · scss/function/_color.scss:13

Get any color value from $colors (or any) Sass map.

Parameters

  • key {string} — The key name of the color.
  • type {string} — The type of the color group (base, dark, etc.).
  • only-color {boolean} — If true, return only the color value.
  • map {map} — The map to get the color from.

Returns: color — The color value or the variable.

color-contrast

function · scss/function/_color.scss:63

Get a white or black contrast color based on perceived brightness. Thanks for David Halford for this function: https://codepen.io/davidhalford/pen/ALrbEP

Parameters

  • color {color} — The color to get the contrast color.

Returns: color — The contrast color.

color-value

function · scss/function/_color.scss:43

Get a raw color value from $colors (or any) Sass map.

Parameters

  • key {string} — The key name of the color.
  • type {string} — The type of the color group (base, dark, etc.).
  • map {map} — The map to get the color from.

Returns: color — The color value.

config

function · scss/function/_config.scss:12

Get the value of a key from a map.

Parameters

  • key {string} — The key name.
  • map {map} — The map to get the value from.
  • custom-property {boolean} — Whether to return the value as a CSS custom property.

Returns: string — The value of the key.

escaping-characters

variable · scss/config/_escaping-characters.scss:2

Characters to escape using SVG as data:image.

field-disabled

mixin · scss/mixin/_form.scss:47

Style field disabled input states.

Parameters

  • background {string} — The background color.
  • border {string} — The border color.

Output: The generated disabled input states.

field-icon

mixin · scss/mixin/_form.scss:60

Get custom icon background for input and select fields.

Parameters

  • icon {string} — The icon as an SVG string.
  • color {string} — The color.

Output: The generated icon background.

focus-ring

mixin · scss/mixin/_form.scss:15

Generate a form focus ring.

Parameters

  • type {string} — The type of focus ring (box-shadow, outline).
  • border-color {string} — The border color.
  • ring-color {string} — The ring color.
  • box-shadow-type {string} — The box shadow type (outset, inset).
  • ring-size {string} — The ring width.
  • ring-offset {string} — The ring offset.

Output: The generated focus ring.

font-face

mixin · scss/mixin/_font-face.scss:12

Generate font-face declaration.

Parameters

  • font-family {string} — The font family name.
  • src {string} — The font source.
  • font-weight {number} — The font weight.
  • font-style {string} — The font style.
  • font-display {string} — The font display.

Output: The generated font-face declaration.

font-size

function · scss/function/_font-size.scss:12

Get the font size of a key from the $font-sizes map.

Parameters

  • key {string} — The key name.
  • fluid {boolean} — Whether to return the fluid font size.
  • scaler {number} — The scaler value (15 = 15% smaller).
  • optimal-size {number} — The optimal font size.

Returns: string — The font size of the key.

form-group-stacked

mixin · scss/mixin/_form.scss:70

Create a form group stacked layout with custom breakpoint.

Parameters

  • breakpoint {string} — The breakpoint.

Output: The generated form group stacked layout.

generate-color-variables

mixin · scss/mixin/_color.scss:9

Generate color variables.

Parameters

  • colors {map} — The colors map.
  • selector {string} — The selector.

Output: The generated color variables.

generate-styles

mixin · scss/mixin/_generator.scss:10

Generate all the styles.

generate-variables

mixin · scss/mixin/_variables.scss:11

Generate CSS custom properties based on a map.

Parameters

  • map {map} — The map to generate the CSS custom properties from.
  • exclude {list} — The list of keys (or a segment of it) to exclude.
  • include {list} — The list of keys (or a segment of it) to include.

Output: The generated CSS custom properties.

get-css-variable

function · scss/function/_css-variable.scss:9

Add the prefix value to a CSS custom properties.

Parameters

  • var {string} — The name of the CSS custom property.

Returns: string — The CSS custom property with the prefix.

layout-center

mixin · scss/mixin/_layout.scss:12

Create center layout.

Parameters

  • gap {string} — The gap between the container and the content.
  • max-inline-size {string} — The maximum width (inline-size) of the container.

Output: The centered layout.

layout-flex

mixin · scss/mixin/_layout.scss:131

Create instinctive flex layout.

Parameters

  • gap {string} — The gap between the elements.
  • inline-size {string} — The width (inline size) of the elements.

Output: The instinctive flex layout.

layout-grid

mixin · scss/mixin/_layout.scss:77

Create grid layout.

Parameters

  • gap {string} — The gap between the elements.
  • minimum {string} — The minimum width (inline-size) of the elements.

Output: The grid layout.

layout-sidebar

mixin · scss/mixin/_layout.scss:101

Create sidebar layout.

Parameters

  • gap {string} — The gap between the elements.
  • inline-size {string} — The width (flex-basis) of the sidebar.

Output: The sidebar layout.

layout-stack

mixin · scss/mixin/_layout.scss:32

Create stack layout.

Parameters

  • gap {string} — The gap between the elements.
  • inline-size {boolean} — Whether it has explicit width (inline-size).
  • align {string} — The horizontal alignment of the elements.
  • important {boolean} — Whether it should use the !important keyword.

Output: The stacked layout.

responsive-font-size

function · scss/function/_font-size.scss:44

Generate responsive font-size value using clamp().

Parameters

  • size {number} — The font size.
  • scaler {number} — The scaler value (15 = 15% smaller).
  • optimal-size {number} — The optimal font size.

Returns: string — The responsive font-size value.

scrollbar

mixin · scss/mixin/_utilities.scss:51

Custom scrollbar.

Parameters

  • thumb-background-color {string} — The background color of the thumb.
  • thumb-background-color-hover {string} — The background color of the thumb when hovered.
  • track-background-color {string} — The background color of the track.
  • size {string} — The size of the scrollbar.
  • border-radius {string} — The border radius of the scrollbar.

Output: The scrollbar mixin.

selection

mixin · scss/mixin/_selection.scss:10

Set the ::selection of an element with automatic foreground color.

Parameters

  • background {color} — The background color.
  • foreground {color} — The foreground color. If null, the color will be automatically calculated.
  • is-direct {boolean} — If true, the selection will be applied to the current element if false it will be applied to its children.

Output: The selection mixin.

set-css-variable

mixin · scss/mixin/_css-variable.scss:9

Declare CSS custom properties to add the prefix.

Parameters

  • vars {map} — The CSS custom properties.

Output: Prefixed CSS custom-property declarations.

setting

function · scss/function/_setting.scss:8

Get a value from the $settings map.

Parameters

  • key {string} — The key name.

Returns: string — The value of the key.

short-ring

mixin · scss/mixin/_utilities.scss:139

Generate a focus ring.

Parameters

  • type {string} — The type of the focus ring.
  • btn-type {string} — The type - hence color - of the button.

Output: The focus ring mixin.

spacer

function · scss/function/_spacer.scss:27

Get spacer value from $spacers map.

Parameters

  • key {string} — The key name.

Returns: string — The value of the key.

spacer-clamp

function · scss/function/_spacer.scss:54

Get value returned in a clamp from $spacers maps.

Parameters

  • min {string} — The minimum value.
  • max {string} — The maximum value.
  • optimal {string} — The optimal value.

Returns: string — The value returned in a clamp.

split-values

function · scss/function/_spacer.scss:10

Split a string into a list of values.

Parameters

  • value {string} — The string to split.
  • separator {string} — The separator to split by.

Returns: list — The list of values.

svg-escape

function · scss/function/_utilities.scss:24

Escape a string to be used as a data URI.

Parameters

  • string {String} — The string to escape.

Returns: String — The escaped string.

text-ellipsis

mixin · scss/mixin/_utilities.scss:25

Crop text and display an ellipsis with multiline.

Parameters

  • number-of-lines {number} — The number of lines.

Output: The text ellipsis mixin.

transition

mixin · scss/mixin/_transition.scss:10

Generates transition related declarations.

Parameters

  • duration {string} — The duration of the transition.
  • property {string} — The property to which the transition is applied.
  • timing-function {string} — The speed curve of the transition.

Output: The generated transition declarations.

visually-hidden

mixin · scss/mixin/_utilities.scss:9

Hide something from the screen but keep it visible for assistive technology.

Output: The visually hidden mixin.

word-wrap

mixin · scss/mixin/_utilities.scss:127

Break long string.

Output: The word-wrap mixin.