mayflower-bootstrap
is a Mayflower (Commonwealth design system) inspired Bootstrap theme. This project is to offer a way to quickly and easily "Mayflowerize" Commonwealth digital products that are currently styled using Bootstrap 4.
{% hint style="info" %} Mayflower Boostrap github repo {% endhint %}
{% hint style="info" %} Mayflower Boostrap live examples {% endhint %}
-
Copy and add the
css/
andassets/
folders into your project folder. -
Link to compiled and minified stylesheet
mayflower-bootstrap.min.css
fromcss/
in the HTML<head>
e.g.
<link rel="stylesheet" href="css/mayflower-bootstrap.min.css">
-
Paste the following scripts before the closing body tag
</body>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity_no="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity_no="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity_no="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
- This works on Windows, macOS and Linux.
- Node Package Manager and Gulp are required. Make sure you can run
gulp -v
andnpm -v
. - You can get Node at nodejs.org, then install gulp using
npm install gulp-cli -g
- Clone this repo
- Run
npm install
- Run
gulp
to start building and watching any scss and html changes - Navigate to
localhost:6060
and see the live changes - Add any Bootstrap Sass variables into
scss/_custom-variables.scss
(Boostrap reference) - Add any custom styles into
scss/_custom-styles.scss
. You can use Bootstrap's mixins here.
- Make a pull request into
master
branch - Merge in changes
- Checkout https://massgov.github.io/mayflower-bootstrap/
This project was bootstrapped with HackerThemes.