
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
@edx/edx-bootstrap
Advanced tools
.. image:: https://badge.fury.io/js/%40edx%2Fedx-bootstrap.svg :target: https://badge.fury.io/js/%40edx%2Fedx-bootstrap .. highlight:: css
This library is an extension of Bootstrap 4 <http://getbootstrap.com>
_
for use with edX and openEdX.
Using npm::
npm install --save @edx/edx-bootstrap
Add the following import in your project's base scss file::
@import "~@edx/edx-bootstrap/scss/edx/theme.scss";
Or for Open edX users::
@import "~@edx/edx-bootstrap/scss/open-edx/theme.scss";
This includes everything you need. Bootstrap is included so you don't need to add it in your project. If you need more control, see the theming section.
Alternatively, you can download this repo and use one of the compiled outputs:
dist/open-edx/theme.css
(Open edX bootstrap, extensions, & theme)dist/edx/theme.css
(edX bootstrap, extensions, & theme)dist/core/core.css
(edX bootstrap & extensions only)The content of a theme.scss
file::
// Optional
@import "my-fonts";
@import "my-variables";
// Required core (includes bootstrap and extensions)
@import "@edx/edx-boostrap/scss/core/core.scss";
// The rest of your scss
// ...
To create a theme, make a copy of the scss/open-edx
folder in your own project
and make changes. Then include it before you include edx-bootstrap::
@import "fonts";
@import "variables";
// If you are creating your own theme remove
// the "../core/core" import with the line below.
@import "../core/core";
// @import "@edx/edx-boostrap/scss/core/core.scss";
@import "overrides";
If you’re having trouble, you can ask in the front-end channel on Slack or contact the Frontend Working Group:
#front-end <https://openedx.slack.com/messages/C0EUBSV7D>
_#frontend-working-group <https://openedx.slack.com/messages/C02BMP2RD5Y>
_The code in this repository uses the Apache 2.0 license unless otherwise noted.
Please see the LICENSE file <https://github.com/openedx/edx-bootstrap/blob/master/LICENSE>
_
for details.
Documentation details can be found in the docs index.rst
_.
.. _docs index.rst: docs/index.rst
Contributions are very welcome, but for legal reasons, you must submit a
signed individual contributor agreement
_ before we can accept your
contribution. See our CONTRIBUTING
_ file for more information – it
also contains guidelines for how to maintain high code quality, which
will make your contribution more likely to be accepted.
Please do not report security issues in public. Please email security@edx.org.
.. _individual contributor agreement: https://open.edx.org/wp-content/uploads/2019/01/individual-contributor-agreement.pdf .. _CONTRIBUTING: https://github.com/openedx/.github/blob/master/CONTRIBUTING.md
FAQs
The Bootstrap theme for Open edX
The npm package @edx/edx-bootstrap receives a total of 3,608 weekly downloads. As such, @edx/edx-bootstrap popularity was classified as popular.
We found that @edx/edx-bootstrap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.