Awesome
Quantum CSS
“Everything should be made as simple as possible, but no simpler.” – Albert Einstein <sup>1</sup>
Preface
Quantum CSS is an atomic CSS library written in SCSS.
You won’t need to write any CSS rules and media queries while using Quantum CSS. Creating highly responsive UIs becomes pleasure while extension pattern provides means of controlled customization. You can create molecules with avaialble atoms using @extend
.
Here is a sample button component with rounded corners, hover and focus transition animations (which are disabled on small screens to provide better experience on touch devices):
<button class="btn btn-fb" type="button">
<!-- Content -->
</button>
.btn {
@extend .px15, .h40; // Size
@extend .bds-s, .bdw1, .bdr5; // Border style solid, border width 1px and rounded corners
@extend .trp-c, .trd200ms; // Color transitions
&-fb { @extend .bgc-fb, .c-w, .bdc-tt, .SM_bgc-dfb-hf } // Facebook
&-tw { @extend .bgc-tw, .c-w, .bdc-tt, .SM_bgc-dtw-hf } // Twitter
}
Benefits of using @extend
approach:
-
Highly standardized styles. Limited amount of building blocks allows you to have more order in your design.
-
Stylesheet compilation time errors. Build fails if unknown atoms are used.
-
Easy to remember class names. Atoms naming convention was heavily inspired by Emmet, and most of the time abbreviations are first letters of words that property or value names consist of.
Contents
-
Background
background-color
background-attachment
background-clip
background-image
background-origin
background-repeat
background-size
background-position
background-position-x
background-position-y
-
Border
border-color
border-top-color
border-right-color
border-bottom-color
border-left-color
border-width
border-top-width
border-right-width
border-bottom-width
border-left-width
border-style
border-top-style
border-right-style
border-bottom-style
border-left-style
border-radius
border-top-right-radius
border-top-left-radius
border-bottom-right-radius
border-bottom-left-radius
-
Flexible Box Layout
flex-direction
flex-wrap
flex-grow
flex-shrink
flex-basis
justify-content
align-items
align-content
align-self
order
-
Positioning
float
clear
position
top
right
bottom
left
z-index
-
Fonts
font-size
line-height
font-family
font-weight
font-style
font-variant
font-size-adjust
font-stretch
-webkit-font-smoothing
-moz-osx-font-smoothing
-
Transitions
transition-property
transition-duration
transition-timing-function
-
Text
letter-spacing
overflow-wrap
text-align
text-align-last
text-indent
text-decoration
text-transform
white-space
word-break
word-wrap
-
Lists and Counters
list-style
list-style-position
list-style-type
-
Box Model
box-sizing
height
width
margin
padding
overflow
overflow-x
overflow-y
-webkit-overflow-scrolling
visibility
-
Table
border-collapse
caption-side
empty-cells
table-layout
vertical-align
Naming Conventions
In Quantum CSS every class name consists of four parts in given order:
- Optional breakpoint name:
SM
,MD
etc. - Property abbreviation: <a href="#border-color"><code><b>bd</b>tc</code></a>, <a href="#border-color"><code><b>ws</b></code></a> etc.
- Value abbreviation:
w
,100p
,360d
etc. - Optional pseudo-class or pseudo-element modifier:
hf
,h
etc.
You can configure separators between each parts of class name with following variables:
-
$breakpoint-sep
define separator between breakpoint name and property abbreviation. -
$literal-sep
and$ordinal-sep
define separators that are inserted between property name and literal value abbreviation or ordinal one respectively. -
$pseudo-sep
defines separator between pseudo modifier from value abbreviation.
Value Aliases
Aliases for commonly used values:
p
→%
e
→em
x
→ex
r
→rem
d
→deg
t
→turn
These aliases are used instead of full units:
- <a href="#width"><code><b>w</b>100p</code></a> →
width: 100%
- <a href="#height"><code>SM_<b>mah</b>42</code></a> →
@media (min-width: 576px) { max-height: 42px }
Color Values
Names for colors are used fo increase readability. By default, Tango palette is used for every color-related atom. You can specify your own palette overriding variables in _variables.scss
.
Greyscale | Value |
---|
- White
w
|#fff
- Grey 15%
g1
|#eeeeec
- Grey 30%
g2
|#d3d7cf
- Grey 45%
g3
|#babdb6
- Grey 60%
g4
|#888a85
- Grey 75%
g5
|#555753
- Grey 90%
g6
|#2e3436
- Black
b
|#000
Color | Light l | Medium | Dark d |
---|
- Yellow
y
|#fce94f
|#edd400
|#c4a000
- Orange
o
|#fcaf3e
|#f57900
|#ce5c00
- Chocolate
c
|#e9b96e
|#c17d11
|#8f5902
- Green
g
|#8ae234
|#73d216
|#4e9a06
- Navy
n
|#729fcf
|#3465a4
|#204a87
- Purple
p
|#ad7f8a
|#75507b
|#5c3566
- Red
r
|#ef2929
|#cc0000
|#a40000
CSS-literal colors:
cc
→currentColor
t
→transparent
i
→inherit
Generated atom examples:
- <a href="#background-color"><code>SM_<b>bg</b>c-dg</code></a> →
background-color: #4e9a06
Dark green - <a href="#border-color"><code><b>bd</b>rc-w</code></a> →
border-right-color: white
- <a href="#color"><code>LG_<b>c</b>-b</code></a> →
color: black
Unit-less Properties
Some CSS properties are defined as unit-less, e.g. no unit suffix will be outputted:
- <a href="#line-height"><code><b>lh</b>1</code></a> →
line-height: 1
- <a href="#font-weight"><code><b>f</b>w400</code></a> →
font-weight: 400
- <a href="#opacity"><code><b>op</b>37</code></a> →
opacity: 0.37
Breakpoints
One of the most powerful features of Quantum is breakpoint-based media queries.
<a name="pseudos"></a>Pseudo-classes and Pseudo-elements
You can configure set of pseudo-classes and pseudo-elements for which atoms are generated via $pseudos
. To emit disjunction of pseudos use comma-separated list.
$pseudos: (hf: (hover, focus));
.c-w-hf:hover,
.c-w-hf:focus {
color: white;
}
Space-separated list defines selector conjunction:
$pseudos: (eh: empty hover);
.c-w-eh:empty:hover {
color: white;
}
Combine those different list types for precise class targeting:
$pseudos: (foo: (active hover, active focus));
.c-w-foo:active:hover,
.c-w-foo:active:focus {
color: white;
}
Grid System
<a name="grid-containers"></a>Containers <code><b>g</b></code>
As well as in Bootstrap Containers are the most basic layout element and are required when using grid system. Use <code><b>g</b>-f</code> to create a fixed-width centered responsive layout of columns.
While containers can be nested, most layouts do not require a nested container.
<div class="g g-f">
<!-- Fixed-width grid conteiner -->
</div>
Widths of fixed-width container are stored in $grid-widths
.
<a name="grid-rows"></a>Rows <code><b>g</b>r</code>
Rows are horizontal groups of columns that ensure your columns are lined up properly.
<div class="g g-f">
<div class="gr">
<!-- Place columns here -->
</div>
</div>
<a name="grid-columns"></a>Columns <code><b>g</b>c</code>
Content should be placed within columns, and only columns may be immediate children of rows.
Column classes indicate the number of columns you’d like to use out of the possible 12 per row. So if you want three equal-width columns, you’d use <code>SM_<b>g</b>c4</code>. You can change number of columns in grid altering $grid-col-count
.
Column widths are set in percentages, so they’re always fluid and sized relative to their parent element.
Columns have horizontal padding to create the gutters between individual columns. Gutters can be configured per every breakpoint via $grid-gutters
.
<div class="g g-f">
<div class="gr">
<div class="gc12 SM_gc6">
<!-- Place content here -->
</div>
</div>
</div>
Column Ordering
In addition to column clearing at responsive breakpoints, you may need to reset offsets, pushes, or pulls.
Move columns to the right using <code>[<a href="#breakpoints">breakpoint</a>_]<b>g</b>o(0…12/1)</code> classes. These classes increase the left margin of a column by specified number of columns. For example, MD_go4
moved MD_gc4
over four columns.
Change the order of columns by relatively shifting them to the left with <code>[<a href="#breakpoints">breakpoint</a>_]<b>g</b>sl(0…12/1)</code> or to the right with <code>[<a href="#breakpoints">breakpoint</a>_]<b>g</b>sr(0…12/1)</code> classes.
<div class="g g-f">
<div class="gr">
<div class="gc12 SM_gc6 SM_go3">
<!-- Place content here -->
</div>
</div>
</div>
Atom Index
Values for each atom are listed in the order they are listed in generated CSS.
Name Pattern
(1…10/2)
Range of possible values from1
to10
with step2
.[breakpoint_]
and[-pseudo]
Optional breakpoint and pseudo-element or pseudo-class.{key}
and{value}
Placeholders for map key and map value.
Example [breakpoint_]fw(100…900/100)
expands to fw100
, fw200
… SM_fw100
, SM_fw200
… LG_fw900
.
Background
background-color
<code>[<a href="#breakpoints">breakpoint</a>_]<b>bg</b>c{key}[-<a href="#pseudos">pseudo</a>]</code> → background-color: {value}
Specify mapping in <code><a href="scss/_variables.scss">$background-colors</a>: (key: value)</code>.
background-attachment
- <code><b>bg</b>a-f</code> →
fixed
- <code><b>bg</b>a-s</code> →
scroll
background-clip
- <code><b>bg</b>cp-bb</code> →
border-box
- <code><b>bg</b>cp-pb</code> →
padding-box
- <code><b>bg</b>cp-cb</code> →
content-box
- <code><b>bg</b>cp-i</code> →
inherit
background-image
- <code><b>bg</b>i-n</code> →
none
- <code><b>bg</b>i-i</code> →
inherit
background-origin
- <code><b>bg</b>o-bb</code> →
border-box
- <code><b>bg</b>o-pb</code> →
padding-box
- <code><b>bg</b>o-cb</code> →
content-box
background-repeat
- <code><b>bg</b>r-n</code> →
no-repeat
- <code><b>bg</b>r-x</code> →
repeat-x
- <code><b>bg</b>r-y</code> →
repeat-y
- <code><b>bg</b>r-s</code> →
space
- <code><b>bg</b>r-r</code> →
round
background-size
- <code><b>bg</b>z-a</code> →
auto
- <code><b>bg</b>z-ct</code> →
contain
- <code><b>bg</b>z-cv</code> →
cover
background-position
- <code><b>bg</b>p-tc</code> →
top center
- <code><b>bg</b>p-tl</code> →
top left
- <code><b>bg</b>p-cr</code> →
center right
- <code><b>bg</b>p-cc</code> →
center center
- <code><b>bg</b>p-cl</code> →
center left
- <code><b>bg</b>p-br</code> →
bottom right
- <code><b>bg</b>p-bc</code> →
bottom center
- <code><b>bg</b>p-bl</code> →
bottom left
background-position-x
- <code><b>bg</b>px-r</code> →
right
- <code><b>bg</b>px-c</code> →
center
- <code><b>bg</b>px-l</code> →
left
background-position-y
- <code><b>bg</b>py-t</code> →
top
- <code><b>bg</b>py-c</code> →
center
- <code><b>bg</b>py-b</code> →
bottom
fill
<code>[<a href="#breakpoints">breakpoint</a>_]<b>fi</b>{key}[-<a href="#pseudos">pseudo</a>]</code> → fill: {value}
Specify mapping in <code><a href="scss/_variables.scss">$background-colors</a>: (key: value)</code>.
Border
border-color
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>c{key}[-<a href="#pseudos">pseudo</a>]</code> →
border-color: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>xc{key}[-<a href="#pseudos">pseudo</a>]</code> = <code><b>bd</b>lc{key}</code>, <code><b>bd</b>rc{key}</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>yc{key}[-<a href="#pseudos">pseudo</a>]</code> = <code><b>bd</b>tc{key}</code>, <code><b>bd</b>bc{key}</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>tc{key}[-<a href="#pseudos">pseudo</a>]</code> →
border-top-color: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>bc{key}[-<a href="#pseudos">pseudo</a>]</code> →
border-bottom-color: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>rc{key}[-<a href="#pseudos">pseudo</a>]</code> →
border-right-color: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>lc{key}[-<a href="#pseudos">pseudo</a>]</code> →
border-left-color: {value}
Specify mapping in <code><a href="scss/_variables.scss">$border-colors</a>: (key: value)</code>.
border-width
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>w{key}</code> →
border-width: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>xw{key}</code> = <code><b>bd</b>lw{key}</code>, <code><b>bd</b>rw{key}</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>yw{key}</code> = <code><b>bd</b>tw{key}</code>, <code><b>bd</b>bw{key}</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>tw{key}</code> →
border-top-width: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>bw{key}</code> →
border-bottom-width: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>rw{key}</code> →
border-right-width: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>lw{key}</code> →
border-left-width: {value}
Specify mapping in <code><a href="scss/_variables.scss">$border-widths</a>: (key: value)</code>.
border-style
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>s{key}</code> →
border-style: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>xs{key}</code> = <code><b>bd</b>ls{key}</code>, <code><b>bd</b>rs{key}</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>ys{key}</code> = <code><b>bd</b>ts{key}</code>, <code><b>bd</b>bs{key}</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>ts{key}</code> →
border-top-style: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>bs{key}</code> →
border-bottom-style: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>rs{key}</code> →
border-right-style: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>ls{key}</code> →
border-left-style: {value}
Specify mapping in <code><a href="scss/_variables.scss">$border-styles</a>: (key: value)</code>.
By default, all available border styles are included. Border style atoms are emitted for every breakpoint what can cause significant increase of outputted CSS file. Be sure to remove unused border styles in order to reduce file size.
border-radius
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>r{key}</code> →
border-radius: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>tr{key}</code> = <code><b>bd</b>tlr{key}</code>, <code><b>bd</b>trr{key}</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>rr{key}</code> = <code><b>bd</b>trr{key}</code>, <code><b>bd</b>brr{key}</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>br{key}</code> = <code><b>bd</b>blr{key}</code>, <code><b>bd</b>brr{key}</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>lr{key}</code> = <code><b>bd</b>tlr{key}</code>, <code><b>bd</b>blr{key}</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>trr{key}</code> →
border-top-right-radius: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>tlr{key}</code> →
border-top-left-radius: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>brr{key}</code> →
border-bottom-right-radius: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>bd</b>blr{key}</code> →
border-bottom-left-radius: {value}
Specify mapping in <code><a href="scss/_variables.scss">$border-radiuses</a>: (key: value)</code>.
Images
object-fit
- <code><b>of</b>-n</code> →
none
- <code><b>of</b>-f</code> →
fill
- <code><b>of</b>-ct</code> →
contain
- <code><b>of</b>-cv</code> →
cover
- <code><b>of</b>-sd</code> →
scale-down
- <code><b>of</b>-i</code> →
inherit
Transforms
transform
- <code><b>ts</b>-n</code> →
none
- <code><b>ts</b>-i</code> →
inherit
- <code><b>ts</b>r(45d…360/45d)</code> →
transform: rotate(45deg)
…rotate(360deg)
- <code><b>ts</b>r(-45d…-360/-45d)</code> →
transform: rotate(-45deg)
…rotate(-360deg)
- <code><b>ts</b>s(0…200/25)</code> →
transform: scale(0)
…scale(2)
Flexible Box Layout
These shortcuts are available if display atom is included.
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>-r</code> = <a href="#display"><code><b>d</b>-fx</code></a>, <code><b>fx</b>d-r</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>-rr</code> = <a href="#display"><code><b>d</b>-fx</code></a>, <code><b>fx</b>d-rr</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>-c</code> = <a href="#display"><code><b>d</b>-fx</code></a>, <code><b>fx</b>d-c</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>-cr</code> = <a href="#display"><code><b>d</b>-fx</code></a>, <code><b>fx</b>d-cr</code>
flex-direction
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>d-r</code> →
row
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>d-rr</code> →
row-reverse
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>d-c</code> →
column
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>d-cr</code> →
column-reverse
flex-wrap
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>w-n</code> →
nowrap
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>w-w</code> →
wrap
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>w-wr</code> →
wrap-reverse
flex-grow
<code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>g(0…10/1)</code> → flex-grow: 0
…10
flex-shrink
<code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>s(0…10/1)</code> → flex-shrink: 0
…10
flex-basis
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>b-a</code> →
auto
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>b-mac</code> →
max-content
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>b-mic</code> →
min-content
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>b-fc</code> →
fit-content
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fx</b>b-c</code> →
content
justify-content
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>jc</b>-fs</code> →
flex-start
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>jc</b>-fe</code> →
flex-end
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>jc</b>-c</code> →
center
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>jc</b>-sb</code> →
space-between
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>jc</b>-sa</code> →
space-around
align-items
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ai</b>-fs</code> →
flex-start
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ai</b>-fe</code> →
flex-end
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ai</b>-c</code> →
center
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ai</b>-bs</code> →
baseline
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ai</b>-s</code> →
stretch
align-content
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ac</b>-fs</code> →
flex-start
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ac</b>-fe</code> →
flex-end
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ac</b>-c</code> →
center
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ac</b>-sb</code> →
space-between
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ac</b>-sa</code> →
space-around
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ac</b>-s</code> →
stretch
align-self
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>as</b>-a</code> →
auto
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>as</b>-fs</code> →
flex-start
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>as</b>-fe</code> →
flex-end
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>as</b>-c</code> →
center
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>as</b>-b</code> →
baseline
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>as</b>-s</code> →
stretch
order
<code>[<a href="#breakpoints">breakpoint</a>_]<b>ord</b>(0…10/1)</code> → order: 0
…10
Positioning
float
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fl</b>-l</code> →
left
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fl</b>-r</code> →
right
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>fl</b>-n</code> →
none
clear
- <code><b>cl</b>-l</code> →
left
- <code><b>cl</b>-r</code> →
right
- <code><b>cl</b>-b</code> →
both
- <code><b>cl</b>-n</code> →
none
position
- <code><b>pos</b>-s</code> →
static
- <code><b>pos</b>-a</code> →
absolute
- <code><b>pos</b>-r</code> →
relative
- <code><b>pos</b>-f</code> →
fixed
top
right
bottom
left
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>t</b>{key}</code> →
top: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>r</b>{key}</code> →
right: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>b</b>{key}</code> →
bottom: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>l</b>{key}</code> →
left: {value}
Specify mapping in <code><a href="scss/_variables.scss">$positions</a>: (key: value)</code>.
z-index
- <code><b>z</b>(0…10/1)</code> →
z-index: 0
…10
- <code><b>z</b>-a</code> →
auto
- <code><b>z</b>-i</code> →
inherit
Fonts
font-size
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>z-xxs</code> →
xx-small
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>z-xs</code> →
x-small
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>z-s</code> →
small
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>z-m</code> →
medium
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>z-l</code> →
large
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>z-xl</code> →
x-large
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>z-xxl</code> →
xx-large
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>z-lr</code> →
larger
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>z-sr</code> →
smaller
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>z-i</code> →
inherit
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>z{key}</code> →
font-size: {value}
Specify mapping in <code><a href="scss/_variables.scss">$font-sizes</a>: (key: value)</code>.
line-height
- <code><b>lh</b>-n</code> →
normal
- <code><b>lh</b>-i</code> →
inherit
- <code><b>lh</b>0</code> →
0
- <code><b>lh</b>1</code> →
1
- <code><b>lh</b>{key}</code> →
line-height: {value}
Specify mapping in <code><a href="scss/_variables.scss">$line-heights</a>: (key: value)</code>.
font-family
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>s-s</code> →
serif
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>s-ss</code> →
sans-serif
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>s-m</code> →
monospace
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>s-c</code> →
cursive
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>s-f</code> →
fantasy
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>s-i</code> →
inherit
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>s{key}</code> →
font-family: {value}
Specify mapping in <code><a href="scss/_variables.scss">$font-families</a>: (key: value)</code>.
font-weight
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>w(100…900/100)</code> →
font-weight: 100
…900
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>w-n</code> →
normal
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>w-b</code> →
bold
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>w-br</code> →
bolder
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>w-lr</code> →
lighter
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>w-i</code> →
inherit
font-style
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>s-n</code> →
normal
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>s-i</code> →
italic
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>f</b>s-o</code> →
oblique
font-variant
- <code><b>f</b>v-cl</code> →
common-ligatures
- <code><b>f</b>v-apc</code> →
all-petite-caps
- <code><b>f</b>v-asc</code> →
all-small-caps
- <code><b>f</b>v-sc</code> →
small-caps
- <code><b>f</b>v-c</code> →
contextual
- <code><b>f</b>v-df</code> →
diagonal-fractions
- <code><b>f</b>v-sf</code> →
stacked-fractions
- <code><b>f</b>v-hf</code> →
historical-forms
- <code><b>f</b>v-hl</code> →
historical-ligatures
- <code><b>f</b>v-i</code> →
inherit
- <code><b>f</b>v-n</code> →
normal
- <code><b>f</b>v-tn</code> →
tabular-nums
- <code><b>f</b>v-pn</code> →
proportional-nums
- <code><b>f</b>v-pw</code> →
proportional-width
font-size-adjust
<code><b>f</b>za-n</code> → none
font-stretch
- <code><b>f</b>st-n</code> →
normal
- <code><b>f</b>st-uc</code> →
ultra-condensed
- <code><b>f</b>st-ec</code> →
extra-condensed
- <code><b>f</b>st-c</code> →
condensed
- <code><b>f</b>st-sc</code> →
semi-condensed
- <code><b>f</b>st-se</code> →
semi-expanded
- <code><b>f</b>st-e</code> →
expanded
- <code><b>f</b>st-ee</code> →
extra-expanded
- <code><b>f</b>st-ue</code> →
ultra-expanded
-webkit-font-smoothing
- <code><b>wf</b>sm-a</code> →
antialiased
- <code><b>wf</b>sm-sa</code> →
subpixel-antialiased
- <code><b>wf</b>sm-n</code> →
none
-moz-osx-font-smoothing
- <code><b>mf</b>sm-a</code> →
auto
- <code><b>mf</b>sm-g</code> →
grayscale
Transitions
transition-property
- <code><b>tr</b>p-n</code> →
none
- <code><b>tr</b>p-a</code> →
all
transition-duration
<code><b>tr</b>d(100ms…1000ms/100ms)</code> → transition-duration: 100ms
…1000ms
transition-timing-function
- <code><b>tr</b>tf-e</code> →
ease
- <code><b>tr</b>tf-ei</code> →
ease-in
- <code><b>tr</b>tf-eo</code> →
ease-out
- <code><b>tr</b>tf-eio</code> →
ease-in-out
- <code><b>tr</b>tf-l</code> →
linear
- <code><b>tr</b>tf-ss</code> →
step-start
- <code><b>tr</b>tf-se</code> →
step-end
Text
letter-spacing
- <code><b>ls</b>-n</code> →
normal
- <code><b>ls</b>-i</code> →
inherit
- <code><b>ls</b>{key}</code> →
letter-spacing: {value}
Specify mapping in <code><a href="scss/_variables.scss">$letter-spacings</a>: (key: value)</code>.
overflow-wrap
- <code><b>ov</b>w-n</code> →
normal
- <code><b>ov</b>w-b</code> →
break-word
text-align
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>t</b>a-l</code> →
left
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>t</b>a-c</code> →
center
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>t</b>a-r</code> →
right
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>t</b>a-j</code> →
justify
text-align-last
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>t</b>al-l</code> →
left
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>t</b>al-c</code> →
center
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>t</b>al-r</code> →
right
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>t</b>al-j</code> →
justify
text-indent
<code><b>t</b>i{key}</code> → text-indent: {value}
Specify mapping in <code><a href="scss/_variables.scss">$text-indents</a>: (key: value)</code>.
text-decoration
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>t</b>d-n[-<a href="#pseudos">pseudo</a>]</code> →
none
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>t</b>d-u[-<a href="#pseudos">pseudo</a>]</code> →
underline
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>t</b>d-o</code> →
overline
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>t</b>d-lt</code> →
line-through
text-transform
- <code><b>t</b>t-c</code> →
capitalize
- <code><b>t</b>t-u</code> →
uppercase
- <code><b>t</b>t-l</code> →
lowercase
- <code><b>t</b>t-n</code> →
none
- <code><b>t</b>t-fw</code> →
full-width
white-space
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ws</b>-n </code> →
normal
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ws</b>-p </code> →
pre
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ws</b>-nw</code> →
nowrap
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ws</b>-pw</code> →
pre-wrap
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>ws</b>-pl</code> →
pre-line
word-break
- <code><b>wo</b>b-n</code> →
normal
- <code><b>wo</b>b-ka</code> →
keep-all
- <code><b>wo</b>b-ba</code> →
break-all
word-wrap
- <code><b>wo</b>w-n</code> →
normal
- <code><b>wo</b>w-bw</code> →
break-word
Lists and Counters
list-style
- <code><b>li</b>s-n</code> →
none
- <code><b>li</b>s-i</code> →
inherit
list-style-position
- <code><b>li</b>sp-in</code> →
inside
- <code><b>li</b>sp-o</code> →
outside
- <code><b>li</b>sp-i</code> →
inherit
list-style-type
- <code><b>li</b>st-n</code> →
none
- <code><b>li</b>st-d</code> →
disc
- <code><b>li</b>st-c</code> →
circle
- <code><b>li</b>st-s</code> →
square
- <code><b>li</b>st-dc</code> →
decimal
- <code><b>li</b>st-dclz</code> →
decimal-leading-zero
- <code><b>li</b>st-lr</code> →
lower-roman
- <code><b>li</b>st-ur</code> →
upper-roman
- <code><b>li</b>st-i</code> →
inherit
Colors
color
<code>[<a href="#breakpoints">breakpoint</a>_]<b>c</b>{key}[-<a href="#pseudos">pseudo</a>]</code> → color: {value}
Specify mapping in <code><a href="scss/_variables.scss">$colors</a>: (key: value)</code>.
opacity
<code><b>op</b>(0…100/1)</code> → opacity: 0
…1
Box Model
box-shadow
<code><b>bx</b>s{key}[-<a href="#pseudos">pseudo</a>]</code> → box-shadow: {value}
Specify mapping in <code><a href="scss/_variables.scss">$box-shadows</a>: (key: value)</code>.
box-sizing
- <code><b>bx</b>z-cb</code> →
content-box
- <code><b>bx</b>z-bb</code> →
border-box
- <code><b>bx</b>z-i</code> →
inherit
height
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>h</b>{key}</code> →
height: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>mah</b>-n</code> →
max-height: none
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>mah</b>{key}</code> →
max-height: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>mih</b>{key}</code> →
min-height: {value}
Specify mapping in <code><a href="scss/_variables.scss">$heights</a>: (key: value)</code>.
width
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>w</b>{key}</code> →
width: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>maw</b>-n</code> →
max-width: none
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>maw</b>{key}</code> →
max-width: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>miw</b>{key}</code> →
min-width: {value}
Specify mapping in <code><a href="scss/_variables.scss">$widths</a>: (key: value)</code>.
margin
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>m</b>{key}</code> →
margin: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>m</b>x-a</code> →
margin-left: auto
,margin-right: auto
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>m</b>x{key}</code> = <code><b>m</b>l{key}</code>, <code><b>m</b>r{key}</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>m</b>y{key}</code> = <code><b>m</b>t{key}</code>, <code><b>m</b>b{key}</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>m</b>t{key}</code> →
margin-top: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>m</b>r{key}</code> →
margin-right: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>m</b>b{key}</code> →
margin-bottom: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>m</b>l{key}</code> →
margin-left: {value}
Specify mapping in <code><a href="scss/_variables.scss">$margins</a>: (key: value)</code>.
padding
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>p</b>{key}</code> →
padding: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>p</b>x{key}</code> = <code><b>p</b>l{key}</code>, <code><b>p</b>r{key}</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>p</b>y{key}</code> = <code><b>p</b>t{key}</code>, <code><b>p</b>b{key}</code>
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>p</b>t{key}</code> →
padding-top: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>p</b>r{key}</code> →
padding-right: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>p</b>b100p</code> →
padding-bottom: 100%
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>p</b>b{key}</code> →
padding-bottom: {value}
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>p</b>l{key}</code> →
padding-left: {value}
Specify mapping in <code><a href="scss/_variables.scss">$paddings</a>: (key: value)</code>.
overflow
- <code><b>ov</b>-v</code> →
visible
- <code><b>ov</b>-h</code> →
hidden
- <code><b>ov</b>-s</code> →
scroll
- <code><b>ov</b>-a</code> →
auto
overflow-x
- <code><b>ov</b>x-v</code> →
visible
- <code><b>ov</b>x-h</code> →
hidden
- <code><b>ov</b>x-s</code> →
scroll
- <code><b>ov</b>x-a</code> →
auto
overflow-y
- <code><b>ov</b>y-v</code> →
visible
- <code><b>ov</b>y-h</code> →
hidden
- <code><b>ov</b>y-s</code> →
scroll
- <code><b>ov</b>y-a</code> →
auto
-webkit-overflow-scrolling
- <code><b>wov</b>s-t</code> →
touch
- <code><b>wov</b>s-a</code> →
auto
visibility
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>v</b>-v</code> →
visible
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>v</b>-h</code> →
hidden
- <code>[<a href="#breakpoints">breakpoint</a>_]<b>v</b>-c</code> →
collapse
Page
page-break-before
- <code><b>pgb</b>b-a</code> →
auto
- <code><b>pgb</b>b-al</code> →
always
- <code><b>pgb</b>b-av</code> →
avoid
- <code><b>pgb</b>b-l</code> →
left
- <code><b>pgb</b>b-r</code> →
right
page-break-inside
- <code><b>pgb</b>i-a</code> →
auto
- <code><b>pgb</b>i-av</code> →
avoid
page-break-after
- <code><b>pgb</b>a-a</code> →
auto
- <code><b>pgb</b>a-al</code> →
always
- <code><b>pgb</b>a-av</code> →
avoid
- <code><b>pgb</b>a-l</code> →
left
- <code><b>pgb</b>a-r</code> →
right
User Interface
cursor
- <code><b>cur</b>-a</code> →
auto
- <code><b>cur</b>-d</code> →
default
- <code><b>cur</b>-cm</code> →
context-menu
- <code><b>cur</b>-h</code> →
help
- <code><b>cur</b>-p</code> →
pointer
- <code><b>cur</b>-ps</code> →
progress
- <code><b>cur</b>-w</code> →
wait
- <code><b>cur</b>-cl</code> →
cell
- <code><b>cur</b>-c</code> →
crosshair
- <code><b>cur</b>-t</code> →
text
- <code><b>cur</b>-al</code> →
alias
- <code><b>cur</b>-cp</code> →
copy
- <code><b>cur</b>-m</code> →
move
- <code><b>cur</b>-nd</code> →
no-drop
- <code><b>cur</b>-na</code> →
not-allowed
- <code><b>cur</b>-as</code> →
all-scroll
- <code><b>cur</b>-cr</code> →
col-resize
- <code><b>cur</b>-rr</code> →
row-resize
- <code><b>cur</b>-nr</code> →
n-resize
- <code><b>cur</b>-er</code> →
e-resize
- <code><b>cur</b>-sr</code> →
s-resize
- <code><b>cur</b>-wr</code> →
w-resize
- <code><b>cur</b>-ner</code> →
ne-resize
- <code><b>cur</b>-nwr</code> →
nw-resize
- <code><b>cur</b>-ser</code> →
se-resize
- <code><b>cur</b>-swr</code> →
sw-resize
- <code><b>cur</b>-ewr</code> →
ew-resize
- <code><b>cur</b>-nsr</code> →
ns-resize
- <code><b>cur</b>-neswr</code> →
nesw-resize
- <code><b>cur</b>-nwser</code> →
nwse-resize
- <code><b>cur</b>-zi</code> →
zoom-in
- <code><b>cur</b>-zo</code> →
zoom-out
- <code><b>cur</b>-g</code> →
grab
- <code><b>cur</b>-gr</code> →
grabbing
- <code><b>cur</b>-n</code> →
none
resize
- <code><b>rz</b>-n</code> →
none
- <code><b>rz</b>-b</code> →
both
- <code><b>rz</b>-h</code> →
horizontal
- <code><b>rz</b>-v</code> →
vertical
text-overflow
- <code><b>t</b>ov-e</code> →
ellipsis
- <code><b>t</b>ov-c</code> →
clip
user-select
- <code><b>us</b>-n</code> →
none
- <code><b>us</b>-t</code> →
text
- <code><b>us</b>-a</code> →
all
Table
border-collapse
- <code><b>bd</b>ce-c</code> →
collapse
- <code><b>bd</b>ce-s</code> →
separate
- <code><b>bd</b>ce-i</code> →
inherit
caption-side
- <code><b>cps</b>-t</code> →
top
- <code><b>cps</b>-b</code> →
bottom
empty-cells
- <code><b>ec</b>-s</code> →
show
- <code><b>ec</b>-h</code> →
hide
table-layout
- <code><b>tbl</b>-a</code> →
auto
- <code><b>tbl</b>-f</code> →
fixed
vertical-align
- <code><b>va</b>-sp</code> →
super
- <code><b>va</b>-t</code> →
top
- <code><b>va</b>-tt</code> →
text-top
- <code><b>va</b>-m</code> →
middle
- <code><b>va</b>-bs</code> →
baseline
- <code><b>va</b>-b</code> →
bottom
- <code><b>va</b>-tb</code> →
text-bottom
- <code><b>va</b>-sb</code> →
sub
Miscellaneous
display
- <code><b>d</b>-n</code> →
none
- <code><b>d</b>-b</code> →
block
- <code><b>d</b>-fx</code> →
flex
- <code><b>d</b>-li</code> →
list-item
- <code><b>d</b>-ri</code> →
run-in
- <code><b>d</b>-i</code> →
inline
- <code><b>d</b>-itb</code> →
inline-table
- <code><b>d</b>-ifx</code> →
inline-flex
- <code><b>d</b>-ib</code> →
inline-block
- <code><b>d</b>-tb</code> →
table
- <code><b>d</b>-tcp</code> →
table-caption
- <code><b>d</b>-tc</code> →
table-column
- <code><b>d</b>-tcg</code> →
table-column-group
- <code><b>d</b>-thg</code> →
table-header-group
- <code><b>d</b>-tfg</code> →
table-footer-group
- <code><b>d</b>-tr</code> →
table-row
- <code><b>d</b>-trg</code> →
table-row-group
- <code><b>d</b>-tcl</code> →
table-cell
- <code><b>d</b>-rb</code> →
ruby
- <code><b>d</b>-rbb</code> →
ruby-base
- <code><b>d</b>-rbbc</code> →
ruby-base-container
- <code><b>d</b>-rbt</code> →
ruby-text
- <code><b>d</b>-rbtc</code> →
ruby-text-container
License
The code is available under MIT licence.