
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
mod-style-bootstrap
Advanced tools
Mod Style is a design system package for use on Modernize's S3 microsites. Its purpose is to streamline development by providing flexible, reusable, styled components.
Current examples:
The functionality of the Mod Style package is built on top of bootstrap-sass, which is a sass-powered version of Bootstrap 3. (bootstrap-sass will be referenced throughout this guide as simply Bootstrap to avoid confusion).
The elements found within Mod Style were developed based on the Mod Style sketch file that is maintained by our designers. The current version can be found here: Mod Style Guide, alongside a changelog, a list of archived versions, and versions that are currently under construction. If this link is not accessible or has not been shared with you, please let someone on the engineering team know.
src/ fonts/ modstyle-icons/ - icon font folder
images/
styles/
base/ - minimum core css files used by every page
components/
icons/
vendor/
.editorconfig - rules for code editors based on company's code guidelines
.sass-lint.yml - configuration for SASS/SCSS linter
package-lock.json - lock file for package.json; makes sure that the same versions of Node modules are installed across env
package.json - Node modules used in mod-site
Ensure that the latest version of Mod Style is a dependency of your project and is listed inside your package.json.
Ensure that the latest version of Mod Site (currently 4.0.*) is a dependency of your project and is listed inside your package.json.
Mod Site ensures that:
Create a folder named vendor inside the src/styles/ folder of your
project.
Inside the vendor folder, create a file called bootstrap-base.scss.
Inside this file you will import the bootstrap-base.scss file from Mod
Style.
Note: If you need any additional bootstrap components (see below for full list of available components), you will import them from Bootstrap into this file.
Add this base file into the head section of your html file using a link tag.
Your custom css for your project should be listed as a link tag AFTER the bootstrap-base file.
Import whatever components you will need from Mod Style into the top of your project's index.scss file.
Example: Properly Including Link Tags in HTML File
<!DOCTYPE html>
<html lang="en">
<head>
<link target="_blank" href="/styles/vendor/bootstrap-base.css" rel="stylesheet" type="text/css" />
<link target="_blank" href="/styles/home.css" rel="stylesheet" type="text/css" />
</head>
<body>
Example: Importing Bootstrap Files from Mod Style
@import '../../../node_modules/mod-style-bootstrap/src/styles/vendor/bootstrap-base';
@import '../../../node_modules/mod-style-bootstrap/src/styles/base/index';
@import '../../../node_modules/mod-style-bootstrap/src/styles/components/buttons';
@import '../../../node_modules/mod-style-bootstrap/src/styles/components/inputs';
Example: Importing Components from Bootstrap
@import '../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/code';
For more information on the version of Bootstrap we are currently using please see Bootstrap 3 - Using Sass .
The Mod Style bootstrap-base.scss file serves to pull in the minimum components necessary from Bootstrap.
For more about available components within Bootstrap 3 see Bootstrap 3 Components.
Another version of this list can be found inside the Bootstrap repo.
Every sass variable in Bootstrap includes the !default flag, allowing
you to override the variable’s default value in your own sass files
without modifying Bootstrap’s source code.
For that reason Mod Style contains a copy of Bootstrap's
variable.scss
file located in styles/vendor/custom-variables.scss. In this file the
!default flag has been removed from all variables so that it won’t be
re-assigned by the default values in Bootstrap. All variables that are
in use by our pages have been over written with our own custom styles.
This file is included at the top of the bootstrap-base.scss file
because it must come before you import Bootstrap’s Sass variables and
other files for the override to work properly.
To test and develop locally you will need to work within two separate repositories:
modify.modernize.com
npm link #.npm link mod-style-bootstrap # in your terminal.cmnd + s within a modify scss file for you changes to be picked up.npm unlink mod-style-bootstrap # in the root directory of the
modify project.mod-style
sketchFileVersion in the
package.json as well, to match the version number named on the
sketch file.npm publish.FAQs
Shared Design Components for S3 Sites
The npm package mod-style-bootstrap receives a total of 127 weekly downloads. As such, mod-style-bootstrap popularity was classified as not popular.
We found that mod-style-bootstrap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.