Get started with Borrow, Responsive Website Template for building responsive, mobile-first sites, with Bootstrap and a template starter page.
Copy-paste the Bootstrap and then Borrow stylesheets into your before all other stylesheets to load our CSS.
Many of our components require the use of JavaScript to function. Specifically, they require jQuery, Popper.js, and our own JavaScript plugins. Place the following script near the end of your docs, right before the closing body tag, to enable them. jQuery must come first, then popper.js, and then our JavaScript plugins.
Be sure to have your docs set up with the latest design and development standards. That means using an HTML5 doctype and including a viewport meta tag for proper responsive behaviors. Put it all together and your docs should look like this:
That’s all you need for overall page requirements. Visit the Layout docs or our official examples to start laying out your site’s content and components.
Borrow employs a handful of important global styles and settings that you’ll need to be aware of when using it, all of which are almost exclusively geared towards the normalization of cross browser styles. Let’s dive in.
Borrow requires the use of the HTML5 doctype. Without it, you'll see some funky incomplete styling, but including it shouldn't cause any considerable hiccups.
Borrow is developed mobile first, a strategy in which we optimize code for mobile devices first and then scale up components as necessary using CSS media queries. To ensure proper rendering and touch zooming for all devices, add the responsive viewport meta tag to your.
You can see an example of this in action in the starter template.