Introduction Modules Flavors Templates Customization Quick Reference  Github

Core

The core module contains basic reset and fix rules, based on Normalize.css v5.0.0, along with lots of custom typography rules. Most textual HTML5 elements are styled by this module, so you can start writing your pages immediately without worrying about font families, weights, sizes, line heights, paddings and the like.

All examples showcased refer to the mini-default flavor, some class names and styles might differ based on the flavor you're using.


Quick overview

Before applying any typography and styling rules, some resets need to be applied to make sure that different elements display consistently on all browsers. The core module utilizes the ruleset of Normalize.css v5.0.0 to apply those much needed resets and fixes. However, to keep the framework small, we removed some rules that only help with legacy browser support and also tweaked a lot of the rules around to use customizable variables so no duplicate rules are applied, taking up unnecessary space. The typography rules in core deal with a page's basics, like fonts and styling of headings and paragraphs, horizontal rules, colors, margins, padding etc.


Quick start

To customize the core module, duplicate an existing flavor file (we suggest you use the mini-default.scss flavor file) and use this page's variable tables and mixins as a reference to change only the values you need. Remember to compile your flavor file (not the module's partial file) using a Sass preprocessor (we highly recommend using sass-autocompile if you are working with Atom).


Typography & headings

The core module's typography rules are quite extensive and deal with background and foreground colors, used fonts, sizing and line height, along with heading, link and paragraph styling.


Variables
VariableTypeDescriptionSample value
$fore-colorColor Text and foregound color#212121
$back-colorColor Body background color#f5f5f5
$base-font-familyFont family Default font stack for all elementssans-serif
$base-root-font-sizeFont size (px only) Root font size16px
$apply-defaults-to-allLogical Applies default font sizing be to all elements1true
$base-font-sizeFont size (em or rem only) Default font sizing for all elements1sans-serif
$base-line-heightLine height Default line height for all elements1.5
$body-marginMargin Margin for the body4px
$h1-font-sizeFont size (em preferred) Font size for <h1> elements2em
$h2-font-sizeFont size (em preferred) Font size for <h2> elements1.5em
$h3-font-sizeFont size (em preferred) Font size for <h3> elements1.25em
$h4-font-sizeFont size (em preferred) Font size for <h4> elements1.1em
$h5-font-sizeFont size (em preferred) Font size for <h5> elements1em
$h6-font-sizeFont size (em preferred) Font size for <h6> elements0.85em
$heading-line-heightLine height Default line height for heading elements1.2
$heading-font-weightFont weight Default font weight for heading elements500
$heading-smalltext-fore-colorColor Font color for <small> elements inside headings#424242
$make-heading-smalltext-blockLogical Makes <small> elements inside headings display below them2true
$heading-smalltext-b-font-sizeFont size (percentage preferred) Font size for <small> elements inside headings275%
$heading-smalltext-b-top-marginMargin Top margin for <small> elements inside headings2-4px
$paragraph-marginMargin Margin for <p> elements1px 8px
$bold-font-weightFont weight Font weight for <b> and <strong> elements700
$small-font-sizeFont size (percentage preferred) Font size for <small> elements75%
$sup-font-sizeFont size (percentage preferred) Font size for <sup> elements75%
$sup-topPosition top Position top for <sup> elements-8px
$sub-font-sizeFont size (percentage preferred) Font size for <sub> elements75%
$sub-bottomPosition bottom Position bottom for <sub> elements-4px
$link-fore-colorColor Text color for links (unvisited)#0277bd
$link-visited-fore-colorColor Text color for links (visited)#01579b
$link-hover-fore-colorColor Text color for links (on hover)3#0288d1
$apply-link-hover-fadeLogical Applies fading to links on hover3true
$link-font-weightFont weight Font weight for links500
$apply-link-underlineLogical Applies underlining to links on hovertrue

Notes:

  1. The value of $base-font-size will only be applied if $apply-defaults-to-all is set to true.
  2. The values of $heading-smalltext-b-font-size and $heading-smalltext-b-top-margin will only be applied if $make-heading-smalltext-block is set to true.
  3. The value of $link-hover-fore-color will only be applied if $apply-link-hover-fade is set to false.

Common elements & fixes

The core module contains a plethora of styles for horizontal rules, lists and code elements, as well as a few optional display fixes for certain other elements.


Variables
VariableTypeDescriptionSample value
$list-marginMargin Margin for <ul> and <ol> elements8px
$list-left-paddingPadding left Left padding for <ul> and <ol> elements8px
$horizontal-rule-line-heightLine height Line height for <hr> elements1.25em
$horizontal-rule-marginMargin Margin for <hr> elements8px
$horizontal-rule-border-styleBorder Border style for <hr> elements11px solid #757575
$horizontal-rule-fancy-styleLogical Applies gradient styling to <hr> elements2true
$horizontal-rule-fancy-gradientGradient Gradient styling for <hr> elements2to right, #616161, #bdbdbd
$blockquote-back-colorColor Background color for <blockquote> elements#eeeeee
$blockquote-fore-colorColor Text color for <blockquote> elements$fore-color
$blockquote-marginMargin Margin for <blockquote> elements8px 10px
$blockquote-paddingPadding Padding for <blockquote> elements8px
$blockquote-border-styleBorder Border style for <blockquote> elements1px solid #424242
$blockquote-border-radiusBorder radius Border radius for <blockquote> elements2px
$blockquote-box-shadowBox shadow Box shadow for <blockquote> elements0 1px 3px rgba(0,0,0, 0.1)
$blockquote-sidebar-styleBorder Style for the sidebar of <blockquote> elements3px solid #616161
$blockquote-cite-font-sizeFont size Font size for citations in <blockquote> elements0.85em
$blockquote-cite-fore-colorColor Text color for citations in <blockquote> elements#616161
$blockquote-cite-left-positionPosition left Position left for citations in <blockquote> elements10px
$blockquote-cite-bottom-positionPosition bottom Position bottom for citations in <blockquote> elements0
$use-default-code-fontsLogical Use default fonts for code elements3true
$code-font-familyFont family Font for code elements3monospace
$code-element-paddingPadding Padding for <code> elements4px
$code-element-fore-colorColor Text color for <code> elements$fore-color
$code-element-back-colorColor Background color for <code> elements#e0e0e0
$code-element-border-styleBorder Border style for <code> elements1px solid #424242
$code-element-border-radiusBorder radius Border radius for <code> elements2px
$code-element-box-shadowBox shadow Box shadow for <code> elements0 1px 2px rgba(0,0,0, 0.1)
$pre-element-paddingPadding Padding for <pte> elements12px
$pre-element-marginMargin Margin for <pte> elements8px
$pre-element-fore-colorColor Text color for <pre> elements$fore-color
$pre-element-back-colorColor Background color for <pre> elements#e0e0e0
$pre-element-border-styleBorder Border style for <pre> elements1px solid #424242
$pre-element-border-radiusBorder radius Border radius for <pre> elements2px
$pre-element-box-shadowBox shadow Box shadow for <pre> elements0 1px 2px rgba(0,0,0, 0.1)
$add-pre-element-sidebarLogical Adds a sidebar to <pre> elements4true
$pre-element-sidebar-styleBorder Style of the sidebar for <pre> elements43px solid #1565c0
$kbd-element-paddingPadding Padding for <kbd> elements4px
$kbd-element-fore-colorColor Text color for <kbd> elements#fafafa
$kbd-element-back-colorColor Background color for <kbd> elements$fore-color
$kbd-element-border-styleBorder Border style for <kbd> elements1px solid #212121
$kbd-element-border-radiusBorder radius Border radius for <kbd> elements2px
$kbd-element-box-shadowBox shadow Box shadow for <kbd> elements0 1px 2px rgba(0,0,0, 0.1)
$style-samp-elementLogical Applies styling to <samp> elements5true
$samp-element-paddingPadding Padding for <samp> elements54px
$samp-element-fore-colorColor Text color for <samp> elements5$fore-color
$samp-element-back-colorColor Background color for <samp> elements5#2196f3
$samp-element-border-styleBorder Border style for <samp> elements51px solid #424242
$samp-element-border-radiusBorder radius Border radius for <samp> elements52px
$samp-element-box-shadowBox shadow Box shadow for <samp> elements50 1px 2px rgba(0,0,0, 0.1)
$include-dfn-fixLogical Includes a display fix for <dfn> elements for Android 4.3true
$figcaption-font-sizeFont size (percentage preferred) Font size for <figcaption> elements80%
$figcaption-fore-colorColor Text color for <figcaption> elements#424242

Notes:

  1. The value of $horizontal-rule-border-style will only be applied if $horizontal-rule-fancy-style is set to false.
  2. The value of $horizontal-rule-fancy-gradient will only be applied if $horizontal-rule-fancy-style is set to true.
  3. The value of $code-font-family will only be applied if $use-default-code-fonts is set to false.
  4. The value of $pre-element-sidebar-style will only be applied if $add-pre-element-sidebar is set to true.
  5. The values of all the variables that refer to <samp> elements will only be applied if $style-samp-element is set to true.

If you want to learn more about customizing mini.css, go back to the customization page or choose a module from the top menu to see its documentation.