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
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
gulp build
will generate production ready html, css and js and output them to dist/
folder.
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.
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)',