Skip to content

PebbleRoad/sharepoint-html-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SharePoint HTML Boilerplate

A boilerplate starter kit for SharePoint html development. Comes with

  • Sharepoint 2013 CSS Reset
  • Gulp build tool
  • JADE/SASS templates (Optional)
  • Font awesome icon font (Optional)

SharePoint CSS reset credits to http://responsivesharepoint.codeplex.com/releases/view/112845

Development

All development files are in src/ folder

git clone https://github.com/PebbleRoad/sharepoint-html-boilerplate.git sharepointboilerplate
cd sharepointboilerplate
npm install && bower install
gulp watch

Open localhost:9000

Build

gulp build will generate production ready html, css and js and output them to dist/ folder.

Fonts

SharePoint uses Segoe UI font across the site. The boilerplate checks for local Segoe UI font in both windows and mac, the font is downloaded if not found in local system.

Example:

@font-face {
    font-family: "Segoe UI";
    font-weight: 200;
    src: local("Segoe UI Light"),
        local("SegoeUI-Light"),
        url('../fonts/segoeuil-webfont.eot'),
        url('../fonts/segoeuil-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/segoeuil-webfont.woff') format('woff'),
        url('../fonts/segoeuil-webfont.ttf') format('truetype'),
        url('../fonts/segoeuil-webfont.svg#segoe_uilight') format('svg');
}

Note: Segoe UI fonts are not included in the boilerplate due to copyright issues. Please check with your SharePoint vendor for the fonts.

Breakpoints

mobile 'only screen and (max-width: 480px)',
medium 'only screen and (min-width: 600px)',
tablet 'only screen and (min-width: 768px)',
tablet-only 'only screen and (min-width: 600px) and (max-width: 960px)',
desktop 'only screen and (min-width: 960px)',
wide 'only screen and (min-width: 1200px)',

About

A boilerplate starter kit for SharePoint html development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published