Skip to content

Commit

Permalink
Add bootstrap and SCSS setup
Browse files Browse the repository at this point in the history
  • Loading branch information
matthawk60 committed Dec 28, 2023
1 parent 436fb22 commit ec0dc66
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@

# Go workspace file
go.work

# Hugo and Node related
/resources/
/node_modules/
40 changes: 40 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"dependencies": {
"bootstrap": "^5.3.2"
},
"name": "hugo-landing-page-bootstrap",
"description": "Hugo Landing Page Template",
"version": "1.0.0",
"main": "index.js",
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Matt Hawk",
"license": "ISC"
}
22 changes: 22 additions & 0 deletions themes/landing-page/assets/scss/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Functions first
@import "../node_modules/bootstrap/scss/functions";

// Variable overrides second
$primary: #900;
$enable-shadows: true;
$prefix: "mo-";

// Required Bootstrap imports
@import "../node_modules/bootstrap/scss/variables";
@import "../node_modules/bootstrap/scss/variables-dark";
@import "../node_modules/bootstrap/scss/maps";
@import "../node_modules/bootstrap/scss/mixins";
@import "../node_modules/bootstrap/scss/root";

// Optional components
@import "../node_modules/bootstrap/scss/utilities";
@import "../node_modules/bootstrap/scss/reboot";
@import "../node_modules/bootstrap/scss/containers";
@import "../node_modules/bootstrap/scss/grid";
@import "../node_modules/bootstrap/scss/helpers";
@import "../node_modules/bootstrap/scss/utilities/api";

0 comments on commit ec0dc66

Please sign in to comment.